vite-hub 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 (1505) hide show
  1. package/README.md +177 -55
  2. package/dist/_internal/auth/internal/server.d.ts +1 -0
  3. package/dist/_internal/auth/internal/server.js +2 -0
  4. package/dist/_internal/auth/runtime/server.d.ts +1 -0
  5. package/dist/_internal/auth/runtime/server.js +2 -0
  6. package/dist/_internal/runtime/browser-errors.d.ts +22 -0
  7. package/dist/_internal/runtime/browser-errors.js +156 -0
  8. package/dist/_internal/runtime/internal/h3.d.ts +1 -0
  9. package/dist/_internal/runtime/internal/h3.js +2 -0
  10. package/dist/_internal/runtime/redirects.d.ts +37 -0
  11. package/dist/_internal/runtime/redirects.js +71 -0
  12. package/dist/_internal/runtime/request-policy.d.ts +43 -0
  13. package/dist/_internal/runtime/request-policy.js +62 -0
  14. package/dist/_internal/runtime/security.d.ts +27 -0
  15. package/dist/_internal/runtime/security.js +104 -0
  16. package/dist/access-BDST818p.js +439 -0
  17. package/dist/access-policy-CGXhO3Ee.d.ts +109 -0
  18. package/dist/access-policy-DjBKLo3c.js +73 -0
  19. package/dist/account-BnOAU055.d.ts +195 -0
  20. package/dist/agent/capabilities.d.ts +1 -24
  21. package/dist/agent/capabilities.js +1 -56
  22. package/dist/agent/invocations/database.d.ts +1 -2
  23. package/dist/agent/invocations/database.js +2 -91
  24. package/dist/agent/invocations/drizzle.d.ts +1 -0
  25. package/dist/agent/invocations/drizzle.js +2 -0
  26. package/dist/agent/invocations.d.ts +1 -0
  27. package/dist/agent/invocations.js +2 -0
  28. package/dist/agent/page.d.ts +1 -0
  29. package/dist/agent/page.js +2 -0
  30. package/dist/agent/process.d.ts +1 -0
  31. package/dist/agent/process.js +2 -0
  32. package/dist/agent/state.d.ts +1 -0
  33. package/dist/agent/state.js +2 -0
  34. package/dist/agent/ui/vue.d.ts +1 -0
  35. package/dist/agent/ui/vue.js +2 -0
  36. package/dist/agent/ui.d.ts +1 -0
  37. package/dist/agent/ui.js +2 -0
  38. package/dist/agent-invocations.post-CcPvfA0n.js +423 -0
  39. package/dist/agent.d.ts +1 -12
  40. package/dist/agent.js +1 -49
  41. package/dist/agents-BDeazoAW.js +123 -0
  42. package/dist/agents-BoWau_ei.js +2 -0
  43. package/dist/agents-C94A4N9u.d.ts +29 -0
  44. package/dist/auth/abilities.d.ts +1 -0
  45. package/dist/auth/abilities.js +2 -0
  46. package/dist/auth/database.d.ts +1 -0
  47. package/dist/auth/database.js +2 -0
  48. package/dist/auth/forward.d.ts +1 -0
  49. package/dist/auth/forward.js +2 -0
  50. package/dist/auth/mcp.d.ts +1 -0
  51. package/dist/auth/mcp.js +2 -0
  52. package/dist/auth/schema.d.ts +1 -0
  53. package/dist/auth/schema.js +2 -0
  54. package/dist/auth-BZOy7obk.d.ts +120 -0
  55. package/dist/auth-operations-GcQk0O0X.js +34 -0
  56. package/dist/auth-types-CyqhWvYF.d.ts +90 -0
  57. package/dist/bin.js +114 -128
  58. package/dist/blob/nuxt-image.d.ts +3 -0
  59. package/dist/blob/nuxt-image.js +3 -0
  60. package/dist/blob-CFLwMsjH.d.ts +9 -0
  61. package/dist/blob-CpvlM8jp.js +26 -0
  62. package/dist/bundle.d.ts +1 -0
  63. package/dist/bundle.js +2 -0
  64. package/dist/cache/operations.d.ts +5 -0
  65. package/dist/cache/operations.js +51 -0
  66. package/dist/cache.d.ts +28 -0
  67. package/dist/cache.js +219 -0
  68. package/dist/choices/vue.d.ts +1 -0
  69. package/dist/choices/vue.js +2 -0
  70. package/dist/choices.d.ts +1 -0
  71. package/dist/choices.js +2 -0
  72. package/dist/cli-config-UAGTmuFa.js +2 -0
  73. package/dist/cli-config-wxKjF2Y0.js +90 -0
  74. package/dist/cloudflare-env-lookup-DKXdr4P_.js +16 -0
  75. package/dist/cloudflare-prerender.mjs +3 -0
  76. package/dist/cloudflare-workers.d.ts +12 -0
  77. package/dist/cms/access.d.ts +1 -0
  78. package/dist/cms/access.js +2 -0
  79. package/dist/cms/vite.d.ts +1 -0
  80. package/dist/cms/vite.js +2 -0
  81. package/dist/cms.d.ts +3 -0
  82. package/dist/cms.js +3 -0
  83. package/dist/comments/testing.d.ts +1 -0
  84. package/dist/comments/testing.js +2 -0
  85. package/dist/connections/operations.d.ts +1 -0
  86. package/dist/connections/operations.js +2 -0
  87. package/dist/console/auth-types.d.ts +2 -0
  88. package/dist/console/auth-types.js +1 -0
  89. package/dist/console/auth.d.ts +6 -2
  90. package/dist/console/auth.js +9 -2
  91. package/dist/console/runtime/auth-operations.d.ts +35 -0
  92. package/dist/console/runtime/auth-operations.js +2 -0
  93. package/dist/console/runtime/client/account-views.d.ts +17 -0
  94. package/dist/console/runtime/client/account-views.js +8 -0
  95. package/dist/console/runtime/client/account.d.ts +2 -0
  96. package/dist/console/runtime/client/account.js +1125 -0
  97. package/dist/console/runtime/client/add-primitive.ts +59 -0
  98. package/dist/console/runtime/client/app-identity.ts +44 -0
  99. package/dist/console/runtime/client/auth-management.ts +21 -35
  100. package/dist/console/runtime/client/blob-media.d.ts +1 -1
  101. package/dist/console/runtime/client/blob-media.js +4 -4
  102. package/dist/console/runtime/client/command-search.ts +103 -0
  103. package/dist/console/runtime/client/comment-thread.d.ts +33 -0
  104. package/dist/console/runtime/client/comment-thread.js +62 -0
  105. package/dist/console/runtime/client/content-heads.d.ts +45 -0
  106. package/dist/console/runtime/client/content-heads.js +58 -0
  107. package/dist/console/runtime/client/document-cache.ts +13 -0
  108. package/dist/console/runtime/client/documents.d.ts +3 -430
  109. package/dist/console/runtime/client/documents.js +2 -501
  110. package/dist/console/runtime/client/editor.d.ts +9 -8
  111. package/dist/console/runtime/client/editor.js +35 -14
  112. package/dist/console/runtime/client/env-status.d.ts +31 -2
  113. package/dist/console/runtime/client/env-status.js +59 -1
  114. package/dist/console/runtime/client/format.d.ts +59 -0
  115. package/dist/console/runtime/client/format.js +2 -109
  116. package/dist/console/runtime/client/format.ts +267 -0
  117. package/dist/console/runtime/client/highlight-languages.ts +27 -0
  118. package/dist/console/runtime/client/invocation.js +4 -4
  119. package/dist/console/runtime/client/live.d.ts +3 -5
  120. package/dist/console/runtime/client/live.js +1 -8
  121. package/dist/console/runtime/client/mcp-client.d.ts +58 -0
  122. package/dist/console/runtime/client/mcp-client.js +125 -0
  123. package/dist/console/runtime/client/media-library.d.ts +2 -207
  124. package/dist/console/runtime/client/media-library.js +2 -243
  125. package/dist/console/runtime/client/media-uploads.d.ts +1 -1
  126. package/dist/console/runtime/client/media-uploads.js +1 -1
  127. package/dist/console/runtime/client/media.d.ts +2 -73
  128. package/dist/console/runtime/client/operation-view.d.ts +31 -4
  129. package/dist/console/runtime/client/operation-view.js +85 -9
  130. package/dist/console/runtime/client/presence.d.ts +1 -5
  131. package/dist/console/runtime/client/presence.js +1 -15
  132. package/dist/console/runtime/client/preview.d.ts +8 -0
  133. package/dist/console/runtime/client/preview.js +11 -1
  134. package/dist/console/runtime/client/problem.d.ts +1 -1
  135. package/dist/console/runtime/client/problem.js +3 -3
  136. package/dist/console/runtime/client/project-link.d.ts +2 -0
  137. package/dist/console/runtime/client/project-link.js +2 -0
  138. package/dist/console/runtime/client/project-session.d.ts +221 -0
  139. package/dist/console/runtime/client/project-session.js +723 -0
  140. package/dist/console/runtime/client/project.d.ts +48 -0
  141. package/dist/console/runtime/client/project.js +2 -0
  142. package/dist/console/runtime/client/projects.d.ts +2 -0
  143. package/dist/console/runtime/client/projects.js +2 -0
  144. package/dist/console/runtime/client/publish.d.ts +1 -1
  145. package/dist/console/runtime/client/rate-limit.js +2 -2
  146. package/dist/console/runtime/client/read-only.d.ts +1 -1
  147. package/dist/console/runtime/client/read-only.js +1 -1
  148. package/dist/console/runtime/client/request.d.ts +6 -12
  149. package/dist/console/runtime/client/request.js +2 -471
  150. package/dist/console/runtime/client/route-query.d.ts +60 -0
  151. package/dist/console/runtime/client/route-query.js +2 -0
  152. package/dist/console/runtime/client/schedule-run.js +2 -2
  153. package/dist/console/runtime/client/sections.d.ts +2 -26
  154. package/dist/console/runtime/client/sections.js +2 -84
  155. package/dist/console/runtime/client/sidebar.ts +84 -0
  156. package/dist/console/runtime/client/site-access.d.ts +32 -0
  157. package/dist/console/runtime/client/site-access.js +932 -0
  158. package/dist/console/runtime/client/stored.d.ts +33 -0
  159. package/dist/console/runtime/client/stored.js +2 -0
  160. package/dist/console/runtime/client/ticket.d.ts +2 -0
  161. package/dist/console/runtime/client/ticket.js +2 -0
  162. package/dist/console/runtime/client/workflow.js +3 -3
  163. package/dist/console/runtime/components/console-account-api-keys.vue +195 -0
  164. package/dist/console/runtime/components/console-account-env.vue +286 -0
  165. package/dist/console/runtime/components/console-account-home.vue +427 -0
  166. package/dist/console/runtime/components/console-account-link.vue +68 -0
  167. package/dist/console/runtime/components/console-account-menu.vue +126 -0
  168. package/dist/console/runtime/components/console-account-rename.vue +67 -0
  169. package/dist/console/runtime/components/console-account-settings.vue +184 -0
  170. package/dist/console/runtime/components/console-account-setup.vue +82 -0
  171. package/dist/console/runtime/components/console-account-shell.vue +339 -0
  172. package/dist/console/runtime/components/console-account-sign-in.vue +152 -0
  173. package/dist/console/runtime/components/console-account-snippet.vue +89 -0
  174. package/dist/console/runtime/components/console-account-team-settings.vue +131 -0
  175. package/dist/console/runtime/components/console-account-team.vue +199 -0
  176. package/dist/console/runtime/components/console-account-unlink.vue +52 -0
  177. package/dist/console/runtime/components/console-activity-feed.vue +69 -0
  178. package/dist/console/runtime/components/console-add-primitive.vue +176 -0
  179. package/dist/console/runtime/components/console-agent-session.vue +301 -0
  180. package/dist/console/runtime/components/console-app-crumb.vue +52 -0
  181. package/dist/console/runtime/components/console-app-logo.vue +44 -0
  182. package/dist/console/runtime/components/console-app-settings.vue +271 -0
  183. package/dist/console/runtime/components/console-app.vue +255 -335
  184. package/dist/console/runtime/components/console-auth-action.vue +15 -13
  185. package/dist/console/runtime/components/console-auth-activity.vue +20 -24
  186. package/dist/console/runtime/components/console-auth-chart.vue +24 -21
  187. package/dist/console/runtime/components/console-auth-detail.vue +101 -128
  188. package/dist/console/runtime/components/console-auth-event-list.vue +2 -2
  189. package/dist/console/runtime/components/console-auth-event-setup.vue +4 -4
  190. package/dist/console/runtime/components/console-auth-overview.vue +21 -33
  191. package/dist/console/runtime/components/console-auth-user-events.vue +12 -15
  192. package/dist/console/runtime/components/console-auth.vue +118 -116
  193. package/dist/console/runtime/components/console-blob-detail.vue +16 -26
  194. package/dist/console/runtime/components/console-blob.vue +89 -34
  195. package/dist/console/runtime/components/console-cache.vue +358 -0
  196. package/dist/console/runtime/components/console-code-text.vue +18 -0
  197. package/dist/console/runtime/components/console-comark-component.vue +54 -16
  198. package/dist/console/runtime/components/console-comment-thread.vue +320 -0
  199. package/dist/console/runtime/components/console-confirm.vue +46 -0
  200. package/dist/console/runtime/components/console-connection-state.vue +23 -26
  201. package/dist/console/runtime/components/console-content-heads.vue +72 -0
  202. package/dist/console/runtime/components/console-database.vue +77 -80
  203. package/dist/console/runtime/components/console-definitions.vue +163 -44
  204. package/dist/console/runtime/components/console-document-dashboard.vue +124 -135
  205. package/dist/console/runtime/components/console-document-diff.vue +2 -2
  206. package/dist/console/runtime/components/console-document-editor.vue +404 -203
  207. package/dist/console/runtime/components/console-document-history.vue +17 -17
  208. package/dist/console/runtime/components/console-document-list.vue +51 -53
  209. package/dist/console/runtime/components/console-document-preview.vue +44 -57
  210. package/dist/console/runtime/components/console-document-settings.vue +24 -26
  211. package/dist/console/runtime/components/console-documents.vue +105 -40
  212. package/dist/console/runtime/components/console-env-details.vue +8 -27
  213. package/dist/console/runtime/components/console-env.vue +109 -88
  214. package/dist/console/runtime/components/console-facts.ts +13 -0
  215. package/dist/console/runtime/components/console-frame.vue +26 -68
  216. package/dist/console/runtime/components/console-home.vue +145 -121
  217. package/dist/console/runtime/components/console-icon.vue +19 -0
  218. package/dist/console/runtime/components/console-invocation-composer.vue +4 -8
  219. package/dist/console/runtime/components/console-kv.vue +41 -47
  220. package/dist/console/runtime/components/console-lazy-views.ts +2 -0
  221. package/dist/console/runtime/components/console-loading.vue +5 -4
  222. package/dist/console/runtime/components/console-markdown-editor.vue +78 -99
  223. package/dist/console/runtime/components/console-mcp-callback.vue +76 -0
  224. package/dist/console/runtime/components/console-mcp-client.vue +255 -0
  225. package/dist/console/runtime/components/console-mcp-connect.vue +162 -0
  226. package/dist/console/runtime/components/console-mcp-connection.vue +219 -0
  227. package/dist/console/runtime/components/console-mcp-content.vue +157 -0
  228. package/dist/console/runtime/components/console-mcp-items.vue +346 -0
  229. package/dist/console/runtime/components/console-media-browser.vue +108 -138
  230. package/dist/console/runtime/components/console-media-crops.vue +13 -12
  231. package/dist/console/runtime/components/console-media-detail.vue +35 -39
  232. package/dist/console/runtime/components/console-media-dialog.vue +3 -3
  233. package/dist/console/runtime/components/console-media-field.vue +12 -36
  234. package/dist/console/runtime/components/console-media-focal.vue +15 -14
  235. package/dist/console/runtime/components/console-media-library.vue +29 -22
  236. package/dist/console/runtime/components/console-media-move.vue +9 -8
  237. package/dist/console/runtime/components/console-media-picker.vue +35 -6
  238. package/dist/console/runtime/components/console-media-uploads.vue +7 -4
  239. package/dist/console/runtime/components/console-operation-view.vue +258 -45
  240. package/dist/console/runtime/components/console-page-changes.vue +207 -0
  241. package/dist/console/runtime/components/console-page-header.vue +39 -7
  242. package/dist/console/runtime/components/console-page-toolbar.vue +16 -3
  243. package/dist/console/runtime/components/console-presence-avatars.vue +4 -3
  244. package/dist/console/runtime/components/console-project-switcher.vue +212 -0
  245. package/dist/console/runtime/components/console-property-list.vue +16 -11
  246. package/dist/console/runtime/components/console-property-row.vue +2 -1
  247. package/dist/console/runtime/components/console-rail.vue +122 -277
  248. package/dist/console/runtime/components/console-rate-limit.vue +32 -24
  249. package/dist/console/runtime/components/console-relative-time.vue +1 -1
  250. package/dist/console/runtime/components/console-schema-date-input.vue +88 -0
  251. package/dist/console/runtime/components/console-schema-field.vue +35 -89
  252. package/dist/console/runtime/components/console-schema-form.vue +6 -7
  253. package/dist/console/runtime/components/console-schema-list.vue +8 -9
  254. package/dist/console/runtime/components/console-search-palette.vue +1051 -0
  255. package/dist/console/runtime/components/console-search.vue +17 -840
  256. package/dist/console/runtime/components/console-section-icon.vue +7 -10
  257. package/dist/console/runtime/components/console-section.vue +68 -0
  258. package/dist/console/runtime/components/console-seo-panel.vue +16 -16
  259. package/dist/console/runtime/components/console-session-actions.vue +1 -3
  260. package/dist/console/runtime/components/console-session-bootstrap.ts +0 -28
  261. package/dist/console/runtime/components/console-session-cancel.vue +0 -1
  262. package/dist/console/runtime/components/console-session-code-preview.vue +10 -26
  263. package/dist/console/runtime/components/console-session-copy-link.vue +11 -0
  264. package/dist/console/runtime/components/console-session-inspector.vue +212 -92
  265. package/dist/console/runtime/components/console-session-loading.vue +12 -15
  266. package/dist/console/runtime/components/console-session-navbar.vue +9 -39
  267. package/dist/console/runtime/components/console-session-trace.vue +25 -77
  268. package/dist/console/runtime/components/console-session.css +208 -851
  269. package/dist/console/runtime/components/console-settings-card.vue +76 -0
  270. package/dist/console/runtime/components/console-settings-value.vue +46 -0
  271. package/dist/console/runtime/components/console-settings.vue +100 -0
  272. package/dist/console/runtime/components/console-setup-hint.vue +3 -8
  273. package/dist/console/runtime/components/console-sidebar-item.vue +62 -0
  274. package/dist/console/runtime/components/console-sidebar-trigger.vue +34 -0
  275. package/dist/console/runtime/components/console-sidebar.vue +352 -0
  276. package/dist/console/runtime/components/console-site.vue +370 -0
  277. package/dist/console/runtime/components/console-skill-file.vue +73 -0
  278. package/dist/console/runtime/components/console-skill-tree.vue +62 -0
  279. package/dist/console/runtime/components/console-skills.vue +193 -0
  280. package/dist/console/runtime/components/console-stat-grid.vue +64 -0
  281. package/dist/console/runtime/components/console-state.vue +60 -75
  282. package/dist/console/runtime/components/console-toaster.vue +63 -54
  283. package/dist/console/runtime/components/console-usage-chart.vue +14 -12
  284. package/dist/console/runtime/components/console-usage-model-detail.vue +12 -18
  285. package/dist/console/runtime/components/console-usage-model.ts +20 -12
  286. package/dist/console/runtime/components/console-usage-share-bar.vue +5 -5
  287. package/dist/console/runtime/components/console-usage.vue +547 -252
  288. package/dist/console/runtime/components/console-user-menu.vue +42 -0
  289. package/dist/console/runtime/components/console-value.vue +5 -4
  290. package/dist/console/runtime/components/console-workflow-actions.vue +32 -41
  291. package/dist/console/runtime/components/console-workspace-browser.vue +507 -0
  292. package/dist/console/runtime/components/console-workspace-history.vue +23 -24
  293. package/dist/console/runtime/components/invocation/agent-capability-inspector.ts +13 -14
  294. package/dist/console/runtime/components/invocation/agent-invocation-list.ts +22 -38
  295. package/dist/console/runtime/components/invocation/agent-invocation-timeline.ts +4 -12
  296. package/dist/console/runtime/components/invocation/agent-invocation.ts +229 -193
  297. package/dist/console/runtime/components/invocation/internal/input-attachments.ts +69 -0
  298. package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +192 -55
  299. package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +25 -0
  300. package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +20 -7
  301. package/dist/console/runtime/components/invocation/internal/invocation-page-changes.ts +64 -0
  302. package/dist/console/runtime/components/invocation/internal/payload-text.ts +3 -5
  303. package/dist/console/runtime/components/invocation/invocation.css +485 -428
  304. package/dist/console/runtime/components/invocation/types.ts +9 -1
  305. package/dist/console/runtime/console-route.js +1 -48
  306. package/dist/console/runtime/definitions.d.ts +2 -2
  307. package/dist/console/runtime/definitions.js +1 -293
  308. package/dist/console/runtime/diagnostics.ts +287 -0
  309. package/dist/console/runtime/mcp-client.d.ts +2 -0
  310. package/dist/console/runtime/mcp-client.js +2 -0
  311. package/dist/console/runtime/page/loader.js +138 -18
  312. package/dist/console/runtime/page-tool/page-tool.js +10 -0
  313. package/dist/console/runtime/public/skills/index.json +1 -0
  314. package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -39
  315. package/dist/console/runtime/public/skills/vitehub/references/agent-definitions.md +1 -1
  316. package/dist/console/runtime/public/skills/vitehub/references/bundle.md +57 -0
  317. package/dist/console/runtime/public/skills/vitehub/references/capabilities-authority.md +1 -1
  318. package/dist/console/runtime/public/skills/vitehub/references/channels-triggers.md +4 -3
  319. package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +2 -2
  320. package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +11 -3
  321. package/dist/console/runtime/public/skills/vitehub/references/primitives/auth.md +1 -3
  322. package/dist/console/runtime/public/skills/vitehub/references/primitives/blob.md +3 -3
  323. package/dist/console/runtime/public/skills/vitehub/references/primitives/browser.md +1 -1
  324. package/dist/console/runtime/public/skills/vitehub/references/primitives/cache.md +2 -2
  325. package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +3 -5
  326. package/dist/console/runtime/public/skills/vitehub/references/primitives/connections.md +0 -2
  327. package/dist/console/runtime/public/skills/vitehub/references/primitives/content.md +1 -1
  328. package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +4 -2
  329. package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +0 -2
  330. package/dist/console/runtime/public/skills/vitehub/references/primitives/env.md +2 -2
  331. package/dist/console/runtime/public/skills/vitehub/references/primitives/kv.md +2 -2
  332. package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +3 -3
  333. package/dist/console/runtime/public/skills/vitehub/references/primitives/queue.md +0 -2
  334. package/dist/console/runtime/public/skills/vitehub/references/primitives/rate-limit.md +1 -3
  335. package/dist/console/runtime/public/skills/vitehub/references/primitives/realtime.md +4 -4
  336. package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox-task.md +0 -2
  337. package/dist/console/runtime/public/skills/vitehub/references/primitives/schedule.md +1 -3
  338. package/dist/console/runtime/public/skills/vitehub/references/primitives/shell.md +0 -2
  339. package/dist/console/runtime/public/skills/vitehub/references/primitives/source.md +0 -2
  340. package/dist/console/runtime/public/skills/vitehub/references/primitives/workflow.md +0 -2
  341. package/dist/console/runtime/public/skills/vitehub/references/primitives/workspace.md +1 -3
  342. package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +20 -0
  343. package/dist/console/runtime/public/skills/vitehub/references/proof-recovery.md +2 -0
  344. package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +10 -1
  345. package/dist/console/runtime/public/skills/vitehub/references/schedules-workflows-invocations.md +1 -1
  346. package/dist/console/runtime/public/skills/vitehub/references/server-primitives.md +1 -1
  347. package/dist/console/runtime/rpc.d.ts +2 -36
  348. package/dist/console/runtime/rpc.js +1 -3
  349. package/dist/console/runtime/sections.d.ts +2 -2
  350. package/dist/console/runtime/sections.js +2 -351
  351. package/dist/console/runtime/server/access-policy.d.ts +2 -0
  352. package/dist/console/runtime/server/access-policy.js +2 -0
  353. package/dist/console/runtime/server/agents.get.d.ts +4 -7
  354. package/dist/console/runtime/server/agents.get.js +6 -9
  355. package/dist/console/runtime/server/auth.d.ts +2 -0
  356. package/dist/console/runtime/server/auth.js +81 -0
  357. package/dist/console/runtime/server/blob.d.ts +2 -2
  358. package/dist/console/runtime/server/blob.js +2 -19
  359. package/dist/console/runtime/server/channel-replay.d.ts +20 -8
  360. package/dist/console/runtime/server/channel-replay.js +27 -55
  361. package/dist/console/runtime/server/database.d.ts +1 -1
  362. package/dist/console/runtime/server/database.get.d.ts +19 -10
  363. package/dist/console/runtime/server/database.get.js +40 -34
  364. package/dist/console/runtime/server/database.js +1 -17
  365. package/dist/console/runtime/server/definitions.d.ts +1 -1
  366. package/dist/console/runtime/server/definitions.get.d.ts +8 -8
  367. package/dist/console/runtime/server/definitions.get.js +37 -23
  368. package/dist/console/runtime/server/definitions.js +1 -96
  369. package/dist/console/runtime/server/development.d.ts +2 -0
  370. package/dist/console/runtime/server/development.js +2 -0
  371. package/dist/console/runtime/server/documents.d.ts +2 -2
  372. package/dist/console/runtime/server/documents.js +3 -111
  373. package/dist/console/runtime/server/env.d.ts +3 -15
  374. package/dist/console/runtime/server/env.get.d.ts +5 -5
  375. package/dist/console/runtime/server/env.get.js +9 -22
  376. package/dist/console/runtime/server/env.js +2 -42
  377. package/dist/console/runtime/server/invocation-capabilities.get.d.ts +5 -6
  378. package/dist/console/runtime/server/invocation-capabilities.get.js +8 -13
  379. package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -37
  380. package/dist/console/runtime/server/invocation-workspace.get.js +35 -201
  381. package/dist/console/runtime/server/invocation.get.d.ts +2 -2
  382. package/dist/console/runtime/server/invocation.get.js +35 -27
  383. package/dist/console/runtime/server/invocations.get.d.ts +12 -6
  384. package/dist/console/runtime/server/invocations.get.js +45 -60
  385. package/dist/console/runtime/server/logs.get.d.ts +8 -5
  386. package/dist/console/runtime/server/logs.get.js +25 -14
  387. package/dist/console/runtime/server/mcp-client-operations.d.ts +5 -0
  388. package/dist/console/runtime/server/mcp-client-operations.js +139 -0
  389. package/dist/console/runtime/server/operation-contributions.d.ts +2 -0
  390. package/dist/console/runtime/server/operation-contributions.js +2 -0
  391. package/dist/console/runtime/server/page-auth.d.ts +18 -0
  392. package/dist/console/runtime/server/page-auth.js +44 -0
  393. package/dist/console/runtime/server/page-session.d.ts +1 -1
  394. package/dist/console/runtime/server/page-session.js +1 -1
  395. package/dist/console/runtime/server/page-tool.d.ts +2 -0
  396. package/dist/console/runtime/server/page-tool.js +105 -0
  397. package/dist/console/runtime/server/rpc.d.ts +16 -11
  398. package/dist/console/runtime/server/rpc.js +120 -113
  399. package/dist/console/runtime/server/runtime.d.ts +2 -0
  400. package/dist/console/runtime/server/runtime.js +2 -0
  401. package/dist/console/runtime/server/search.get.d.ts +1 -6
  402. package/dist/console/runtime/server/search.get.js +3 -9
  403. package/dist/console/runtime/server/sections.d.ts +6 -4
  404. package/dist/console/runtime/server/sections.get.d.ts +2 -22
  405. package/dist/console/runtime/server/sections.get.js +37 -13
  406. package/dist/console/runtime/server/sections.js +7 -4
  407. package/dist/console/runtime/server/setup.d.ts +5 -0
  408. package/dist/console/runtime/server/setup.js +5 -0
  409. package/dist/console/runtime/server/site-entry.d.ts +24 -0
  410. package/dist/console/runtime/server/site-entry.js +145 -0
  411. package/dist/console/runtime/server/site-session.d.ts +89 -0
  412. package/dist/console/runtime/server/site-session.js +2 -0
  413. package/dist/console/runtime/server/status.get.d.ts +7 -4
  414. package/dist/console/runtime/server/status.get.js +12 -22
  415. package/dist/console/runtime/server/tickets.d.ts +2 -0
  416. package/dist/console/runtime/server/tickets.js +2 -0
  417. package/dist/console/runtime/server/usage.get.d.ts +7 -4
  418. package/dist/console/runtime/server/usage.get.js +16 -23
  419. package/dist/console/runtime/server/workspace-files.get.d.ts +12 -0
  420. package/dist/console/runtime/server/workspace-files.get.js +55 -0
  421. package/dist/console/runtime/site-access.d.ts +2 -0
  422. package/dist/console/runtime/site-access.js +2 -0
  423. package/dist/console/runtime/skills.d.ts +18 -0
  424. package/dist/console/runtime/skills.js +17 -0
  425. package/dist/console/server.d.ts +20 -9
  426. package/dist/console/server.js +9 -34
  427. package/dist/console/ui.d.ts +16 -0
  428. package/dist/console/ui.js +487 -368
  429. package/dist/console-lazy-views-DXnIkdyd.js +2 -0
  430. package/dist/console-route-CBuqZ4wO.js +49 -0
  431. package/dist/console.d.ts +1 -1
  432. package/dist/content/collections.d.ts +1 -0
  433. package/dist/content/collections.js +2 -0
  434. package/dist/content/markdown.d.ts +1 -0
  435. package/dist/content/markdown.js +2 -0
  436. package/dist/content/preview.d.ts +1 -0
  437. package/dist/content/preview.js +2 -0
  438. package/dist/content/sqlite.d.ts +1 -0
  439. package/dist/content/sqlite.js +2 -0
  440. package/dist/content.d.ts +1 -2
  441. package/dist/content.js +0 -1
  442. package/dist/database-BdOBjPkS.js +17 -0
  443. package/dist/database-DyPVMjp_.d.ts +6 -0
  444. package/dist/definitions-BW6SvmMM.js +337 -0
  445. package/dist/definitions-CNq_Shkh.js +98 -0
  446. package/dist/definitions-DB4LbZ7T.d.ts +245 -0
  447. package/dist/definitions-Dbgxfz3I.d.ts +19 -0
  448. package/dist/dev-peer-am78OsHH.js +472 -0
  449. package/dist/development-W5EwONyL.d.ts +12 -0
  450. package/dist/development-zLxOp-AO.js +28 -0
  451. package/dist/device/vue.d.ts +1 -0
  452. package/dist/device/vue.js +2 -0
  453. package/dist/device.d.ts +1 -0
  454. package/dist/device.js +2 -0
  455. package/dist/diagnostics-9U_fYxMy.js +79 -0
  456. package/dist/diagnostics-CjGiniKb.d.ts +11 -0
  457. package/dist/docs/assistant.d.ts +1 -0
  458. package/dist/docs/assistant.js +2 -0
  459. package/dist/docs/nuxt.d.ts +3 -0
  460. package/dist/docs/nuxt.js +3 -0
  461. package/dist/docs/server.d.ts +1 -0
  462. package/dist/docs/server.js +2 -0
  463. package/dist/docs.d.ts +1 -0
  464. package/dist/docs.js +2 -0
  465. package/dist/doctor.d.ts +7 -2
  466. package/dist/doctor.js +2956 -296
  467. package/dist/documents-BASIRZ91.d.ts +474 -0
  468. package/dist/documents-CboVhYFz.d.ts +87 -0
  469. package/dist/documents-CjJTCrY8.js +136 -0
  470. package/dist/documents-qrHHqlNU.js +547 -0
  471. package/dist/durability/operations.d.ts +5 -0
  472. package/dist/durability/operations.js +28 -0
  473. package/dist/email/test.d.ts +1 -0
  474. package/dist/email/test.js +2 -0
  475. package/dist/entries-Bj-jPs_J.js +142 -0
  476. package/dist/env-Dg1I_DWr.js +11 -0
  477. package/dist/error-diagnostics-Bm3JKYjz.js +638 -0
  478. package/dist/error-diagnostics.ts +636 -151
  479. package/dist/forge.d.ts +1 -0
  480. package/dist/forge.js +2 -0
  481. package/dist/format-BOYlanIZ.js +304 -0
  482. package/dist/forms/client.d.ts +1 -0
  483. package/dist/forms/client.js +2 -0
  484. package/dist/forms/database.d.ts +1 -0
  485. package/dist/forms/database.js +2 -0
  486. package/dist/forms/formisch.d.ts +1 -0
  487. package/dist/forms/formisch.js +2 -0
  488. package/dist/forms/operations.d.ts +1 -0
  489. package/dist/forms/operations.js +2 -0
  490. package/dist/forms/runtime.d.ts +1 -0
  491. package/dist/forms/runtime.js +2 -0
  492. package/dist/forms/vue.d.ts +1 -0
  493. package/dist/forms/vue.js +2 -0
  494. package/dist/forms.d.ts +1 -0
  495. package/dist/forms.js +2 -0
  496. package/dist/gateways/ai-sdk.d.ts +1 -0
  497. package/dist/gateways/ai-sdk.js +2 -0
  498. package/dist/host-CkL0jjBq.js +11 -0
  499. package/dist/http-error-Bs6e8_-8.js +30 -0
  500. package/dist/i18n/runtime.d.ts +1 -0
  501. package/dist/i18n/runtime.js +2 -0
  502. package/dist/i18n/server.d.ts +1 -0
  503. package/dist/i18n/server.js +2 -0
  504. package/dist/i18n/vue.d.ts +1 -0
  505. package/dist/i18n/vue.js +2 -0
  506. package/dist/i18n.d.ts +1 -0
  507. package/dist/i18n.js +2 -0
  508. package/dist/index.d.ts +20 -3
  509. package/dist/index.js +43 -2
  510. package/dist/inspect-CDw7e0vK.js +127 -0
  511. package/dist/internal/agent-invocations-libsql.d.ts +2 -0
  512. package/dist/internal/agent-invocations-libsql.js +2 -0
  513. package/dist/internal/disabled-redis-driver.d.ts +3 -0
  514. package/dist/internal/disabled-redis-driver.js +7 -0
  515. package/dist/internal/disabled-upstash-driver.d.ts +3 -0
  516. package/dist/internal/disabled-upstash-driver.js +7 -0
  517. package/dist/internal/test-loader.d.ts +8 -0
  518. package/dist/internal/test-loader.js +75 -0
  519. package/dist/internal/test-server.d.ts +1 -0
  520. package/dist/internal/test-server.js +84 -0
  521. package/dist/internal-BreyUsQ6.js +31 -0
  522. package/dist/internal-CO4OqqaS.d.ts +59 -0
  523. package/dist/invariant-DolT9EEx.js +22 -0
  524. package/dist/invocation-page-undo-DIZ-s3xT.js +54 -0
  525. package/dist/invocations-CK_-G540.js +86 -0
  526. package/dist/limits-BUlwWYQE.js +34 -0
  527. package/dist/logs/host.d.ts +1 -1
  528. package/dist/logs/host.js +1 -15
  529. package/dist/logs/memory.d.ts +2 -18
  530. package/dist/logs/memory.js +1 -84
  531. package/dist/logs/source.d.ts +2 -57
  532. package/dist/logs/source.js +2 -57
  533. package/dist/logs.d.ts +3 -4
  534. package/dist/logs.js +3 -4
  535. package/dist/mcp-client-By4zk0vU.js +1024 -0
  536. package/dist/mcp-client-CTbTbn7d.js +10 -0
  537. package/dist/mcp-client-C_sEmyQw.d.ts +118 -0
  538. package/dist/mcp.d.ts +1 -0
  539. package/dist/mcp.js +2 -0
  540. package/dist/media-BHpQ-4jw.js +478 -0
  541. package/dist/media-library-D9ThbXqs.d.ts +212 -0
  542. package/dist/media-library-NaOMBKWS.js +279 -0
  543. package/dist/media-uKX4Wy-c.d.ts +74 -0
  544. package/dist/memory-2bbl4hcV.d.ts +19 -0
  545. package/dist/memory-DTmq-Z6x.js +86 -0
  546. package/dist/nuxt-server-imports-DH60Z7LA.js +98 -0
  547. package/dist/nuxt.d.ts +10 -5
  548. package/dist/nuxt.js +751 -583
  549. package/dist/object-D8pRdprI.js +15 -0
  550. package/dist/operation-contributions-BdS0z3tx.js +50 -0
  551. package/dist/operation-contributions-DpkO_iSU.d.ts +21 -0
  552. package/dist/operation-definition-a5keEpCd.js +435 -0
  553. package/dist/operation-registry-BogGwk_I.js +22 -0
  554. package/dist/operation-rpc-DI9txNxK.js +158 -0
  555. package/dist/operations-B0689BG1.d.ts +158 -0
  556. package/dist/operations-CAQmIxGK.js +2 -0
  557. package/dist/operations-CWP9dF3i.js +863 -0
  558. package/dist/operations-EOdyctDc.js +235 -0
  559. package/dist/operations.d.ts +1 -2
  560. package/dist/operations.js +2 -2
  561. package/dist/optional-owners-BNA2OX6z.js +903 -0
  562. package/dist/page/pill.iife.js +70 -0
  563. package/dist/page-tool-CRCK1RHV.d.ts +68 -0
  564. package/dist/page-tools-BkSSBFoi.js +444 -0
  565. package/dist/page-tools-shared-D3fFoEV2.js +122 -0
  566. package/dist/page-tools-sw4I-Nqx.d.ts +23 -0
  567. package/dist/plugins-B-DpgDPB.js +12070 -0
  568. package/dist/plugins-BqAtIEX2.d.ts +2143 -0
  569. package/dist/presets/workspace.d.ts +1 -0
  570. package/dist/presets/workspace.js +1 -0
  571. package/dist/project-C4N_Zcjl.js +30 -0
  572. package/dist/project-CufkVP1u.d.ts +26 -0
  573. package/dist/project-DlWTGB7h.js +57 -0
  574. package/dist/project-link-BuOzBH9f.d.ts +94 -0
  575. package/dist/project-link-D-6UefhA.js +149 -0
  576. package/dist/project-root-v6ba4tn7.js +12 -0
  577. package/dist/projects-CAcXztf4.js +154 -0
  578. package/dist/projects-Ddvl9EJp.d.ts +66 -0
  579. package/dist/rate-limit/drivers/cloudflare.d.ts +1 -0
  580. package/dist/rate-limit/drivers/cloudflare.js +2 -0
  581. package/dist/rate-limit/drivers/kv.d.ts +1 -0
  582. package/dist/rate-limit/drivers/kv.js +2 -0
  583. package/dist/rate-limit/drivers/memory.d.ts +1 -0
  584. package/dist/rate-limit/drivers/memory.js +2 -0
  585. package/dist/realtime/agent.d.ts +1 -0
  586. package/dist/realtime/agent.js +2 -0
  587. package/dist/realtime/bus.d.ts +1 -0
  588. package/dist/realtime/bus.js +2 -0
  589. package/dist/realtime/client.d.ts +1 -0
  590. package/dist/realtime/client.js +2 -0
  591. package/dist/registry-CDKLACCZ.js +16 -0
  592. package/dist/registry-zw6aE2N9.js +18 -0
  593. package/dist/request-D7h3SQ92.d.ts +21 -0
  594. package/dist/request-DE8w_cSM.js +473 -0
  595. package/dist/request-DbFfYmCu.js +162 -0
  596. package/dist/request-origin-Bq7mDQG9.js +23 -0
  597. package/dist/route-query-CRVWXIrc.js +222 -0
  598. package/dist/rpc-7nlHSv3y.d.ts +37 -0
  599. package/dist/rpc-DIUA61pv.js +4 -0
  600. package/dist/runtime/durability.d.ts +1 -0
  601. package/dist/runtime/durability.js +2 -0
  602. package/dist/runtime-B_btezs1.d.ts +7 -0
  603. package/dist/runtime-DQuHg7OO.js +10 -0
  604. package/dist/runtime-DxfJOfCd.js +25 -0
  605. package/dist/runtime-OsEDfbM9.js +55 -0
  606. package/dist/runtime-YLWfdrtO.js +65 -0
  607. package/dist/runtime-feature-guard-B64MMW9I.js +140 -0
  608. package/dist/scan-module-D_3X08mj.js +2 -0
  609. package/dist/scan-module-Df58L_6T.js +311 -0
  610. package/dist/schedule/os.d.ts +1 -0
  611. package/dist/schedule/os.js +2 -0
  612. package/dist/secret-Dy5uqvq9.js +44 -0
  613. package/dist/sections-BogiCmtz.d.ts +57 -0
  614. package/dist/sections-C83x0slv.js +13 -0
  615. package/dist/sections-CyrXbbkG.d.ts +10 -0
  616. package/dist/sections-Do7X4Nwt.d.ts +158 -0
  617. package/dist/sections-DumoLKQN.js +368 -0
  618. package/dist/sections-et20h8w3.js +122 -0
  619. package/dist/sections.get-COiLcQ0P.d.ts +20 -0
  620. package/dist/seo/runtime.d.ts +64 -0
  621. package/dist/seo/runtime.js +123 -0
  622. package/dist/seo-CtLywyRx.d.ts +24 -0
  623. package/dist/seo.d.ts +2 -0
  624. package/dist/seo.js +17 -0
  625. package/dist/server-BRJE4t-W.js +18 -0
  626. package/dist/setup-C-5nB7aY.js +22 -0
  627. package/dist/setup-ZbA1by7W.d.ts +13 -0
  628. package/dist/site-access-BbJUe5QI.js +2 -0
  629. package/dist/site-access-BmE8HGxs.js +292 -0
  630. package/dist/site-access-BycrwM2v.js +18 -0
  631. package/dist/site-access-DxfdOel1.d.ts +55 -0
  632. package/dist/site-session-odJq1dYa.js +272 -0
  633. package/dist/skills/operations.d.ts +17 -0
  634. package/dist/skills/operations.js +51 -0
  635. package/dist/skills-DdpSMiCI.js +500 -0
  636. package/dist/skills.d.ts +197 -0
  637. package/dist/skills.get-Bl8cBe8u.js +48 -0
  638. package/dist/skills.js +2 -0
  639. package/dist/source/drizzle.d.ts +1 -0
  640. package/dist/source/drizzle.js +2 -0
  641. package/dist/source/vite.d.ts +1 -7
  642. package/dist/source/vite.js +2 -20
  643. package/dist/source-D4wWtoHh.js +60 -0
  644. package/dist/source-S-LChQvw.d.ts +59 -0
  645. package/dist/source.d.ts +1 -2
  646. package/dist/source.js +0 -1
  647. package/dist/stored-Dhv2qsQv.js +40 -0
  648. package/dist/sync/client.d.ts +1 -0
  649. package/dist/sync/client.js +2 -0
  650. package/dist/sync/database.d.ts +1 -0
  651. package/dist/sync/database.js +2 -0
  652. package/dist/sync/operations.d.ts +1 -0
  653. package/dist/sync/operations.js +2 -0
  654. package/dist/sync/runtime.d.ts +1 -0
  655. package/dist/sync/runtime.js +2 -0
  656. package/dist/sync/vue.d.ts +1 -0
  657. package/dist/sync/vue.js +2 -0
  658. package/dist/sync.d.ts +1 -0
  659. package/dist/sync.js +2 -0
  660. package/dist/task/operations.d.ts +22 -0
  661. package/dist/task/operations.js +36 -0
  662. package/dist/test/register.d.ts +1 -0
  663. package/dist/test/register.js +68 -0
  664. package/dist/test.d.ts +175 -0
  665. package/dist/test.js +49 -0
  666. package/dist/ticket-Cudn1dq3.js +31 -0
  667. package/dist/ticket-Pr_8ZtXW.d.ts +14 -0
  668. package/dist/tickets-C_0Fhc00.js +358 -0
  669. package/dist/ui/markdown-editor.d.ts +1 -0
  670. package/dist/ui/markdown-editor.js +2 -0
  671. package/dist/ui/playground.d.ts +1 -0
  672. package/dist/ui/playground.js +2 -0
  673. package/dist/ui/styles.css +2 -2662
  674. package/dist/ui/theme.css +2 -0
  675. package/dist/ui/theme.d.ts +1 -0
  676. package/dist/ui/theme.js +2 -0
  677. package/dist/ui/workspace.d.ts +1 -0
  678. package/dist/ui/workspace.js +2 -0
  679. package/dist/usage-B4taNt4a.js +569 -0
  680. package/dist/usage-index-BsGAFzyq.js +335 -0
  681. package/dist/version-DNmSsk5r.js +1083 -0
  682. package/dist/vite-stage-mmtwQIMA.js +66 -0
  683. package/dist/vue-router-C68IU1jM.d.ts +1914 -0
  684. package/dist/web-container/connect.d.ts +1 -0
  685. package/dist/web-container/connect.js +2 -0
  686. package/dist/web-container/env.d.ts +1 -0
  687. package/dist/web-container/env.js +2 -0
  688. package/dist/web-container/snapshot.d.ts +1 -0
  689. package/dist/web-container/snapshot.js +2 -0
  690. package/dist/web-container.d.ts +1 -0
  691. package/dist/web-container.js +2 -0
  692. package/dist/webhooks/database.d.ts +1 -0
  693. package/dist/webhooks/database.js +2 -0
  694. package/dist/webhooks/operations.d.ts +1 -0
  695. package/dist/webhooks/operations.js +2 -0
  696. package/dist/webhooks/runtime.d.ts +1 -0
  697. package/dist/webhooks/runtime.js +2 -0
  698. package/dist/webhooks.d.ts +1 -0
  699. package/dist/webhooks.js +2 -0
  700. package/dist/workflow/openworkflow.d.ts +1 -0
  701. package/dist/workflow/openworkflow.js +2 -0
  702. package/dist/workspace/checkout.d.ts +1 -0
  703. package/dist/workspace/checkout.js +2 -0
  704. package/dist/workspace/files.d.ts +1 -0
  705. package/dist/workspace/files.js +2 -0
  706. package/dist/workspace/lineage.d.ts +1 -0
  707. package/dist/workspace/lineage.js +2 -0
  708. package/dist/workspace-history-CeVwBB6Q.d.ts +52 -0
  709. package/dist/workspace-history-CraoERnc.js +248 -0
  710. package/package.json +690 -706
  711. package/dist/_internal/agent/cloudflare/state.d.ts +0 -1
  712. package/dist/_internal/agent/cloudflare/state.js +0 -2
  713. package/dist/_internal/agent/cloudflare.d.ts +0 -1
  714. package/dist/_internal/agent/cloudflare.js +0 -2
  715. package/dist/_internal/agent/eve.d.ts +0 -1
  716. package/dist/_internal/agent/eve.js +0 -2
  717. package/dist/_internal/agent/invocations.d.ts +0 -2
  718. package/dist/_internal/agent/invocations.js +0 -88
  719. package/dist/_internal/agent/operations.d.ts +0 -1
  720. package/dist/_internal/agent/operations.js +0 -2
  721. package/dist/_internal/agent/runtime/invocations-dev.d.ts +0 -1
  722. package/dist/_internal/agent/runtime/invocations-dev.js +0 -2
  723. package/dist/_internal/agent/runtime/process.d.ts +0 -1
  724. package/dist/_internal/agent/runtime/process.js +0 -2
  725. package/dist/_internal/agent/runtime/workflow.d.ts +0 -1
  726. package/dist/_internal/agent/runtime/workflow.js +0 -2
  727. package/dist/_internal/agent/server/internal.d.ts +0 -1
  728. package/dist/_internal/agent/server/internal.js +0 -2
  729. package/dist/_internal/agent/server/registry.d.ts +0 -1
  730. package/dist/_internal/agent/server/registry.js +0 -2
  731. package/dist/_internal/agent/server/workspace.d.ts +0 -1
  732. package/dist/_internal/agent/server/workspace.js +0 -2
  733. package/dist/_internal/agent/server.d.ts +0 -1
  734. package/dist/_internal/agent/server.js +0 -2
  735. package/dist/_internal/agent/state/sqlite.d.ts +0 -1
  736. package/dist/_internal/agent/state/sqlite.js +0 -2
  737. package/dist/_internal/agent.d.ts +0 -1
  738. package/dist/_internal/agent.js +0 -2
  739. package/dist/_internal/auth/runtime/console.d.ts +0 -1
  740. package/dist/_internal/auth/runtime/console.js +0 -2
  741. package/dist/_internal/blob/operations.d.ts +0 -1
  742. package/dist/_internal/blob/operations.js +0 -2
  743. package/dist/_internal/blob/runtime/state.d.ts +0 -1
  744. package/dist/_internal/blob/runtime/state.js +0 -2
  745. package/dist/_internal/blob.d.ts +0 -1
  746. package/dist/_internal/blob.js +0 -2
  747. package/dist/_internal/comments/operations.d.ts +0 -1
  748. package/dist/_internal/comments/operations.js +0 -2
  749. package/dist/_internal/comments/runtime/console.d.ts +0 -1
  750. package/dist/_internal/comments/runtime/console.js +0 -2
  751. package/dist/_internal/content/operations.d.ts +0 -1
  752. package/dist/_internal/content/operations.js +0 -2
  753. package/dist/_internal/content/runtime/console.d.ts +0 -1
  754. package/dist/_internal/content/runtime/console.js +0 -2
  755. package/dist/_internal/database/runtime/state.d.ts +0 -5
  756. package/dist/_internal/database/runtime/state.js +0 -7
  757. package/dist/_internal/email/operations.d.ts +0 -1
  758. package/dist/_internal/email/operations.js +0 -2
  759. package/dist/_internal/email/runtime/console.d.ts +0 -1
  760. package/dist/_internal/email/runtime/console.js +0 -2
  761. package/dist/_internal/kv/operations.d.ts +0 -1
  762. package/dist/_internal/kv/operations.js +0 -2
  763. package/dist/_internal/kv/runtime/disabled-upstash.d.ts +0 -3
  764. package/dist/_internal/kv/runtime/disabled-upstash.js +0 -7
  765. package/dist/_internal/kv.d.ts +0 -1
  766. package/dist/_internal/kv.js +0 -2
  767. package/dist/_internal/markdown-template.d.ts +0 -2
  768. package/dist/_internal/markdown-template.js +0 -2
  769. package/dist/_internal/queue/operations.d.ts +0 -1
  770. package/dist/_internal/queue/operations.js +0 -2
  771. package/dist/_internal/rate-limit/operations.d.ts +0 -1
  772. package/dist/_internal/rate-limit/operations.js +0 -2
  773. package/dist/_internal/rate-limit/runtime.d.ts +0 -1
  774. package/dist/_internal/rate-limit/runtime.js +0 -2
  775. package/dist/_internal/sandbox/task/runtime/state.d.ts +0 -1
  776. package/dist/_internal/sandbox/task/runtime/state.js +0 -2
  777. package/dist/_internal/schedule/operations.d.ts +0 -1
  778. package/dist/_internal/schedule/operations.js +0 -2
  779. package/dist/_internal/schedule/runtime/kv.d.ts +0 -1
  780. package/dist/_internal/schedule/runtime/kv.js +0 -2
  781. package/dist/_internal/schedule/runtime/process.d.ts +0 -1
  782. package/dist/_internal/schedule/runtime/process.js +0 -2
  783. package/dist/_internal/schedule/runtime/static.d.ts +0 -1
  784. package/dist/_internal/schedule/runtime/static.js +0 -2
  785. package/dist/_internal/schedule/runtime.d.ts +0 -1
  786. package/dist/_internal/schedule/runtime.js +0 -2
  787. package/dist/_internal/schedule.d.ts +0 -1
  788. package/dist/_internal/schedule.js +0 -2
  789. package/dist/_internal/task/operations.d.ts +0 -5
  790. package/dist/_internal/task/operations.js +0 -2
  791. package/dist/_internal/workflow/operations.d.ts +0 -1
  792. package/dist/_internal/workflow/operations.js +0 -2
  793. package/dist/_internal/workflow/runtime/cloudflare-runner.d.ts +0 -1
  794. package/dist/_internal/workflow/runtime/cloudflare-runner.js +0 -2
  795. package/dist/_internal/workflow/runtime/cloudflare-vite.d.ts +0 -1
  796. package/dist/_internal/workflow/runtime/cloudflare-vite.js +0 -2
  797. package/dist/_internal/workflow/runtime/execute.d.ts +0 -1
  798. package/dist/_internal/workflow/runtime/execute.js +0 -2
  799. package/dist/_internal/workflow/runtime/state.d.ts +0 -1
  800. package/dist/_internal/workflow/runtime/state.js +0 -2
  801. package/dist/_internal/workflow/runtime/vercel-vite.d.ts +0 -1
  802. package/dist/_internal/workflow/runtime/vercel-vite.js +0 -2
  803. package/dist/_internal/workflow.d.ts +0 -1
  804. package/dist/_internal/workflow.js +0 -2
  805. package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.d.ts +0 -1
  806. package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.js +0 -2
  807. package/dist/_internal/workspace/internal/runtime/hosted.d.ts +0 -1
  808. package/dist/_internal/workspace/internal/runtime/hosted.js +0 -2
  809. package/dist/_internal/workspace/internal/runtime/state.d.ts +0 -1
  810. package/dist/_internal/workspace/internal/runtime/state.js +0 -2
  811. package/dist/_internal/workspace/operations.d.ts +0 -1
  812. package/dist/_internal/workspace/operations.js +0 -2
  813. package/dist/_internal/workspace/runtime.d.ts +0 -1
  814. package/dist/_internal/workspace/runtime.js +0 -2
  815. package/dist/_internal/workspace.d.ts +0 -1
  816. package/dist/_internal/workspace.js +0 -2
  817. package/dist/access-BhTe9yuV.js +0 -516
  818. package/dist/access-CBqnsYdj.d.ts +0 -130
  819. package/dist/agent/invocations/d1.d.ts +0 -1
  820. package/dist/agent/invocations/d1.js +0 -2
  821. package/dist/agent/invocations/sqlite.d.ts +0 -1
  822. package/dist/agent/invocations/sqlite.js +0 -2
  823. package/dist/agent/process-host.d.ts +0 -1
  824. package/dist/agent/process-host.js +0 -2
  825. package/dist/agent/runtime/process.d.ts +0 -1
  826. package/dist/agent/runtime/process.js +0 -2
  827. package/dist/agent/server/github.d.ts +0 -1
  828. package/dist/agent/server/github.js +0 -2
  829. package/dist/agent/state/sqlite.d.ts +0 -1
  830. package/dist/agent/state/sqlite.js +0 -2
  831. package/dist/agent-invocations.post-CFKMEy-h.js +0 -432
  832. package/dist/agents-BNmuN4Qa.d.ts +0 -99
  833. package/dist/agents-CVehuMFA.js +0 -118
  834. package/dist/auth/console-runtime.d.ts +0 -1
  835. package/dist/auth/console-runtime.js +0 -2
  836. package/dist/auth/console.d.ts +0 -1
  837. package/dist/auth/console.js +0 -2
  838. package/dist/auth-BSSM-qh0.js +0 -700
  839. package/dist/auth-CG8tmgH7.d.ts +0 -106
  840. package/dist/auth-cloudflare-access-CE8xUzhY.d.ts +0 -50
  841. package/dist/auth-inline-config--vlclzm3.js +0 -18
  842. package/dist/auth-inline-config-R6q_4Iwo.d.ts +0 -30
  843. package/dist/auth-path-B7Ssonj-.js +0 -49
  844. package/dist/blob/content-type.d.ts +0 -1
  845. package/dist/blob/content-type.js +0 -2
  846. package/dist/blob-D9v5Djxw.d.ts +0 -7
  847. package/dist/browser/actions.d.ts +0 -1
  848. package/dist/browser/actions.js +0 -2
  849. package/dist/cloudflare-env-CIZCKabz.js +0 -70
  850. package/dist/comments-overlay/loader.BcGn0Hsk.js +0 -1
  851. package/dist/comments-overlay/overlay.D7vmaSrE.js +0 -2
  852. package/dist/connections/http.d.ts +0 -1
  853. package/dist/connections/http.js +0 -2
  854. package/dist/console/auth-client.d.ts +0 -8
  855. package/dist/console/auth-client.js +0 -6
  856. package/dist/console/auth-cloudflare-access.d.ts +0 -2
  857. package/dist/console/auth-cloudflare-access.js +0 -116
  858. package/dist/console/auth-inline.d.ts +0 -6
  859. package/dist/console/auth-inline.js +0 -107
  860. package/dist/console/runtime/client/build.d.ts +0 -14
  861. package/dist/console/runtime/client/build.js +0 -68
  862. package/dist/console/runtime/client/connections-management.d.ts +0 -68
  863. package/dist/console/runtime/client/connections-management.js +0 -201
  864. package/dist/console/runtime/client/env-management.d.ts +0 -20
  865. package/dist/console/runtime/client/env-management.js +0 -84
  866. package/dist/console/runtime/client/mcp.d.ts +0 -9
  867. package/dist/console/runtime/client/mcp.js +0 -14
  868. package/dist/console/runtime/client/sign-in.d.ts +0 -21
  869. package/dist/console/runtime/client/sign-in.js +0 -16
  870. package/dist/console/runtime/client/time.d.ts +0 -30
  871. package/dist/console/runtime/client/time.js +0 -106
  872. package/dist/console/runtime/components/console-connect-agent.vue +0 -59
  873. package/dist/console/runtime/components/console-connections-activity.vue +0 -76
  874. package/dist/console/runtime/components/console-connections-approvals.vue +0 -169
  875. package/dist/console/runtime/components/console-connections-details.vue +0 -295
  876. package/dist/console/runtime/components/console-connections.vue +0 -296
  877. package/dist/console/runtime/components/console-env-access.vue +0 -151
  878. package/dist/console/runtime/components/console-env-activity.vue +0 -89
  879. package/dist/console/runtime/components/console-env-managed.vue +0 -203
  880. package/dist/console/runtime/components/console-status.vue +0 -25
  881. package/dist/console/runtime/components/invocation/internal/runtime-type.ts +0 -61
  882. package/dist/console/runtime/components/invocation/nuxt/AgentInvocation.ts +0 -1
  883. package/dist/console/runtime/components/invocation/nuxt/AgentInvocationInspector.ts +0 -1
  884. package/dist/console/runtime/components/invocation/nuxt/AgentInvocationList.ts +0 -1
  885. package/dist/console/runtime/public/console/assets/console-app-CUTwptGe.css +0 -1
  886. package/dist/console/runtime/public/console/assets/console-auth-B_XoOPaB.css +0 -1
  887. package/dist/console/runtime/public/console/assets/console-database-BbZ7J_Mh.css +0 -1
  888. package/dist/console/runtime/public/console/assets/console-documents-BV1adqXa.css +0 -1
  889. package/dist/console/runtime/public/console/assets/console-home-DYNL7OZH.css +0 -1
  890. package/dist/console/runtime/public/console/assets/console-logs-BJxR8DcR.css +0 -1
  891. package/dist/console/runtime/public/console/assets/console-media-browser-Dqm8kLKS.css +0 -1
  892. package/dist/console/runtime/public/console/assets/console-search-DnK-eWOO.css +0 -1
  893. package/dist/console/runtime/public/console/assets/katex-BztabbvB.css +0 -1
  894. package/dist/console/runtime/public/console/chunks/Alert-A44KLyli.js +0 -111
  895. package/dist/console/runtime/public/console/chunks/Button-B-5IVAVN.js +0 -1
  896. package/dist/console/runtime/public/console/chunks/Checkbox-B6MMrqB7.js +0 -1
  897. package/dist/console/runtime/public/console/chunks/DashboardSidebar-D1tMg0lD.js +0 -1
  898. package/dist/console/runtime/public/console/chunks/Empty-DSuwpzRi.js +0 -1
  899. package/dist/console/runtime/public/console/chunks/FormField-C1QuQLPv.js +0 -1
  900. package/dist/console/runtime/public/console/chunks/Icon-DDNuGxPl.js +0 -1
  901. package/dist/console/runtime/public/console/chunks/Modal-BCfHPiul.js +0 -1
  902. package/dist/console/runtime/public/console/chunks/Popover-BIzgqwDJ.js +0 -1
  903. package/dist/console/runtime/public/console/chunks/RovingFocusItem-BQiInss6.js +0 -1
  904. package/dist/console/runtime/public/console/chunks/Select-CLtjSqJ4.js +0 -1
  905. package/dist/console/runtime/public/console/chunks/Slideover-CHzYTMLO.js +0 -1
  906. package/dist/console/runtime/public/console/chunks/Switch-0VgVgteh.js +0 -1
  907. package/dist/console/runtime/public/console/chunks/Table-dr_6Rarq.js +0 -4
  908. package/dist/console/runtime/public/console/chunks/Tabs-BbKlHRNF.js +0 -1
  909. package/dist/console/runtime/public/console/chunks/Textarea-DEoHK30I.js +0 -1
  910. package/dist/console/runtime/public/console/chunks/abap-CLvhMVsD.js +0 -1
  911. package/dist/console/runtime/public/console/chunks/actionscript-3-Cs6JJXT5.js +0 -1
  912. package/dist/console/runtime/public/console/chunks/ada-X3Y2mlq2.js +0 -1
  913. package/dist/console/runtime/public/console/chunks/ahk-DwADkxyd.js +0 -1
  914. package/dist/console/runtime/public/console/chunks/ahk2-_6rzW9BS.js +0 -1
  915. package/dist/console/runtime/public/console/chunks/andromeeda-BASpqCeJ-vGVdxbeo.js +0 -1
  916. package/dist/console/runtime/public/console/chunks/andromeeda-vGVdxbeo.js +0 -1
  917. package/dist/console/runtime/public/console/chunks/angular-html-_r0QlJAV.js +0 -1
  918. package/dist/console/runtime/public/console/chunks/angular-ts-BdSNcv2x.js +0 -1
  919. package/dist/console/runtime/public/console/chunks/apache-U0d_L8uA.js +0 -1
  920. package/dist/console/runtime/public/console/chunks/apex-KFGFyKwG.js +0 -1
  921. package/dist/console/runtime/public/console/chunks/apl-CD0B-dgl.js +0 -1
  922. package/dist/console/runtime/public/console/chunks/applescript-CCn79oCD.js +0 -1
  923. package/dist/console/runtime/public/console/chunks/ara-4CJ0cIlV.js +0 -1
  924. package/dist/console/runtime/public/console/chunks/asciidoc-SCjQUq34.js +0 -1
  925. package/dist/console/runtime/public/console/chunks/asm-Cmm7eHzH.js +0 -1
  926. package/dist/console/runtime/public/console/chunks/astro-BuBCLsVb.js +0 -1
  927. package/dist/console/runtime/public/console/chunks/aurora-x-CDeNXAV0.js +0 -1
  928. package/dist/console/runtime/public/console/chunks/aurora-x-DugsLcii-CDeNXAV0.js +0 -1
  929. package/dist/console/runtime/public/console/chunks/awk-BWXHIvNe.js +0 -1
  930. package/dist/console/runtime/public/console/chunks/ayu-dark-BT3qdi3o-DluEY0Gj.js +0 -1
  931. package/dist/console/runtime/public/console/chunks/ayu-dark-DluEY0Gj.js +0 -1
  932. package/dist/console/runtime/public/console/chunks/ayu-light-BVZyHoh9-C3h-C4tm.js +0 -1
  933. package/dist/console/runtime/public/console/chunks/ayu-light-C3h-C4tm.js +0 -1
  934. package/dist/console/runtime/public/console/chunks/ayu-mirage-Bqwy1Gya.js +0 -1
  935. package/dist/console/runtime/public/console/chunks/ayu-mirage-XFwUVZQZ-Bqwy1Gya.js +0 -1
  936. package/dist/console/runtime/public/console/chunks/ballerina-B7ZEbQpA.js +0 -1
  937. package/dist/console/runtime/public/console/chunks/bat-qdxAdBWQ.js +0 -1
  938. package/dist/console/runtime/public/console/chunks/beancount-C2IN4Vk8.js +0 -1
  939. package/dist/console/runtime/public/console/chunks/berry-DKpUyyne.js +0 -1
  940. package/dist/console/runtime/public/console/chunks/bibtex-Ci_nEsc7.js +0 -1
  941. package/dist/console/runtime/public/console/chunks/bicep-CUHmPFLl.js +0 -1
  942. package/dist/console/runtime/public/console/chunks/bird2-CYIUgYqB.js +0 -1
  943. package/dist/console/runtime/public/console/chunks/blade-3tdbLOEu.js +0 -1
  944. package/dist/console/runtime/public/console/chunks/bsl-_VjlB9mv.js +0 -1
  945. package/dist/console/runtime/public/console/chunks/c-C1MtNG6h.js +0 -1
  946. package/dist/console/runtime/public/console/chunks/c3-D0apG41V.js +0 -1
  947. package/dist/console/runtime/public/console/chunks/cadence-CQ2zXKGN.js +0 -1
  948. package/dist/console/runtime/public/console/chunks/cairo-DLTphjLi.js +0 -1
  949. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-C9Q5zVZY.js +0 -1
  950. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-D20KODDN-C9Q5zVZY.js +0 -1
  951. package/dist/console/runtime/public/console/chunks/catppuccin-latte-CtsyrtPq.js +0 -1
  952. package/dist/console/runtime/public/console/chunks/catppuccin-latte-eGLVHIUJ-CtsyrtPq.js +0 -1
  953. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-R8nAf1vR.js +0 -1
  954. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-bQGch4PY-R8nAf1vR.js +0 -1
  955. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-Bes8-0Mr-DjuaAJKi.js +0 -1
  956. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DjuaAJKi.js +0 -1
  957. package/dist/console/runtime/public/console/chunks/chapel-BzgYECs1.js +0 -1
  958. package/dist/console/runtime/public/console/chunks/clarity-CtfBBspg.js +0 -1
  959. package/dist/console/runtime/public/console/chunks/clojure-DqKBuwfJ.js +0 -1
  960. package/dist/console/runtime/public/console/chunks/cmake-Bj61d0ZC.js +0 -1
  961. package/dist/console/runtime/public/console/chunks/cobol-DObdkphG.js +0 -1
  962. package/dist/console/runtime/public/console/chunks/code-view-J4OsgEdh-B89t0LaT.js +0 -2
  963. package/dist/console/runtime/public/console/chunks/codeowners-C8r90Shi.js +0 -1
  964. package/dist/console/runtime/public/console/chunks/codeql-oeQT6MSM.js +0 -1
  965. package/dist/console/runtime/public/console/chunks/coffee-C94_xO1a.js +0 -1
  966. package/dist/console/runtime/public/console/chunks/common-lisp-Cv5bFMCO.js +0 -1
  967. package/dist/console/runtime/public/console/chunks/console-app-C50IIheA.js +0 -85
  968. package/dist/console/runtime/public/console/chunks/console-auth-D4zc7Haw.js +0 -2
  969. package/dist/console/runtime/public/console/chunks/console-blob-CAJwJy4D.js +0 -1
  970. package/dist/console/runtime/public/console/chunks/console-channels-DZQwinKY.js +0 -1
  971. package/dist/console/runtime/public/console/chunks/console-connections-Buk5WGxr.js +0 -6
  972. package/dist/console/runtime/public/console/chunks/console-database-CKc8H8FN.js +0 -1
  973. package/dist/console/runtime/public/console/chunks/console-definitions-NriWGCYI.js +0 -1
  974. package/dist/console/runtime/public/console/chunks/console-documents-BnBRfM_7.js +0 -314
  975. package/dist/console/runtime/public/console/chunks/console-env-CLmYhbox.js +0 -1
  976. package/dist/console/runtime/public/console/chunks/console-home-smb5yMSF.js +0 -2
  977. package/dist/console/runtime/public/console/chunks/console-kv-B1tLQHM9.js +0 -1
  978. package/dist/console/runtime/public/console/chunks/console-logs-CjxEiek5.js +0 -1
  979. package/dist/console/runtime/public/console/chunks/console-media-browser-o4BQu9KZ.js +0 -1
  980. package/dist/console/runtime/public/console/chunks/console-operation-view-CGxpuMSQ.js +0 -1
  981. package/dist/console/runtime/public/console/chunks/console-page-header-DDAcJBpl.js +0 -1
  982. package/dist/console/runtime/public/console/chunks/console-page-toolbar-CvYwaKTR.js +0 -1
  983. package/dist/console/runtime/public/console/chunks/console-property-list-96rL7wos.js +0 -1
  984. package/dist/console/runtime/public/console/chunks/console-relative-time-RB6-yiul.js +0 -1
  985. package/dist/console/runtime/public/console/chunks/console-search-D4EVLUeN.js +0 -5
  986. package/dist/console/runtime/public/console/chunks/console-setup-hint-8TRzgkby.js +0 -1
  987. package/dist/console/runtime/public/console/chunks/console-status-DH5NgNAQ.js +0 -1
  988. package/dist/console/runtime/public/console/chunks/coq-CGaSfhwR.js +0 -1
  989. package/dist/console/runtime/public/console/chunks/core-CD3So4L1.js +0 -12
  990. package/dist/console/runtime/public/console/chunks/cpp-DMjdIJj9.js +0 -1
  991. package/dist/console/runtime/public/console/chunks/crystal-Czr8rWWf.js +0 -1
  992. package/dist/console/runtime/public/console/chunks/csharp-dmMxLVLW.js +0 -1
  993. package/dist/console/runtime/public/console/chunks/css-B6l3ejVl.js +0 -1
  994. package/dist/console/runtime/public/console/chunks/css-BDmUYLyz.js +0 -1
  995. package/dist/console/runtime/public/console/chunks/csv-Dx-8-gkx.js +0 -1
  996. package/dist/console/runtime/public/console/chunks/cue-CE9AQfxI.js +0 -1
  997. package/dist/console/runtime/public/console/chunks/cypher-ClKdZ_lG.js +0 -1
  998. package/dist/console/runtime/public/console/chunks/d-qD-0Kul2.js +0 -1
  999. package/dist/console/runtime/public/console/chunks/dark-plus-BGuiqa1B-Cs2F2srj.js +0 -1
  1000. package/dist/console/runtime/public/console/chunks/dark-plus-Cs2F2srj.js +0 -1
  1001. package/dist/console/runtime/public/console/chunks/dart-CHZY9Xhz.js +0 -1
  1002. package/dist/console/runtime/public/console/chunks/dax-BkyTk9wS.js +0 -1
  1003. package/dist/console/runtime/public/console/chunks/defu-DSJ9I3OW.js +0 -1
  1004. package/dist/console/runtime/public/console/chunks/desktop-Dlh5hvp9.js +0 -1
  1005. package/dist/console/runtime/public/console/chunks/diff-woXpYk--.js +0 -1
  1006. package/dist/console/runtime/public/console/chunks/dist-Cfws9tG7.js +0 -1
  1007. package/dist/console/runtime/public/console/chunks/docker-sj3NF4m5.js +0 -1
  1008. package/dist/console/runtime/public/console/chunks/dockerfile-C147k2YT.js +0 -1
  1009. package/dist/console/runtime/public/console/chunks/dotenv-CuH5my32.js +0 -1
  1010. package/dist/console/runtime/public/console/chunks/dracula-0CVA2XY5-BHWKrbxM.js +0 -1
  1011. package/dist/console/runtime/public/console/chunks/dracula-BHWKrbxM.js +0 -1
  1012. package/dist/console/runtime/public/console/chunks/dracula-soft-5eyTD99u.js +0 -1
  1013. package/dist/console/runtime/public/console/chunks/dracula-soft-Dk9bpbVU-5eyTD99u.js +0 -1
  1014. package/dist/console/runtime/public/console/chunks/dream-maker-DW3nJb8Q.js +0 -1
  1015. package/dist/console/runtime/public/console/chunks/edge-D8F7z1FE.js +0 -1
  1016. package/dist/console/runtime/public/console/chunks/elixir-DH2VBix4.js +0 -1
  1017. package/dist/console/runtime/public/console/chunks/elm-D2qVkg3B.js +0 -1
  1018. package/dist/console/runtime/public/console/chunks/emacs-lisp-DR2vtWaj.js +0 -1
  1019. package/dist/console/runtime/public/console/chunks/engine-compile-DS_05kfr.js +0 -141
  1020. package/dist/console/runtime/public/console/chunks/engine-javascript-Dymre4AG.js +0 -1
  1021. package/dist/console/runtime/public/console/chunks/env-management-CNydNlRX.js +0 -1
  1022. package/dist/console/runtime/public/console/chunks/erb-B_-2w0Bg.js +0 -1
  1023. package/dist/console/runtime/public/console/chunks/erlang-Cphh6RMH.js +0 -1
  1024. package/dist/console/runtime/public/console/chunks/everforest-dark-CRjTbhh5-sB-x3p7T.js +0 -1
  1025. package/dist/console/runtime/public/console/chunks/everforest-dark-sB-x3p7T.js +0 -1
  1026. package/dist/console/runtime/public/console/chunks/everforest-light-CEeYFLn8-Df2xbC6M.js +0 -1
  1027. package/dist/console/runtime/public/console/chunks/everforest-light-Df2xbC6M.js +0 -1
  1028. package/dist/console/runtime/public/console/chunks/fennel-DQxkIbk2.js +0 -1
  1029. package/dist/console/runtime/public/console/chunks/field-a8AvhnKh-Da49LBBi.js +0 -1
  1030. package/dist/console/runtime/public/console/chunks/file-tree-2PXztdQ7.js +0 -1266
  1031. package/dist/console/runtime/public/console/chunks/fish-BJitypiv.js +0 -1
  1032. package/dist/console/runtime/public/console/chunks/fluent-C03EYrpw.js +0 -1
  1033. package/dist/console/runtime/public/console/chunks/format-Bm0hCiYP.js +0 -1
  1034. package/dist/console/runtime/public/console/chunks/fortran-fixed-form-DEKoE2YW.js +0 -1
  1035. package/dist/console/runtime/public/console/chunks/fortran-free-form-CYNrtFtB.js +0 -1
  1036. package/dist/console/runtime/public/console/chunks/fsharp-D13ZGOAj.js +0 -1
  1037. package/dist/console/runtime/public/console/chunks/gdresource-xMC7jr7x.js +0 -1
  1038. package/dist/console/runtime/public/console/chunks/gdscript-DYvRD3hg.js +0 -1
  1039. package/dist/console/runtime/public/console/chunks/gdshader-CBce3t8t.js +0 -1
  1040. package/dist/console/runtime/public/console/chunks/genie-CV2tkWYe.js +0 -1
  1041. package/dist/console/runtime/public/console/chunks/gherkin-DExj1W_8.js +0 -1
  1042. package/dist/console/runtime/public/console/chunks/git-commit-BSykSTBG.js +0 -1
  1043. package/dist/console/runtime/public/console/chunks/git-rebase-CNMiHM3o.js +0 -1
  1044. package/dist/console/runtime/public/console/chunks/github-dark-BXgKmOw_-C-LZuMrd.js +0 -1
  1045. package/dist/console/runtime/public/console/chunks/github-dark-C-LZuMrd.js +0 -1
  1046. package/dist/console/runtime/public/console/chunks/github-dark-default-DXG-b-1a.js +0 -1
  1047. package/dist/console/runtime/public/console/chunks/github-dark-default-Dk3Gj2bt.js +0 -1
  1048. package/dist/console/runtime/public/console/chunks/github-dark-default-DzJQXksd-DXG-b-1a.js +0 -1
  1049. package/dist/console/runtime/public/console/chunks/github-dark-dimmed-B1pEmGtS-Bx1FflLF.js +0 -1
  1050. package/dist/console/runtime/public/console/chunks/github-dark-dimmed-Bx1FflLF.js +0 -1
  1051. package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-B_tTalzw.js +0 -1
  1052. package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-BkHIa6jc-B_tTalzw.js +0 -1
  1053. package/dist/console/runtime/public/console/chunks/github-light-BKRlUbaB-EUqPIrTm.js +0 -1
  1054. package/dist/console/runtime/public/console/chunks/github-light-EUqPIrTm.js +0 -1
  1055. package/dist/console/runtime/public/console/chunks/github-light-default-BU3eYkzs-BXViO-2h.js +0 -1
  1056. package/dist/console/runtime/public/console/chunks/github-light-default-BXViO-2h.js +0 -1
  1057. package/dist/console/runtime/public/console/chunks/github-light-default-CC-h3suv.js +0 -1
  1058. package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B3MumDcI-B68TUdTA.js +0 -1
  1059. package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B68TUdTA.js +0 -1
  1060. package/dist/console/runtime/public/console/chunks/gleam-CSRkHgEL.js +0 -1
  1061. package/dist/console/runtime/public/console/chunks/glimmer-js-CwoxQgjc.js +0 -1
  1062. package/dist/console/runtime/public/console/chunks/glimmer-ts-DpQshMGP.js +0 -1
  1063. package/dist/console/runtime/public/console/chunks/glsl-vvkIs2ij.js +0 -1
  1064. package/dist/console/runtime/public/console/chunks/gn-CAXYAgV-.js +0 -1
  1065. package/dist/console/runtime/public/console/chunks/gnuplot-7GGW24-e.js +0 -1
  1066. package/dist/console/runtime/public/console/chunks/go-rLFTqkRN.js +0 -1
  1067. package/dist/console/runtime/public/console/chunks/graphql-ChhlowTj.js +0 -1
  1068. package/dist/console/runtime/public/console/chunks/groovy-CacY0gHj.js +0 -1
  1069. package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-B0ecF443-C820rvS2.js +0 -1
  1070. package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-C820rvS2.js +0 -1
  1071. package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BPjhmG05.js +0 -1
  1072. package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BQnpC39k-BPjhmG05.js +0 -1
  1073. package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-DFZUgESr-MrdJrrXF.js +0 -1
  1074. package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-MrdJrrXF.js +0 -1
  1075. package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-BC_s9l72.js +0 -1
  1076. package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-CuB_LOJr-BC_s9l72.js +0 -1
  1077. package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-BAWPOn9u.js +0 -1
  1078. package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-idDHgxjs-BAWPOn9u.js +0 -1
  1079. package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-BSMLrYjP.js +0 -1
  1080. package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-CfWH49MY-BSMLrYjP.js +0 -1
  1081. package/dist/console/runtime/public/console/chunks/hack--5hWxtov.js +0 -1
  1082. package/dist/console/runtime/public/console/chunks/haml-DOOWKVAn.js +0 -1
  1083. package/dist/console/runtime/public/console/chunks/handlebars-CrRNKWA2.js +0 -1
  1084. package/dist/console/runtime/public/console/chunks/haskell-D8IpX4py.js +0 -1
  1085. package/dist/console/runtime/public/console/chunks/haxe-C8oCnwJJ.js +0 -1
  1086. package/dist/console/runtime/public/console/chunks/hcl-Dh228itO.js +0 -1
  1087. package/dist/console/runtime/public/console/chunks/hjson-CxZEssPk.js +0 -1
  1088. package/dist/console/runtime/public/console/chunks/hlsl-Cvrh5tZx.js +0 -1
  1089. package/dist/console/runtime/public/console/chunks/horizon-CE9ld1lL.js +0 -1
  1090. package/dist/console/runtime/public/console/chunks/horizon-bright-Ba6M8QSV-DSNQnXHK.js +0 -1
  1091. package/dist/console/runtime/public/console/chunks/horizon-bright-DSNQnXHK.js +0 -1
  1092. package/dist/console/runtime/public/console/chunks/horizon-h92C5OlZ-CE9ld1lL.js +0 -1
  1093. package/dist/console/runtime/public/console/chunks/houston-CsvMBhTu.js +0 -1
  1094. package/dist/console/runtime/public/console/chunks/houston-EQnPegWq-CsvMBhTu.js +0 -1
  1095. package/dist/console/runtime/public/console/chunks/html-DrTLqG4V.js +0 -1
  1096. package/dist/console/runtime/public/console/chunks/html-DwfkhSwv.js +0 -1
  1097. package/dist/console/runtime/public/console/chunks/html-derivative-JoBPPO4R.js +0 -1
  1098. package/dist/console/runtime/public/console/chunks/http-DKXz4J4h.js +0 -1
  1099. package/dist/console/runtime/public/console/chunks/hurl-m2MDTJJI.js +0 -1
  1100. package/dist/console/runtime/public/console/chunks/hxml-Dcm88srW.js +0 -1
  1101. package/dist/console/runtime/public/console/chunks/hy-CZbG8q4J.js +0 -1
  1102. package/dist/console/runtime/public/console/chunks/icons-CDKEwnTx.js +0 -1
  1103. package/dist/console/runtime/public/console/chunks/imba-DsUTQ-LC.js +0 -1
  1104. package/dist/console/runtime/public/console/chunks/ini-B5eOa1yu.js +0 -1
  1105. package/dist/console/runtime/public/console/chunks/java-DJ6V61UG.js +0 -1
  1106. package/dist/console/runtime/public/console/chunks/javascript-DOney_iy.js +0 -1
  1107. package/dist/console/runtime/public/console/chunks/javascript-DhBmaPc1.js +0 -1
  1108. package/dist/console/runtime/public/console/chunks/jinja-CywE_Am-.js +0 -1
  1109. package/dist/console/runtime/public/console/chunks/jison-D8DWHhWo.js +0 -1
  1110. package/dist/console/runtime/public/console/chunks/json-B6nR7qG1.js +0 -1
  1111. package/dist/console/runtime/public/console/chunks/json-D0JmQrvp.js +0 -1
  1112. package/dist/console/runtime/public/console/chunks/json5-BR5RXkoi.js +0 -1
  1113. package/dist/console/runtime/public/console/chunks/jsonc-CYpm1nAK.js +0 -1
  1114. package/dist/console/runtime/public/console/chunks/jsonc-D4AqO_oZ.js +0 -1
  1115. package/dist/console/runtime/public/console/chunks/jsonl-CmCQp5Yx.js +0 -1
  1116. package/dist/console/runtime/public/console/chunks/jsonnet-CJTPZ8u_.js +0 -1
  1117. package/dist/console/runtime/public/console/chunks/jssm-DXw9l8Rf.js +0 -1
  1118. package/dist/console/runtime/public/console/chunks/jsx-Dro3SMhn.js +0 -1
  1119. package/dist/console/runtime/public/console/chunks/jsx-_Ptt0Qo0.js +0 -1
  1120. package/dist/console/runtime/public/console/chunks/julia-CruTRp58.js +0 -1
  1121. package/dist/console/runtime/public/console/chunks/just-aBPtXuIr.js +0 -1
  1122. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-Bozd7klA.js +0 -1
  1123. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DgDvwi3B-Bozd7klA.js +0 -1
  1124. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BgoQro20-BmuOG9ZW.js +0 -1
  1125. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BmuOG9ZW.js +0 -1
  1126. package/dist/console/runtime/public/console/chunks/kanagawa-wave-BML5mF2J.js +0 -1
  1127. package/dist/console/runtime/public/console/chunks/kanagawa-wave-DgXEowHs-BML5mF2J.js +0 -1
  1128. package/dist/console/runtime/public/console/chunks/katex-CF6MVAvO.js +0 -257
  1129. package/dist/console/runtime/public/console/chunks/kdl-CsD5j6eV.js +0 -1
  1130. package/dist/console/runtime/public/console/chunks/kotlin-DhhofPvG.js +0 -1
  1131. package/dist/console/runtime/public/console/chunks/kusto-C7mF5XQf.js +0 -1
  1132. package/dist/console/runtime/public/console/chunks/laserwave-C_8bwKvT.js +0 -1
  1133. package/dist/console/runtime/public/console/chunks/laserwave-IxBH_3yW-C_8bwKvT.js +0 -1
  1134. package/dist/console/runtime/public/console/chunks/latex-DV9xWg1U.js +0 -1
  1135. package/dist/console/runtime/public/console/chunks/lean-CewbzKMR.js +0 -1
  1136. package/dist/console/runtime/public/console/chunks/less-DVTAwKKz.js +0 -1
  1137. package/dist/console/runtime/public/console/chunks/light-plus-DVQuIRkW.js +0 -1
  1138. package/dist/console/runtime/public/console/chunks/light-plus-S8JBx6is-DVQuIRkW.js +0 -1
  1139. package/dist/console/runtime/public/console/chunks/liquid-B62JT9qD.js +0 -1
  1140. package/dist/console/runtime/public/console/chunks/llvm-DqHOMS-s.js +0 -1
  1141. package/dist/console/runtime/public/console/chunks/log-BNLmms1o.js +0 -1
  1142. package/dist/console/runtime/public/console/chunks/logo-Cluzi2Zq.js +0 -1
  1143. package/dist/console/runtime/public/console/chunks/lua-939mH6Rk.js +0 -1
  1144. package/dist/console/runtime/public/console/chunks/luau-VGWVLoqX.js +0 -1
  1145. package/dist/console/runtime/public/console/chunks/make-Dixweg8N.js +0 -1
  1146. package/dist/console/runtime/public/console/chunks/make-PPdVpZzp.js +0 -1
  1147. package/dist/console/runtime/public/console/chunks/markdown-BK4fiefF.js +0 -1
  1148. package/dist/console/runtime/public/console/chunks/markdown-BYOwaDjH.js +0 -1
  1149. package/dist/console/runtime/public/console/chunks/marko-BjHTe8yB.js +0 -1
  1150. package/dist/console/runtime/public/console/chunks/material-theme-Bm3Qr25_.js +0 -1
  1151. package/dist/console/runtime/public/console/chunks/material-theme-D1f3HBq--Bm3Qr25_.js +0 -1
  1152. package/dist/console/runtime/public/console/chunks/material-theme-darker-2IIEA8gg.js +0 -1
  1153. package/dist/console/runtime/public/console/chunks/material-theme-darker-ExzYhT0j-2IIEA8gg.js +0 -1
  1154. package/dist/console/runtime/public/console/chunks/material-theme-lighter-D6gH9nnA-uhdI0v04.js +0 -1
  1155. package/dist/console/runtime/public/console/chunks/material-theme-lighter-uhdI0v04.js +0 -1
  1156. package/dist/console/runtime/public/console/chunks/material-theme-ocean-CHQ94UKr.js +0 -1
  1157. package/dist/console/runtime/public/console/chunks/material-theme-ocean-D1w5BPAa-CHQ94UKr.js +0 -1
  1158. package/dist/console/runtime/public/console/chunks/material-theme-palenight-B5W6OYN7.js +0 -1
  1159. package/dist/console/runtime/public/console/chunks/material-theme-palenight-CkqWmVpF-B5W6OYN7.js +0 -1
  1160. package/dist/console/runtime/public/console/chunks/matlab-D7qyCx1q.js +0 -1
  1161. package/dist/console/runtime/public/console/chunks/mdc-Dsg_kn4_.js +0 -1
  1162. package/dist/console/runtime/public/console/chunks/mdx-DQZ5AkYe.js +0 -1
  1163. package/dist/console/runtime/public/console/chunks/mdx-l4Hs_llf.js +0 -1
  1164. package/dist/console/runtime/public/console/chunks/mermaid-BxpfTIzt.js +0 -1
  1165. package/dist/console/runtime/public/console/chunks/min-dark-BSWPekZh.js +0 -1
  1166. package/dist/console/runtime/public/console/chunks/min-dark-npsJH98j-BSWPekZh.js +0 -1
  1167. package/dist/console/runtime/public/console/chunks/min-light-DDpmG2fV.js +0 -1
  1168. package/dist/console/runtime/public/console/chunks/min-light-DUk1XsVt-DDpmG2fV.js +0 -1
  1169. package/dist/console/runtime/public/console/chunks/mipsasm-BMqwQI7S.js +0 -1
  1170. package/dist/console/runtime/public/console/chunks/mojo-fg40_ntQ.js +0 -1
  1171. package/dist/console/runtime/public/console/chunks/monokai-BscAjiQZ.js +0 -1
  1172. package/dist/console/runtime/public/console/chunks/monokai-CfFRWUNl-BscAjiQZ.js +0 -1
  1173. package/dist/console/runtime/public/console/chunks/moonbit-D9W784E_.js +0 -1
  1174. package/dist/console/runtime/public/console/chunks/move-BYnGhZoM.js +0 -1
  1175. package/dist/console/runtime/public/console/chunks/narrat-_X_XdTYD.js +0 -1
  1176. package/dist/console/runtime/public/console/chunks/nextflow-CSgcYZcx.js +0 -1
  1177. package/dist/console/runtime/public/console/chunks/nextflow-groovy-D7IRt6Pp.js +0 -1
  1178. package/dist/console/runtime/public/console/chunks/nginx-H6FvQZhW.js +0 -1
  1179. package/dist/console/runtime/public/console/chunks/night-owl-BS7V-av_-DhmEMT88.js +0 -1
  1180. package/dist/console/runtime/public/console/chunks/night-owl-DhmEMT88.js +0 -1
  1181. package/dist/console/runtime/public/console/chunks/night-owl-light-CZtRawYE-eJ-hLW7d.js +0 -1
  1182. package/dist/console/runtime/public/console/chunks/night-owl-light-eJ-hLW7d.js +0 -1
  1183. package/dist/console/runtime/public/console/chunks/nim-C7z2AtKH.js +0 -1
  1184. package/dist/console/runtime/public/console/chunks/nix-IvuFDN5E.js +0 -1
  1185. package/dist/console/runtime/public/console/chunks/nord-BFh54Nqz-Cb4Vim4T.js +0 -1
  1186. package/dist/console/runtime/public/console/chunks/nord-Cb4Vim4T.js +0 -1
  1187. package/dist/console/runtime/public/console/chunks/nsis-CjNLYCLg.js +0 -1
  1188. package/dist/console/runtime/public/console/chunks/nushell--0fT3PI1.js +0 -1
  1189. package/dist/console/runtime/public/console/chunks/objective-c-D1A_Heim.js +0 -1
  1190. package/dist/console/runtime/public/console/chunks/objective-cpp-BsSzOQcm.js +0 -1
  1191. package/dist/console/runtime/public/console/chunks/ocaml-O90oeIOV.js +0 -1
  1192. package/dist/console/runtime/public/console/chunks/odin-B1RWQWA5.js +0 -1
  1193. package/dist/console/runtime/public/console/chunks/one-dark-pro-C6YyR8OD.js +0 -1
  1194. package/dist/console/runtime/public/console/chunks/one-dark-pro-zDovGosB-C6YyR8OD.js +0 -1
  1195. package/dist/console/runtime/public/console/chunks/one-light-D7Lr4KcI.js +0 -1
  1196. package/dist/console/runtime/public/console/chunks/one-light-gmHK3iK6-D7Lr4KcI.js +0 -1
  1197. package/dist/console/runtime/public/console/chunks/openscad-BUDT5pXO.js +0 -1
  1198. package/dist/console/runtime/public/console/chunks/org-DYUOjVHR.js +0 -1
  1199. package/dist/console/runtime/public/console/chunks/pascal-4ZHwLPI5.js +0 -1
  1200. package/dist/console/runtime/public/console/chunks/patch-diff-CD7Eu2gO.js +0 -1
  1201. package/dist/console/runtime/public/console/chunks/perl-BAFITj1w.js +0 -1
  1202. package/dist/console/runtime/public/console/chunks/php-C1opCiHJ.js +0 -1
  1203. package/dist/console/runtime/public/console/chunks/pierre-code-view-T7V67hwT-XcPks0Ko.js +0 -168
  1204. package/dist/console/runtime/public/console/chunks/pierre-dark-DDWDl8g6-CpLgRqie.js +0 -1
  1205. package/dist/console/runtime/public/console/chunks/pierre-dark-protanopia-deuteranopia-C35UMuvO-B35FxJx-.js +0 -1
  1206. package/dist/console/runtime/public/console/chunks/pierre-dark-soft-Bb-4-biO-kZQmAZld.js +0 -1
  1207. package/dist/console/runtime/public/console/chunks/pierre-dark-tritanopia-CIJISGWF-CpjhbsIL.js +0 -1
  1208. package/dist/console/runtime/public/console/chunks/pierre-dark-vibrant-8oZzB3gw-CpQYzh95.js +0 -1
  1209. package/dist/console/runtime/public/console/chunks/pierre-light-CWhW4NrH-CoaEpmwp.js +0 -1
  1210. package/dist/console/runtime/public/console/chunks/pierre-light-protanopia-deuteranopia-u0U7N4Hn-0fSaH845.js +0 -1
  1211. package/dist/console/runtime/public/console/chunks/pierre-light-soft-BCU6fuhO-lWLdNTOI.js +0 -1
  1212. package/dist/console/runtime/public/console/chunks/pierre-light-tritanopia-3c8Yx3co-CEbqgOJL.js +0 -1
  1213. package/dist/console/runtime/public/console/chunks/pierre-light-vibrant-Cwh332o_-D80Fkn33.js +0 -1
  1214. package/dist/console/runtime/public/console/chunks/pkl-ot-7Btpt.js +0 -1
  1215. package/dist/console/runtime/public/console/chunks/plastic-DQwYfKfQ.js +0 -1
  1216. package/dist/console/runtime/public/console/chunks/plastic-DtdaCjub-DQwYfKfQ.js +0 -1
  1217. package/dist/console/runtime/public/console/chunks/plsql-DGHpHOYJ.js +0 -1
  1218. package/dist/console/runtime/public/console/chunks/po-BiJDBrnU.js +0 -1
  1219. package/dist/console/runtime/public/console/chunks/poimandres-DRFjx7u4.js +0 -1
  1220. package/dist/console/runtime/public/console/chunks/poimandres-Hdda6aHK-DRFjx7u4.js +0 -1
  1221. package/dist/console/runtime/public/console/chunks/polar-C7UOKdEL.js +0 -1
  1222. package/dist/console/runtime/public/console/chunks/postcss-BXeXVLqQ.js +0 -1
  1223. package/dist/console/runtime/public/console/chunks/powerquery-DNMTfnFr.js +0 -1
  1224. package/dist/console/runtime/public/console/chunks/powershell-QtSnmXcu.js +0 -1
  1225. package/dist/console/runtime/public/console/chunks/preload-helper-uBIymjUX.js +0 -1
  1226. package/dist/console/runtime/public/console/chunks/presence-BGvCcBvS.js +0 -1
  1227. package/dist/console/runtime/public/console/chunks/prisma-DMgNhnYS.js +0 -1
  1228. package/dist/console/runtime/public/console/chunks/prolog-iXnhIJG7.js +0 -1
  1229. package/dist/console/runtime/public/console/chunks/proto-DB4EqR-F.js +0 -1
  1230. package/dist/console/runtime/public/console/chunks/pug-ChIfOLQs.js +0 -1
  1231. package/dist/console/runtime/public/console/chunks/puppet-CDv2pdJW.js +0 -1
  1232. package/dist/console/runtime/public/console/chunks/purescript-9MfHhQsQ.js +0 -1
  1233. package/dist/console/runtime/public/console/chunks/python-gzcpVVnB.js +0 -1
  1234. package/dist/console/runtime/public/console/chunks/qml-BAjZcRJm.js +0 -1
  1235. package/dist/console/runtime/public/console/chunks/qmldir-DCQb3MpD.js +0 -1
  1236. package/dist/console/runtime/public/console/chunks/qss-Fe1Jh2GI.js +0 -1
  1237. package/dist/console/runtime/public/console/chunks/r-CnJIyxn2.js +0 -1
  1238. package/dist/console/runtime/public/console/chunks/racket-DcIDlBhZ.js +0 -1
  1239. package/dist/console/runtime/public/console/chunks/raku-B3gFvitq.js +0 -1
  1240. package/dist/console/runtime/public/console/chunks/razor-Bk3VGUqz.js +0 -1
  1241. package/dist/console/runtime/public/console/chunks/rbs-C0MpOrj4.js +0 -1
  1242. package/dist/console/runtime/public/console/chunks/read-only-DJWK7nHC.js +0 -1
  1243. package/dist/console/runtime/public/console/chunks/red-CYlAq2b0.js +0 -1
  1244. package/dist/console/runtime/public/console/chunks/red-VqZFRByZ-CYlAq2b0.js +0 -1
  1245. package/dist/console/runtime/public/console/chunks/reg-CRGYupPL.js +0 -1
  1246. package/dist/console/runtime/public/console/chunks/regexp-CF4aByxb.js +0 -1
  1247. package/dist/console/runtime/public/console/chunks/rel-BtDbiS_P.js +0 -1
  1248. package/dist/console/runtime/public/console/chunks/riscv-Ckw8ddFX.js +0 -1
  1249. package/dist/console/runtime/public/console/chunks/rolldown-runtime-DK3Fl9T5.js +0 -1
  1250. package/dist/console/runtime/public/console/chunks/ron-VUp2lXgN.js +0 -1
  1251. package/dist/console/runtime/public/console/chunks/rose-pine-DiTkEueR-aMsaMD1D.js +0 -1
  1252. package/dist/console/runtime/public/console/chunks/rose-pine-aMsaMD1D.js +0 -1
  1253. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-8PwUyIlP.js +0 -1
  1254. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-tfo5y2X0-8PwUyIlP.js +0 -1
  1255. package/dist/console/runtime/public/console/chunks/rose-pine-moon-C0gON9XN-DO-qXg-I.js +0 -1
  1256. package/dist/console/runtime/public/console/chunks/rose-pine-moon-DO-qXg-I.js +0 -1
  1257. package/dist/console/runtime/public/console/chunks/rosmsg-CAekHB0j.js +0 -1
  1258. package/dist/console/runtime/public/console/chunks/rst-D8R3YvuX.js +0 -1
  1259. package/dist/console/runtime/public/console/chunks/ruby-BDvumEf2.js +0 -1
  1260. package/dist/console/runtime/public/console/chunks/rust-DpiIf5JO.js +0 -1
  1261. package/dist/console/runtime/public/console/chunks/sas-CDxiwfn1.js +0 -1
  1262. package/dist/console/runtime/public/console/chunks/sass-DXrisJhu.js +0 -1
  1263. package/dist/console/runtime/public/console/chunks/scala-BiFt_7mu.js +0 -1
  1264. package/dist/console/runtime/public/console/chunks/scheme-DQCgrYNe.js +0 -1
  1265. package/dist/console/runtime/public/console/chunks/scss-BPiS1nMZ.js +0 -1
  1266. package/dist/console/runtime/public/console/chunks/scss-DuikUNMR.js +0 -1
  1267. package/dist/console/runtime/public/console/chunks/sdbl-bTVj8UrX.js +0 -1
  1268. package/dist/console/runtime/public/console/chunks/sections-aIkyV8J9.js +0 -8
  1269. package/dist/console/runtime/public/console/chunks/shaderlab-TOUzSsQk.js +0 -1
  1270. package/dist/console/runtime/public/console/chunks/shellscript-CgLkv1T0.js +0 -1
  1271. package/dist/console/runtime/public/console/chunks/shellscript-DStN_0YR.js +0 -1
  1272. package/dist/console/runtime/public/console/chunks/shellsession-C_5QA7eC.js +0 -1
  1273. package/dist/console/runtime/public/console/chunks/slack-dark-DnToyrRv.js +0 -1
  1274. package/dist/console/runtime/public/console/chunks/slack-dark-v8P_eXr6-DnToyrRv.js +0 -1
  1275. package/dist/console/runtime/public/console/chunks/slack-ochin-B2OO5cIa.js +0 -1
  1276. package/dist/console/runtime/public/console/chunks/slack-ochin-D8SyEdKz-B2OO5cIa.js +0 -1
  1277. package/dist/console/runtime/public/console/chunks/smalltalk-BHpQb5nM.js +0 -1
  1278. package/dist/console/runtime/public/console/chunks/smithy-Dgaz7aur.js +0 -1
  1279. package/dist/console/runtime/public/console/chunks/snazzy-light-4G7pJPwS.js +0 -1
  1280. package/dist/console/runtime/public/console/chunks/snazzy-light-BtkQkvXb-4G7pJPwS.js +0 -1
  1281. package/dist/console/runtime/public/console/chunks/solarized-dark-B8nAdMfM-b97czJOk.js +0 -1
  1282. package/dist/console/runtime/public/console/chunks/solarized-dark-b97czJOk.js +0 -1
  1283. package/dist/console/runtime/public/console/chunks/solarized-light-B-3F1INj-DFPxpIYQ.js +0 -1
  1284. package/dist/console/runtime/public/console/chunks/solarized-light-DFPxpIYQ.js +0 -1
  1285. package/dist/console/runtime/public/console/chunks/solidity-Bj7E1mRn.js +0 -1
  1286. package/dist/console/runtime/public/console/chunks/soy-Drvj0-hN.js +0 -1
  1287. package/dist/console/runtime/public/console/chunks/sparql-D_iOobhT.js +0 -1
  1288. package/dist/console/runtime/public/console/chunks/splunk-BC2Px7Mm.js +0 -1
  1289. package/dist/console/runtime/public/console/chunks/sql-7uki0mN6.js +0 -1
  1290. package/dist/console/runtime/public/console/chunks/sql-DvnUxQaA.js +0 -1
  1291. package/dist/console/runtime/public/console/chunks/ssh-config-BgfXC-Er.js +0 -1
  1292. package/dist/console/runtime/public/console/chunks/stata-5ekhIp_w.js +0 -1
  1293. package/dist/console/runtime/public/console/chunks/stylus-B6D30XZt.js +0 -1
  1294. package/dist/console/runtime/public/console/chunks/surrealql-BggsF-oc.js +0 -1
  1295. package/dist/console/runtime/public/console/chunks/svelte-BOzpv3zx.js +0 -1
  1296. package/dist/console/runtime/public/console/chunks/swift-CyEgAFGc.js +0 -1
  1297. package/dist/console/runtime/public/console/chunks/synthwave-84-DcsXCF_c-nFMaYfgc.js +0 -1
  1298. package/dist/console/runtime/public/console/chunks/synthwave-84-nFMaYfgc.js +0 -1
  1299. package/dist/console/runtime/public/console/chunks/system-verilog-Dh5ihWbf.js +0 -1
  1300. package/dist/console/runtime/public/console/chunks/systemd-BxMlprV5.js +0 -1
  1301. package/dist/console/runtime/public/console/chunks/talonscript-CohzipZa.js +0 -1
  1302. package/dist/console/runtime/public/console/chunks/tasl-DMoTqEGO.js +0 -1
  1303. package/dist/console/runtime/public/console/chunks/tcl-CZd0xW_V.js +0 -1
  1304. package/dist/console/runtime/public/console/chunks/templ-fdyF5dsr.js +0 -1
  1305. package/dist/console/runtime/public/console/chunks/terraform-DswuEJGm.js +0 -1
  1306. package/dist/console/runtime/public/console/chunks/tex-DHA47n0s.js +0 -1
  1307. package/dist/console/runtime/public/console/chunks/tokyo-night-Bvpqduda-oM2G3aXe.js +0 -1
  1308. package/dist/console/runtime/public/console/chunks/tokyo-night-oM2G3aXe.js +0 -1
  1309. package/dist/console/runtime/public/console/chunks/toml-CcmNWLt0.js +0 -1
  1310. package/dist/console/runtime/public/console/chunks/ts-tags-FylMzM_u.js +0 -1
  1311. package/dist/console/runtime/public/console/chunks/tsv-sltzmVWM.js +0 -1
  1312. package/dist/console/runtime/public/console/chunks/tsx-B8qh6jDH.js +0 -1
  1313. package/dist/console/runtime/public/console/chunks/tsx-Ge9e86uq.js +0 -1
  1314. package/dist/console/runtime/public/console/chunks/turtle-ByJddavk.js +0 -1
  1315. package/dist/console/runtime/public/console/chunks/twig-r9Dsv_Ri.js +0 -1
  1316. package/dist/console/runtime/public/console/chunks/typescript-C2Eu6twH.js +0 -1
  1317. package/dist/console/runtime/public/console/chunks/typescript-CiUCm0l2.js +0 -1
  1318. package/dist/console/runtime/public/console/chunks/typespec-BGhR2SqG.js +0 -1
  1319. package/dist/console/runtime/public/console/chunks/typst-BCkRs6d9.js +0 -1
  1320. package/dist/console/runtime/public/console/chunks/url-uI6JSUZP.js +0 -4
  1321. package/dist/console/runtime/public/console/chunks/useForwardScopeId-mJ8JPuYU.js +0 -1
  1322. package/dist/console/runtime/public/console/chunks/usePortal-BqI7uIRp.js +0 -3
  1323. package/dist/console/runtime/public/console/chunks/v-DBj4K9d_.js +0 -1
  1324. package/dist/console/runtime/public/console/chunks/vala-zf12oZj6.js +0 -1
  1325. package/dist/console/runtime/public/console/chunks/vb-DOwzaHZ0.js +0 -1
  1326. package/dist/console/runtime/public/console/chunks/verilog-B2gwz-sJ.js +0 -1
  1327. package/dist/console/runtime/public/console/chunks/vesper-CfxmMOy3-DdrHHSXu.js +0 -1
  1328. package/dist/console/runtime/public/console/chunks/vesper-DdrHHSXu.js +0 -1
  1329. package/dist/console/runtime/public/console/chunks/vhdl-BroJfC0k.js +0 -1
  1330. package/dist/console/runtime/public/console/chunks/viml-DvXPmvsu.js +0 -1
  1331. package/dist/console/runtime/public/console/chunks/vitesse-black-D9-_1mjV-fwtXNY1n.js +0 -1
  1332. package/dist/console/runtime/public/console/chunks/vitesse-black-fwtXNY1n.js +0 -1
  1333. package/dist/console/runtime/public/console/chunks/vitesse-dark-BZCL-v6S.js +0 -1
  1334. package/dist/console/runtime/public/console/chunks/vitesse-dark-DlSMLlr9-BZCL-v6S.js +0 -1
  1335. package/dist/console/runtime/public/console/chunks/vitesse-light-KRWWWztf-VbXTXTou.js +0 -1
  1336. package/dist/console/runtime/public/console/chunks/vitesse-light-VbXTXTou.js +0 -1
  1337. package/dist/console/runtime/public/console/chunks/vue-Bc1L0ruR.js +0 -3
  1338. package/dist/console/runtime/public/console/chunks/vue-CGPRTtAM.js +0 -1
  1339. package/dist/console/runtime/public/console/chunks/vue-CHGs_ru8.js +0 -1
  1340. package/dist/console/runtime/public/console/chunks/vue-html-CU_0vU6P.js +0 -1
  1341. package/dist/console/runtime/public/console/chunks/vue-vine-BrC7uwb8.js +0 -1
  1342. package/dist/console/runtime/public/console/chunks/vueuse-DCpBt1pZ.js +0 -4
  1343. package/dist/console/runtime/public/console/chunks/vyper-CgoNMtux.js +0 -1
  1344. package/dist/console/runtime/public/console/chunks/wasm-BnjxR4X6.js +0 -1
  1345. package/dist/console/runtime/public/console/chunks/wasm-ByWQv1Qj.js +0 -1
  1346. package/dist/console/runtime/public/console/chunks/wenyan-C8pVoKbM.js +0 -1
  1347. package/dist/console/runtime/public/console/chunks/wgsl-BsKzXJz4.js +0 -1
  1348. package/dist/console/runtime/public/console/chunks/wikitext-ClFFjSW2.js +0 -1
  1349. package/dist/console/runtime/public/console/chunks/wit-DdvCle-K.js +0 -1
  1350. package/dist/console/runtime/public/console/chunks/wolfram-DLL8P-h_.js +0 -1
  1351. package/dist/console/runtime/public/console/chunks/xml-Bx1i6T7B.js +0 -1
  1352. package/dist/console/runtime/public/console/chunks/xsl-DR5M53i7.js +0 -1
  1353. package/dist/console/runtime/public/console/chunks/yaml-CZmR-Icd.js +0 -1
  1354. package/dist/console/runtime/public/console/chunks/yaml-a9wqVlBt.js +0 -1
  1355. package/dist/console/runtime/public/console/chunks/zenscript-BnlCZFoB.js +0 -1
  1356. package/dist/console/runtime/public/console/chunks/zig-CMLA9XwU.js +0 -1
  1357. package/dist/console/runtime/public/console/console-QjK_HKoM.css +0 -2
  1358. package/dist/console/runtime/public/console/console-j0_7kmR5.js +0 -21
  1359. package/dist/console/runtime/public/console/page-tool-Cji0S8q-.js +0 -1
  1360. package/dist/console/runtime/server/auth-manage.d.ts +0 -7
  1361. package/dist/console/runtime/server/auth-manage.js +0 -155
  1362. package/dist/console/runtime/server/client.get.d.ts +0 -3
  1363. package/dist/console/runtime/server/client.get.js +0 -11
  1364. package/dist/console/runtime/server/env-manage.d.ts +0 -5
  1365. package/dist/console/runtime/server/env-manage.js +0 -10
  1366. package/dist/console/runtime/server/mcp-authorization-server.d.ts +0 -11
  1367. package/dist/console/runtime/server/mcp-authorization-server.js +0 -71
  1368. package/dist/console/runtime/server/mcp-discovery.d.ts +0 -7
  1369. package/dist/console/runtime/server/mcp-discovery.js +0 -20
  1370. package/dist/console/runtime/server/mcp-metadata.d.ts +0 -11
  1371. package/dist/console/runtime/server/mcp-metadata.js +0 -54
  1372. package/dist/console/runtime/server/mcp.d.ts +0 -16
  1373. package/dist/console/runtime/server/mcp.js +0 -364
  1374. package/dist/console/runtime/server/page.get.d.ts +0 -4
  1375. package/dist/console/runtime/server/page.get.js +0 -49
  1376. package/dist/console/runtime/server/schedule-run.d.ts +0 -36
  1377. package/dist/console/runtime/server/schedule-run.js +0 -213
  1378. package/dist/console/runtime/server/sign-in.d.ts +0 -5
  1379. package/dist/console/runtime/server/sign-in.js +0 -11
  1380. package/dist/content/presets/cms.d.ts +0 -2
  1381. package/dist/content/presets/cms.js +0 -2
  1382. package/dist/database/drizzle.d.ts +0 -1
  1383. package/dist/database/drizzle.js +0 -2
  1384. package/dist/database-DLPk6HVu.d.ts +0 -7
  1385. package/dist/database-hyYo7JVD.d.ts +0 -11
  1386. package/dist/definitions-BJGSpYGa.d.ts +0 -209
  1387. package/dist/definitions-Y0pIwSQm.d.ts +0 -19
  1388. package/dist/diagnostics-YTWM3K3t.js +0 -74
  1389. package/dist/diagnostics-lT85pbVx.d.ts +0 -6
  1390. package/dist/document-metadata-nXusaMSq.js +0 -6
  1391. package/dist/documents-BRt3-fIu.d.ts +0 -72
  1392. package/dist/email/server.d.ts +0 -1
  1393. package/dist/email/server.js +0 -2
  1394. package/dist/env/auth.d.ts +0 -1
  1395. package/dist/env/auth.js +0 -2
  1396. package/dist/env/http.d.ts +0 -1
  1397. package/dist/env/http.js +0 -2
  1398. package/dist/env/presets.d.ts +0 -1
  1399. package/dist/env/presets.js +0 -2
  1400. package/dist/env/provider.d.ts +0 -1
  1401. package/dist/env/provider.js +0 -2
  1402. package/dist/env/schema.d.ts +0 -1
  1403. package/dist/env/schema.js +0 -2
  1404. package/dist/env/secret.d.ts +0 -1
  1405. package/dist/env/secret.js +0 -2
  1406. package/dist/error-diagnostics-n7V-_SPy.js +0 -160
  1407. package/dist/h3-v1-request-DDGXJ9E7.js +0 -166
  1408. package/dist/index-CWk5rJOo.d.ts +0 -247
  1409. package/dist/internal-Ca7DYHpa.js +0 -311
  1410. package/dist/internal-VvXn0bX4.d.ts +0 -25
  1411. package/dist/invocations-DkjhdkpT.js +0 -1151
  1412. package/dist/invocations-TvN9ux06.d.ts +0 -47
  1413. package/dist/loopback-DAr1IFQP.js +0 -43
  1414. package/dist/media-BBybn3NP.js +0 -512
  1415. package/dist/operation-contributions-BXHKgT_w.d.ts +0 -18
  1416. package/dist/operations-4uDh4zah.js +0 -38
  1417. package/dist/operations-7RHOMAHT.js +0 -455
  1418. package/dist/operations-Bgklf9hM.d.ts +0 -149
  1419. package/dist/operations-CwqEItfA.js +0 -468
  1420. package/dist/package-BsfDnNm8.js +0 -1119
  1421. package/dist/page-tools-B3g4CQ5c.js +0 -402
  1422. package/dist/page-tools-C5dufxVz.d.ts +0 -16
  1423. package/dist/page-tools-shared-D-amu6sx.js +0 -53
  1424. package/dist/project-registry-BT7RcCcQ.js +0 -39
  1425. package/dist/registry-dSdI2Oa3.js +0 -142
  1426. package/dist/request-BT6g-Fwf.js +0 -326
  1427. package/dist/request-DOvvVgpI.d.ts +0 -52
  1428. package/dist/retention-DBXuVtQL.js +0 -257
  1429. package/dist/rolldown-runtime-8H4AJuhK.js +0 -14
  1430. package/dist/runtime/h3.d.ts +0 -2
  1431. package/dist/runtime/h3.js +0 -2
  1432. package/dist/runtime/node.d.ts +0 -1
  1433. package/dist/runtime/node.js +0 -2
  1434. package/dist/runtime-DPqC3MTX.js +0 -60
  1435. package/dist/scan-module-TmHMoGKw.js +0 -148
  1436. package/dist/secret-DrgWMRms.js +0 -47
  1437. package/dist/sections-BVtKNenQ.js +0 -108
  1438. package/dist/sections-C985LlW2.d.ts +0 -31
  1439. package/dist/sections-Drj-o4_z.d.ts +0 -141
  1440. package/dist/source/file.d.ts +0 -1
  1441. package/dist/source/file.js +0 -2
  1442. package/dist/source/files.d.ts +0 -1
  1443. package/dist/source/files.js +0 -2
  1444. package/dist/source/github.d.ts +0 -1
  1445. package/dist/source/github.js +0 -2
  1446. package/dist/source/glob.d.ts +0 -1
  1447. package/dist/source/glob.js +0 -2
  1448. package/dist/source/markdown.d.ts +0 -1
  1449. package/dist/source/markdown.js +0 -2
  1450. package/dist/src-CaqWiza-.js +0 -7910
  1451. package/dist/task.d.ts +0 -3
  1452. package/dist/task.js +0 -2
  1453. package/dist/types-BsuwNk3q.js +0 -256
  1454. package/dist/ui/attachment.d.ts +0 -1
  1455. package/dist/ui/attachment.js +0 -2
  1456. package/dist/ui/avatar-stack.d.ts +0 -1
  1457. package/dist/ui/avatar-stack.js +0 -2
  1458. package/dist/ui/bubble.d.ts +0 -1
  1459. package/dist/ui/bubble.js +0 -2
  1460. package/dist/ui/chat-message.d.ts +0 -1
  1461. package/dist/ui/chat-message.js +0 -2
  1462. package/dist/ui/chat-session.d.ts +0 -1
  1463. package/dist/ui/chat-session.js +0 -2
  1464. package/dist/ui/chat.d.ts +0 -1
  1465. package/dist/ui/chat.js +0 -2
  1466. package/dist/ui/code-block.d.ts +0 -1
  1467. package/dist/ui/code-block.js +0 -2
  1468. package/dist/ui/code-view.d.ts +0 -1
  1469. package/dist/ui/code-view.js +0 -2
  1470. package/dist/ui/comments.d.ts +0 -1
  1471. package/dist/ui/comments.js +0 -2
  1472. package/dist/ui/connection-status.d.ts +0 -1
  1473. package/dist/ui/connection-status.js +0 -2
  1474. package/dist/ui/file-diff.d.ts +0 -1
  1475. package/dist/ui/file-diff.js +0 -2
  1476. package/dist/ui/file-tree.d.ts +0 -1
  1477. package/dist/ui/file-tree.js +0 -2
  1478. package/dist/ui/file-view.d.ts +0 -1
  1479. package/dist/ui/file-view.js +0 -2
  1480. package/dist/ui/markdown.d.ts +0 -1
  1481. package/dist/ui/markdown.js +0 -2
  1482. package/dist/ui/marker.d.ts +0 -1
  1483. package/dist/ui/marker.js +0 -2
  1484. package/dist/ui/message-parts.d.ts +0 -1
  1485. package/dist/ui/message-parts.js +0 -2
  1486. package/dist/ui/message.d.ts +0 -1
  1487. package/dist/ui/message.js +0 -2
  1488. package/dist/ui/multi-file-diff.d.ts +0 -1
  1489. package/dist/ui/multi-file-diff.js +0 -2
  1490. package/dist/ui/nuxt.d.ts +0 -3
  1491. package/dist/ui/nuxt.js +0 -3
  1492. package/dist/ui/patch-diff.d.ts +0 -1
  1493. package/dist/ui/patch-diff.js +0 -2
  1494. package/dist/ui/prompt-input.d.ts +0 -1
  1495. package/dist/ui/prompt-input.js +0 -2
  1496. package/dist/ui/sync-status.d.ts +0 -1
  1497. package/dist/ui/sync-status.js +0 -2
  1498. package/dist/ui/tool-list.d.ts +0 -1
  1499. package/dist/ui/tool-list.js +0 -2
  1500. package/dist/ui/trace-run.d.ts +0 -1
  1501. package/dist/ui/trace-run.js +0 -2
  1502. package/dist/ui/trace.d.ts +0 -1
  1503. package/dist/ui/trace.js +0 -2
  1504. package/dist/ui/unresolved-file.d.ts +0 -1
  1505. package/dist/ui/unresolved-file.js +0 -2
@@ -0,0 +1,2 @@
1
+ import { t as consoleMcpCallbackPath } from "../../mcp-client-CTbTbn7d.js";
2
+ export { consoleMcpCallbackPath };
@@ -1,22 +1,142 @@
1
- function e(e){let t=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(let[e,n]of Object.entries({width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.75`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`}))t.setAttribute(e,n);let n=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return n.setAttribute(`d`,e),t.append(n),t}function t(t){let n=document.createElement(`vitehub-window`);n.hidden=!0;let r=n.attachShadow({mode:`open`}),i=document.createElement(`style`);i.textContent=`
2
- :host{all:initial;--surface:light-dark(#fff,#000);--text:light-dark(#18181b,#fafafa);--muted:light-dark(#52525b,#a1a1aa);--line:light-dark(#d4d4d8,#3f3f46);--hover:light-dark(#f4f4f5,#27272a);--focus:#3b82f6;position:fixed;inset:0;z-index:2147483000;pointer-events:none;color:var(--text);font:400 .875rem/1.5 system-ui,sans-serif;color-scheme:light dark}
1
+ const e=`vitehub`,t=[`comment`];function n(e,n){let r=new URLSearchParams(e);if(r.has(`vitehub`)||t.some(e=>r.has(e)))return!0;let i=n.split(`;`).map(e=>e.trim());return i.includes(`vitehub-tools=1`)?!0:i.includes(`vitehub_session=1`)&&!i.some(e=>e.startsWith(`vitehub-tools=`))}const r=`/_vitehub/page/session`,i=`button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:var(--vitehub-pill-justify,center);gap:4px;min-width:28px;height:28px;padding:0 8px;border-radius:8px;font:inherit;white-space:nowrap;color:var(--vitehub-pill-text);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition-property:background-color,color,scale;transition-duration:150ms;transition-timing-function:cubic-bezier(.23,1,.32,1)}
2
+ @media(hover:hover){button:where(:not(:disabled):hover){background:var(--vitehub-pill-hover);color:var(--vitehub-pill-strong)}}
3
+ button:where(:not(:disabled):active){scale:.96}
4
+ button[aria-pressed=true],button[aria-expanded=true]{background:var(--vitehub-pill-on);color:var(--vitehub-pill-on-text)}
5
+ :host([aria-busy=true]) button,button[aria-busy=true]{background:var(--vitehub-pill-on);color:var(--vitehub-pill-on-text);cursor:progress}
6
+ button:focus-visible{outline:2px solid var(--vitehub-pill-on);outline-offset:1px}
7
+ button svg{width:14px;height:14px;flex:none}
8
+ @media(any-pointer:coarse){button{min-width:44px;height:44px}}
9
+ @media(prefers-reduced-motion:reduce){button{transition:none}}`;function a(e){let t=new URL(e,`http://localhost`).pathname,n=t.lastIndexOf(`/_vitehub/page/assets/`);return n===-1?r:`${t.slice(0,n)}${r}`}function o(e){return typeof e==`string`&&e?e:void 0}function s(e){if(typeof e!=`object`||!e)return;let t=o(Reflect.get(e,`id`)),n=o(Reflect.get(e,`script`));if(!t||!n)return;let r={id:t,label:o(Reflect.get(e,`label`))??t,icon:o(Reflect.get(e,`icon`))??``,script:n};Reflect.get(e,`lazy`)===!0&&(r.lazy=!0);let i=o(Reflect.get(e,`hotkey`));i&&(r.hotkey=i);let a=o(Reflect.get(e,`param`));return a&&(r.param=a),r}function c(e){if(typeof e!=`object`||!e)return;let t=o(Reflect.get(e,`name`)),n=o(Reflect.get(e,`signOut`));if(!t||!n?.startsWith(`/`)||n.startsWith(`//`)||n.includes(`\\`))return;let r={name:t,signOut:n},i=o(Reflect.get(e,`email`));i&&(r.email=i);let a=o(Reflect.get(e,`image`));return a&&/^https?:\/\//i.test(a)&&(r.image=a),Reflect.get(e,`via`)===`console`&&(r.via=`console`),r}function l(e){let t=typeof e==`object`&&e?Reflect.get(e,`tools`):void 0,n={tools:Array.isArray(t)?t.map(s).filter(e=>!!e):[]},r=typeof e==`object`&&e?c(Reflect.get(e,`account`)):void 0;return r&&(n.account=r),n}const u=[[-.28,-.453],[-.208,-.5],[.208,-.5],[.28,-.453],[.488,-.047],[.488,.047],[.28,.453],[.208,.5],[-.208,.5],[-.28,.453],[-.488,.047],[-.488,-.047]],d=e=>`polygon(${e.map(([e,t])=>`calc(50% + var(--vitehub-hex-w) * ${e}) calc(50% + var(--vitehub-hex-h) * ${t})`).join(`,`)})`,f=d(u),p=d([[-.5,-.5],[-.5,-.5],[.5,-.5],[.5,-.5],[.5,0],[.5,0],[.5,.5],[.5,.5],[-.5,.5],[-.5,.5],[-.5,0],[-.5,0]]),m=e=>`calc(var(--start) + ${e} / 2 + (100% - var(--start) - var(--end) - ${e}) * var(--at) / 100)`,h=`:host{all:initial;position:fixed;z-index:2147483001;pointer-events:none;filter:drop-shadow(0 8px 24px rgb(0 0 0/25%));color-scheme:dark;font:500 12px/1 ui-sans-serif,system-ui,sans-serif;color:#d4d4d4;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--vitehub-pill-text:#d4d4d4;--vitehub-pill-strong:#fafafa;--vitehub-pill-muted:#a3a3a3;--vitehub-pill-hover:rgb(255 255 255/8%);--vitehub-pill-on:#fafafa;--vitehub-pill-on-text:#0a0a0a;--vitehub-pill-line:rgb(255 255 255/12%);--vitehub-pill-surface:#111;--vitehub-pill-flow:row;--vitehub-pill-ease:cubic-bezier(.32,.72,0,1);--vitehub-hex-h:24px;--vitehub-hex-w:calc(var(--vitehub-hex-h) * 10 / 9);--vitehub-pill-morph:280ms;--vitehub-pill-fade:opacity 160ms ease-out 80ms,visibility 0s;--vitehub-pill-fade-end:opacity 160ms ease-out 120ms,visibility 0s;--at:50;--margin:16px;--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);transition-property:left,top,right,bottom,translate;transition-duration:var(--vitehub-pill-morph);transition-timing-function:var(--vitehub-pill-ease);transition-delay:var(--vitehub-pill-wait,0s)}
10
+ :host([collapsed]){--margin:2px;--vitehub-pill-morph:240ms;--vitehub-pill-wait:40ms;--vitehub-pill-fade:opacity 80ms ease-out,visibility 0s 80ms;--vitehub-pill-fade-end:opacity 40ms ease-out,visibility 0s 40ms}
11
+ :host(:is([edge=top],[edge=bottom])){left:${m(`0px`)};--start:max(var(--margin),var(--safe-left));--end:max(var(--margin),var(--safe-right));--x:calc(var(--at) * -1%)}
12
+ :host(:is([edge=left],[edge=right])){top:${m(`0px`)};--start:max(var(--margin),var(--safe-top));--end:max(var(--margin),var(--safe-bottom));--y:calc(var(--at) * -1%);--vitehub-pill-flow:column;--vitehub-pill-justify:flex-start}
13
+ :host([edge=bottom]){bottom:max(16px,var(--safe-bottom))}
14
+ :host([edge=top]){top:max(16px,var(--safe-top))}
15
+ :host([edge=right]){right:max(16px,var(--safe-right))}
16
+ :host([edge=left]){left:max(16px,var(--safe-left))}
17
+ :host([collapsed]:is([edge=top],[edge=bottom])){left:${m(`var(--vitehub-hex-w)`)};--x:-50%}
18
+ :host([collapsed]:is([edge=left],[edge=right])){top:${m(`var(--vitehub-hex-h)`)};--y:-50%}
19
+ :host([collapsed][edge=bottom]){bottom:calc(max(2px,var(--safe-bottom)) + var(--vitehub-hex-h) / 2);--y:50%}
20
+ :host([collapsed][edge=top]){top:calc(max(2px,var(--safe-top)) + var(--vitehub-hex-h) / 2);--y:-50%}
21
+ :host([collapsed][edge=right]){right:calc(max(2px,var(--safe-right)) + var(--vitehub-hex-w) / 2);--x:50%}
22
+ :host([collapsed][edge=left]){left:calc(max(2px,var(--safe-left)) + var(--vitehub-hex-w) / 2);--x:-50%}
23
+ :host{translate:var(--x,0) var(--y,0)}
24
+ :host([dragging]){transition:none;cursor:grabbing;user-select:none;-webkit-user-select:none}
25
+ div{position:relative;box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;scrollbar-width:none;display:flex;flex-direction:var(--vitehub-pill-flow);align-items:center;gap:8px;padding:4px;border:1px solid var(--vitehub-pill-line);border-radius:12px;background:rgb(17 17 17/92%);pointer-events:auto;clip-path:polygon(0 6px,6px 0,calc(100% - 6px) 0,100% 6px,100% 50%,100% 50%,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 50%,0 50%);transition:clip-path var(--vitehub-pill-morph) var(--vitehub-pill-ease) var(--vitehub-pill-wait,0s),background-color 150ms ease-out,scale 150ms ease-out}
26
+ :host(:is([edge=left],[edge=right])) div{display:grid;grid-template-columns:auto 1fr;align-items:stretch;gap:8px 2px}
27
+ :host([collapsed]) div{clip-path:${f}}
28
+ @media(hover:hover){:host([collapsed]) div:hover{background:rgb(38 38 38/94%)}}
29
+ :host([collapsed]) div:active{scale:.96}
30
+ :host([dragging]) div{transition:none;scale:none}
31
+ ::slotted(*){flex-shrink:0;display:flex;flex-direction:var(--vitehub-pill-flow);align-items:center;gap:2px;transition:var(--vitehub-pill-fade)}
32
+ :host(:is([edge=left],[edge=right])) ::slotted(*){grid-column:1/-1;align-items:stretch}
33
+ ::slotted([hidden]){display:none!important}
34
+ :host([collapsed]) ::slotted(*),:host([collapsed]) .exit{opacity:0;visibility:hidden}
35
+ .tabs{position:absolute;display:flex;width:max-content;height:max-content;max-width:calc(100vw - max(16px,var(--safe-left)) - max(16px,var(--safe-right)));max-height:calc(100dvh - max(16px,var(--safe-top)) - max(16px,var(--safe-bottom)));gap:4px;overflow:auto;pointer-events:auto}
36
+ :host([collapsed]) .tabs{visibility:hidden}
37
+ :host(:is([edge=top],[edge=bottom])) .tabs{left:calc(var(--at) * 1%);translate:calc(var(--at) * -1%) 0;max-height:calc(100dvh - max(16px,var(--safe-top)) - max(16px,var(--safe-bottom)) - 100%)}
38
+ :host(:is([edge=left],[edge=right])) .tabs{top:calc(var(--at) * 1%);translate:0 calc(var(--at) * -1%);max-width:calc(100vw - max(16px,var(--safe-left)) - max(16px,var(--safe-right)) - 100%);flex-direction:column}
39
+ :host([edge=bottom]) .tabs{bottom:100%;align-items:safe flex-end}
40
+ :host([edge=top]) .tabs{top:100%;align-items:flex-start}
41
+ :host([edge=left]) .tabs{left:100%;align-items:flex-start}
42
+ :host([edge=right]) .tabs{right:100%;align-items:safe flex-end}
43
+ ::slotted([slot=tab]){padding:3px;border:1px solid var(--vitehub-pill-line);background:rgb(17 17 17/92%);pointer-events:auto}
44
+ :host([edge=bottom]) ::slotted([slot=tab]){border-bottom:0;border-radius:10px 10px 0 0}
45
+ :host([edge=top]) ::slotted([slot=tab]){border-top:0;border-radius:0 0 10px 10px}
46
+ :host([edge=left]) ::slotted([slot=tab]){border-left:0;border-radius:0 10px 10px 0}
47
+ :host([edge=right]) ::slotted([slot=tab]){border-right:0;border-radius:10px 0 0 10px}
48
+ ${i}
49
+ button{flex-shrink:0;padding:0;justify-content:center}
50
+ .exit{position:sticky;right:0;bottom:0;transition:background-color 150ms,color 150ms,scale 150ms,var(--vitehub-pill-fade-end)}
51
+ :host(:is([edge=left],[edge=right])) .mark{justify-self:start}
52
+ :host(:is([edge=left],[edge=right])) .exit{grid-area:1/2;justify-self:end;top:0;bottom:auto}
53
+ .mark{position:sticky;left:0;top:0;z-index:1;cursor:grab}
54
+ :host([dragging]) .mark{cursor:grabbing}
55
+ .mark,.mark[aria-expanded=true]{background:none;color:var(--vitehub-pill-strong)}
56
+ @media(hover:hover){.mark:hover{background:var(--vitehub-pill-hover)}}
57
+ .mark svg{width:16px;height:16px;transition:opacity 160ms ease-out 120ms,scale 160ms ease-out 120ms}
58
+ :host([collapsed]) .mark svg{opacity:0;scale:.6;transition-duration:40ms;transition-delay:0s;transition-timing-function:ease-out}
59
+ :host([collapsed]) .mark:is(:hover,:active){background:none;scale:none}
60
+ :host([collapsed]) .mark{translate:var(--vitehub-mark-x,0) var(--vitehub-mark-y,0);transition:translate 0s 80ms}
61
+ :host([collapsed]) .mark::before{content:"";position:absolute;inset:-8px}
62
+ :host([fold=mark]){transition-property:left,top,right,bottom,translate,filter}
63
+ :host([fold=mark][collapsed]){filter:drop-shadow(0 1px 2px rgb(0 0 0/25%))}
64
+ :host([fold=mark]:not([dragging])) div{transition:clip-path var(--vitehub-pill-morph) var(--vitehub-pill-ease) var(--vitehub-pill-wait,0s),background-color 120ms ease-out,border-color 120ms ease-out,scale 150ms ease-out}
65
+ :host([fold=mark][collapsed]) div,:host([fold=mark][collapsed]) div:hover{clip-path:${p};background-color:transparent;border-color:transparent}
66
+ :host([fold=mark]) .mark{transition-property:background-color,color,scale,translate;transition-duration:150ms,150ms,150ms,var(--vitehub-pill-morph);transition-timing-function:ease-out,ease-out,ease-out,var(--vitehub-pill-ease);transition-delay:0s,0s,0s,var(--vitehub-pill-wait,0s)}
67
+ :host([fold=mark]) .mark svg{transition:scale var(--vitehub-pill-morph) var(--vitehub-pill-ease) var(--vitehub-pill-wait,0s)}
68
+ :host([fold=mark][collapsed]) .mark svg{opacity:1;scale:1.5}
69
+ @media(any-pointer:coarse){:host{--vitehub-hex-h:40px}:host([fold=mark][collapsed]) .mark svg{scale:2.5}}
70
+ @media(prefers-reduced-motion:reduce){:host,div,::slotted(*),.exit,.mark svg,:host([collapsed]) .mark,:host([fold=mark]) :is(div,.mark,.mark svg){transition:none}}`;function g(e,t,n){let r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(let[t,i]of Object.entries({viewBox:e,"aria-hidden":`true`,...n}))r.setAttribute(t,i);let i=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return i.setAttribute(`d`,t),r.append(i),r}const _=[`top`,`right`,`bottom`,`left`];function v(e){return _.some(t=>t===e)}function y(e){let t=typeof e==`object`&&e?Reflect.get(e,`edge`):void 0,n=typeof e==`object`&&e?Reflect.get(e,`at`):void 0;return v(t)&&typeof n==`number`&&n>=0&&n<=100?{edge:t,at:n}:void 0}function b(e){try{return y(JSON.parse(localStorage.getItem(e)??`null`))}catch{return}}function x(e,t,n,r){let i=Math.min(70,r/4),a=Math.atan2(t-r/2,e-n/2),o=Math.atan2(i-r/2,-n/2),s=Math.atan2(i-r/2,n/2),c=Math.atan2(r/2-i,n/2),l=Math.atan2(r/2-i,-n/2);return a>=o&&a<=s?`top`:a>s&&a<c?`right`:a>=c&&a<=l?`bottom`:`left`}function S(e,t,n,r,i){let a=i-n-r-t,o=a>0?Math.min(100,Math.max(0,(e-n-t/2)/a*100)):50;return o<2?0:o>98?100:Math.abs(o-50)<3?50:Math.round(o*10)/10}function C(e){let{signal:t}=e,n=document.createElement(e.name);n.style.viewTransitionName=e.name,e.fold===`mark`&&n.setAttribute(`fold`,`mark`);let r=n.attachShadow({mode:`open`}),i=document.createElement(`style`);i.textContent=h;let a=document.createElement(`div`);a.setAttribute(`role`,`toolbar`),a.setAttribute(`aria-label`,e.label);let o=document.createElement(`button`);o.className=`mark`,o.append(e.mark);let s=e.initial?.collapsed===!0,c=t=>{t&&a.scrollTo(0,0),n.toggleAttribute(`collapsed`,t),o.setAttribute(`aria-expanded`,String(!t)),o.setAttribute(`aria-label`,`${t?`Show`:`Hide`} ${e.label}`),o.title=`${o.getAttribute(`aria-label`)}. Drag to move.`},l=()=>e.markOnly?.active()===!0,u=e.markOnly?.opened===!0,d=()=>l()?!u:D(e.storage.collapsed)??s;c(d()),o.addEventListener(`click`,()=>{if(S())return;let t=!n.hasAttribute(`collapsed`);if(c(t),x(_),l()){u=!t;return}try{t===s?localStorage.removeItem(e.storage.collapsed):localStorage.setItem(e.storage.collapsed,t?`1`:`0`)}catch{}});let f=e.exit,p;f&&(p=document.createElement(`button`),p.className=`exit`,p.setAttribute(`aria-label`,f.label),p.title=f.label,p.append(g(`0 0 24 24`,`M18 6 6 18M6 6l12 12`,{width:`15`,height:`15`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`})),p.addEventListener(`click`,e=>f.press(e.detail===0))),a.append(o,...p?[p]:[]);let m=document.createElement(`slot`);m.name=`tab`,m.className=`tabs`,r.append(i,m,a);for(let t of e.slots){let e=document.createElement(`slot`);e.name=t,a.insertBefore(e,p??null)}let _=b(e.storage.dock)??e.initial?.dock??{edge:`bottom`,at:50},v=_,y=()=>_.edge===`left`||_.edge===`right`,x=t=>{_=t,v=l()&&!n.hasAttribute(`dragging`)&&t.edge===`bottom`?{edge:`bottom`,at:t.at<50?0:100}:t,n.setAttribute(`edge`,v.edge),n.style.setProperty(`--at`,String(v.at));let r=n.hasAttribute(`collapsed`),i=r?y()?E(n).width:E(n).height:y()?a.offsetWidth:a.offsetHeight;e.onPlace?.({...v,collapsed:r,thickness:i}),o.style.setProperty(`--vitehub-mark-x`,`${a.clientWidth/2-o.offsetLeft-o.offsetWidth/2}px`),o.style.setProperty(`--vitehub-mark-y`,`${a.clientHeight/2-o.offsetTop-o.offsetHeight/2}px`)},S=T({host:n,handle:o,dock:()=>_,shape:e=>{let t=n.hasAttribute(`collapsed`),r=t?e?n.offsetHeight:n.offsetWidth:e?a.offsetHeight:a.offsetWidth;return{size:r,lead:t?r/2:e?o.offsetTop+o.offsetHeight/2:o.offsetLeft+o.offsetWidth/2,part:t?e?E(n).height:E(n).width:r,margin:t?2:16}},place:x,drop:()=>{x(_);try{localStorage.setItem(e.storage.dock,JSON.stringify({edge:_.edge,at:_.at}))}catch{}},signal:t}),C=/* @__PURE__ */ new Map,w={width:0,height:0},O=()=>{let e=a.getBoundingClientRect();C=new Map([[o,{x:0,y:0}],...[...[...n.children].filter(e=>e.slot!==`tab`),...p?[p]:[]].map(t=>{let n=t.getBoundingClientRect();return[t,{x:n.left-e.left,y:n.top-e.top}]})]),w={width:a.offsetWidth,height:a.offsetHeight}};if(t.aborted)return n;let k=new ResizeObserver(()=>{let e={parts:C,box:w};for(let t of[a,...e.parts.keys()])for(let e of t.getAnimations())e.id===`vitehub-pill-glide`&&e.cancel();if(O(),x(_),!e.box.width||n.hasAttribute(`collapsed`)||n.hasAttribute(`dragging`)||matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let t={x:w.width-e.box.width,y:w.height-e.box.height},r={x:y()?v.edge===`right`?t.x:0:t.x*v.at/100,y:y()?t.y*v.at/100:v.edge===`bottom`?t.y:0},i={duration:250,easing:`cubic-bezier(.32,.72,0,1)`,id:`vitehub-pill-glide`};for(let[t,n]of C){let a=e.parts.get(t);if(!a)continue;let o=a.x+r.x-n.x,s=a.y+r.y-n.y;(Math.abs(o)>.5||Math.abs(s)>.5)&&t.animate([{translate:`${o}px ${s}px`},{translate:`0 0`}],i)}let o=Math.max(0,r.y),s=Math.max(0,r.x),c=Math.max(0,t.x-r.x),l=Math.max(0,t.y-r.y);(o||s||c||l)&&a.animate([{clipPath:`inset(${o}px ${c}px ${l}px ${s}px round 12px)`},{clipPath:`inset(0 round 12px)`}],i)});return t.addEventListener(`abort`,()=>{n.remove(),k.disconnect()},{once:!0}),(e.parent??document.documentElement).append(n),x(_),t.aborted||(k.observe(a),e.markOnly?.watch(()=>{u=!1;let e=n.contains(document.activeElement);c(d()),e&&n.hasAttribute(`collapsed`)&&o.focus({preventScroll:!0}),x(_)},t)),n}async function w(e){if(e.inert=!0,e.hasAttribute(`collapsed`)||matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let t=e.shadowRoot?.querySelector(`div`);t&&Object.assign(t.style,{width:`${t.offsetWidth}px`,height:`${t.offsetHeight}px`}),e.setAttribute(`collapsed`,``);let n=t?.getAnimations?.().find(e=>`transitionProperty`in e&&e.transitionProperty===`clip-path`);n&&await Promise.race([n.finished.catch(()=>{}),new Promise(e=>setTimeout(e,400))])}function T(e){let{host:t,handle:n}=e,r,i=!1;return n.style.touchAction=`none`,n.addEventListener(`pointerdown`,a=>{if(a.button!==0||r!==void 0)return;r=a.pointerId,i=!1;let o=n.getBoundingClientRect(),s={x:a.clientX-o.left-o.width/2,y:a.clientY-o.top-o.height/2};n.setPointerCapture(a.pointerId);let c=n=>{if(n.pointerId!==a.pointerId||!i&&Math.hypot(n.clientX-a.clientX,n.clientY-a.clientY)<4)return;i=!0,t.setAttribute(`dragging`,``);let r=document.documentElement.clientWidth,o=document.documentElement.clientHeight,c=n.clientX-s.x,l=n.clientY-s.y,u=x(c,l,r,o);u!==e.dock().edge&&e.place({edge:u,at:e.dock().at});let d=u===`left`||u===`right`,{size:f,lead:p,part:m,margin:h}=e.shape(d),g=(d?l:c)-p+f/2,_=getComputedStyle(t),v=Math.max(h,Number.parseFloat(_.getPropertyValue(d?`--safe-top`:`--safe-left`))||0),y=Math.max(h,Number.parseFloat(_.getPropertyValue(d?`--safe-bottom`:`--safe-right`))||0);e.place({edge:u,at:S(g,m,v,y,d?o:r)})};n.addEventListener(`pointermove`,c);let l=o=>{o.pointerId===a.pointerId&&(n.removeEventListener(`pointermove`,c),n.removeEventListener(`lostpointercapture`,l),r=void 0,i&&(t.removeAttribute(`dragging`),e.drop(),setTimeout(()=>{i=!1})))};n.addEventListener(`lostpointercapture`,l)},{signal:e.signal}),()=>i}function E(e){let t=Number.parseFloat(getComputedStyle(e).getPropertyValue(`--vitehub-hex-h`))||24;return{width:t*10/9,height:t}}function D(e){try{let t=localStorage.getItem(e);return t===`1`||t!==`0`&&void 0}catch{return}}const O=`${i}
71
+ .who{align-self:flex-start;padding:0 3px}
72
+ .avatar{box-sizing:border-box;display:grid;place-items:center;width:22px;height:22px;flex:none;overflow:hidden;border-radius:50%;background:#404040;color:var(--vitehub-pill-strong);font-size:10px;font-weight:600;line-height:1}
73
+ .avatar img{display:block;width:100%;height:100%;object-fit:cover}
74
+ [role=menu]{position:fixed;inset:auto;box-sizing:border-box;width:max-content;min-width:220px;max-width:min(300px,calc(100vw - 16px));margin:0;padding:6px;overflow:visible;border:1px solid var(--vitehub-pill-line);border-radius:12px;background:#171717;color:var(--vitehub-pill-text);font:500 13px/1.3 ui-sans-serif,system-ui,sans-serif;box-shadow:0 16px 40px rgb(0 0 0/30%);color-scheme:dark}
75
+ .me{display:flex;align-items:center;gap:10px;margin-bottom:4px;padding:8px 8px 10px;border-bottom:1px solid var(--vitehub-pill-line)}
76
+ .me .avatar{width:32px;height:32px;font-size:12px}
77
+ .me div{min-width:0}
78
+ .me b,.me small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
79
+ .me b{color:var(--vitehub-pill-strong);font-weight:500}
80
+ .me small{margin-top:2px;color:var(--vitehub-pill-muted);font-size:12px}
81
+ .via{display:flex;align-items:center;gap:6px;padding:6px 8px;color:var(--vitehub-pill-muted);font-size:12px}
82
+ .via svg{width:11px;height:10px;flex:none;fill:var(--vitehub-pill-text)}
83
+ [role=menuitem]{display:flex;width:100%;height:32px;justify-content:flex-start;gap:8px;font-size:13px}
84
+ [role=menuitem] svg{width:15px;height:15px;color:var(--vitehub-pill-muted)}
85
+ [role=menuitem][hidden]{display:none}
86
+ [role=menuitem][aria-disabled=true]{cursor:progress}
87
+ @media(any-pointer:coarse){[role=menuitem]{height:44px}}`;function k(e){return e.trim().split(/\s+/).slice(0,2).map(e=>[...e][0]??``).join(``).toLocaleUpperCase()}function A(e){let t=document.createElement(`span`);if(t.className=`avatar`,t.setAttribute(`aria-hidden`,`true`),t.textContent=k(e.name),e.image){let n=document.createElement(`img`);n.alt=``,n.referrerPolicy=`no-referrer`,n.src=e.image,n.addEventListener(`load`,()=>t.replaceChildren(n),{once:!0})}return t}function j(e,t){let n=document.createElement(`button`);n.type=`button`,n.setAttribute(`role`,`menuitem`),n.tabIndex=-1,n.insertAdjacentHTML(`beforeend`,e);let r=document.createElement(`span`);return r.textContent=t,n.append(r),{item:n,label:r}}function ee(){let n=new URL(location.href);for(let r of[e,...t])n.searchParams.delete(r);return n}function te(e){let{account:t,bar:n,signal:r}=e,i=n.parentElement,a=n.attachShadow({mode:`open`}),o=document.createElement(`style`);o.textContent=O;let s=document.createElement(`div`);s.id=`account-menu`,s.setAttribute(`popover`,`auto`),s.setAttribute(`role`,`menu`),s.setAttribute(`aria-label`,t.name);let c=document.createElement(`button`);c.type=`button`,c.className=`who`,c.title=t.email?`${t.name} (${t.email})`:t.name,c.setAttribute(`aria-label`,`Account: ${t.name}`),c.setAttribute(`aria-haspopup`,`menu`),c.setAttribute(`aria-expanded`,`false`),c.setAttribute(`aria-controls`,s.id),c.setAttribute(`popovertarget`,s.id),c.append(A(t));let l=document.createElement(`div`);l.className=`me`,l.setAttribute(`role`,`none`);let u=document.createElement(`div`),d=document.createElement(`b`);if(d.textContent=t.name,u.append(d),t.email){let e=document.createElement(`small`);e.textContent=t.email,u.append(e)}if(l.append(A(t),u),s.append(l),t.via===`console`){let t=document.createElement(`div`);t.className=`via`,t.setAttribute(`role`,`none`),t.append(g(`0 0 20 18`,e.mark,{}),`Signed in with ViteHub Console`),s.append(t)}let f=j(`<svg viewBox="0 0 24 24" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 7h10v10M7 17 17 7"/></svg>`,`Open in the Console`),p=j(`<svg viewBox="0 0 24 24" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 17 5-5-5-5M21 12H9M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/></svg>`,`Sign out of ${location.host}`);s.append(f.item,p.item),a.append(o,c,s);let m=()=>[...s.querySelectorAll(`[role=menuitem]`)].filter(e=>!e.hidden),h,_=e=>{let t=document.documentElement.clientWidth,r=document.documentElement.clientHeight,a=(i??n).getBoundingClientRect(),o=c.getBoundingClientRect(),l={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};e===`bottom`||e===`top`?(l.right=`${Math.max(8,t-o.right)}px`,e===`bottom`?l.bottom=`${r-a.top+8}px`:l.top=`${a.bottom+8}px`):(o.top<r/2?l.top=`${Math.max(8,o.top)}px`:l.bottom=`${Math.max(8,r-o.bottom)}px`,e===`left`?l.left=`${a.right+8}px`:l.right=`${t-a.left+8}px`),Object.assign(s.style,l)},v=e=>{if(e!==`bottom`&&e!==`top`)return;let t=document.documentElement.clientWidth,n=c.getBoundingClientRect(),r=s.getBoundingClientRect().width;s.style.right=`auto`,s.style.left=`${Math.max(8,Math.min(n.right-r,t-r-8))}px`};if(s.addEventListener(`beforetoggle`,t=>{if(t.newState===`closed`){s.contains(a.activeElement)&&c.focus({preventScroll:!0});return}h=e.openConsole?.(),f.item.hidden=!h;let n=i?.getAttribute(`edge`)??`bottom`;_(n),requestAnimationFrame(()=>v(n))},{signal:r}),s.addEventListener(`toggle`,e=>{let t=e.newState===`open`;c.setAttribute(`aria-expanded`,String(t)),t&&m()[0]?.focus({preventScroll:!0})},{signal:r}),s.addEventListener(`keydown`,e=>{let t=m(),n=t.findIndex(e=>e===a.activeElement),r=e.key===`ArrowDown`?n+1:e.key===`ArrowUp`?n-1:e.key===`Home`?0:e.key===`End`?t.length-1:void 0;r===void 0?e.key===`Escape`?e.stopPropagation():e.key===`Tab`&&s.hidePopover():(e.preventDefault(),t[(r+t.length)%t.length]?.focus())},{signal:r}),f.item.addEventListener(`click`,()=>{s.hidePopover(),h?.()},{signal:r}),p.item.addEventListener(`click`,async()=>{if(p.item.getAttribute(`aria-disabled`)===`true`)return;p.item.setAttribute(`aria-disabled`,`true`),p.label.textContent=`Signing out…`;let e=await fetch(t.signOut,{method:`POST`,credentials:`same-origin`,headers:{"content-type":`application/json`},body:`{}`}).catch(e=>e);if(!(e instanceof Response)||!e.ok){console.error(`[vitehub] The sign-out failed. The session stays.`,e instanceof Response?`The sign-out answered ${e.status}.`:e),p.item.removeAttribute(`aria-disabled`),p.label.textContent=`Could not sign out. Try again`;return}let n=ee();n.href===location.href?location.reload():location.replace(n)},{signal:r}),i){let e=new MutationObserver(e=>{e.some(e=>e.oldValue!==i.getAttribute(e.attributeName??``))&&s.hidePopover()});e.observe(i,{attributes:!0,attributeOldValue:!0,attributeFilter:[`collapsed`,`dragging`,`edge`]}),r.addEventListener(`abort`,()=>e.disconnect(),{once:!0})}r.addEventListener(`abort`,()=>s.hidePopover(),{once:!0})}function M(e,...t){return typeof e==`function`?e(...t):e}const ne=Error.captureStackTrace;var N=class e extends Error{get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.code=this.name=t.code,this.docs=t.docs,this.fix=t.fix,this.sources=t.sources,this.data=t.data,ne?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,data:this.data,stack:this.stack}}};function re(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}const P=e=>t=>t instanceof N&&e in t;/* @__NO_SIDE_EFFECTS__ */
88
+ function ie(e){let t=e.reporters??[],n=Symbol(),r=Object.defineProperty({},"is",{value:P(n)}),{docsBase:i}=e;for(let a of Object.keys(e.codes)){let o=e.codes[a],s=o.docs===!1?void 0:o.docs||re(i,a),c=(e={},r={})=>{let i=new N({code:a,why:M(o.why,e),fix:M(o.fix,e),docs:s,cause:e.cause,sources:e.sources,data:M(o.data,e)},c);i[n]=1;for(let e of t)e(i,r);return i};c.is=e=>r.is(e)&&e.code===a,r[a]=c}return r}const ae=/*#__PURE__*/ ie({docsBase:`https://vitehub.dev/docs/development/diagnostics`,codes:{INTERNAL_INVARIANT_FAILED:{why:({what:e})=>`ViteHub reached a state that it does not expect: ${e}`,fix:`This is a ViteHub bug. Open an issue at https://github.com/vite-hub/vitehub/issues with this error message and its stack trace.`}}});function oe(e){return ae.INTERNAL_INVARIANT_FAILED({what:e})}function se(e,t){if(!e)throw oe(t)}let F={edge:`bottom`,at:50};const I=/* @__PURE__ */ new Set;let ce=0;function L(e){e.setAttribute(`edge`,F.edge),e.toggleAttribute(`collapsed`,!!F.collapsed),e.style.setProperty(`--at`,String(F.at)),F.thickness?e.style.setProperty(`--thickness`,`${F.thickness}px`):e.style.removeProperty(`--thickness`);for(let t of[`top`,`right`,`bottom`,`left`])e.shadowRoot.querySelector(`.grip.${t}`).hidden=R(t)===0}function R(e){return(e===`top`||e===`bottom`)==(F.edge===`top`||F.edge===`bottom`)?1:e===`top`||e===`left`?F.at/100:1-F.at/100}function le(e){F=e;for(let e of I)L(e)}function z(e){let t=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(let[e,n]of Object.entries({width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.75`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`}))t.setAttribute(e,n);let n=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return n.setAttribute(`d`,e),t.append(n),t}function ue(e){let t=document.createElement(`vitehub-window`);t.hidden=!0;let n=t.attachShadow({mode:`open`}),r=document.createElement(`style`);r.textContent=`
89
+ :host{all:initial;--surface:light-dark(#fff,#0a0a0a);--text:light-dark(#18181b,#fafafa);--muted:light-dark(#71717a,#a1a1aa);--line:light-dark(rgb(0 0 0/8%),rgb(255 255 255/9%));--hover:light-dark(rgb(0 0 0/5%),rgb(255 255 255/7%));--focus:light-dark(#18181b,#fafafa);--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--at:50;--margin:16px;--start:max(var(--margin),var(--safe-left));--end:max(var(--margin),var(--safe-right));--far:max(16px,var(--safe-top));--along:calc(var(--start) + (100% - var(--start) - var(--end)) * var(--at) / 100);--shift:calc(var(--at) * -1%);--dock:calc(max(var(--margin),var(--safe-bottom)) + var(--thickness,38px) + 8px);--width:calc(100vw - var(--start) - var(--end));--height:calc(100dvh - var(--dock) - var(--far));position:fixed;inset:0;z-index:2147483000;pointer-events:none;color:var(--text);font:400 .875rem/1.5 system-ui,sans-serif;color-scheme:light dark;transition:display 150ms allow-discrete}
90
+ :host([collapsed]){--margin:2px}
91
+ :host([edge=top]){--dock:calc(max(var(--margin),var(--safe-top)) + var(--thickness,38px) + 8px);--far:max(16px,var(--safe-bottom))}
92
+ :host(:is([edge=left],[edge=right])){--start:max(var(--margin),var(--safe-top));--end:max(var(--margin),var(--safe-bottom));--width:calc(100vw - var(--dock) - var(--far));--height:calc(100dvh - var(--start) - var(--end))}
93
+ :host([edge=right]){--dock:calc(max(var(--margin),var(--safe-right)) + var(--thickness,38px) + 8px);--far:max(16px,var(--safe-left))}
94
+ :host([edge=left]){--dock:calc(max(var(--margin),var(--safe-left)) + var(--thickness,38px) + 8px);--far:max(16px,var(--safe-right))}
3
95
  :host([hidden]){display:none}
4
- .window{position:absolute;right:16px;bottom:76px;width:min(600px,calc(100vw - 32px));height:min(640px,calc(100dvh - 100px));min-width:300px;min-height:240px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);display:flex;flex-direction:column;overflow:hidden;resize:both;pointer-events:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 32px #0002}
5
- .window.expanded{inset:12px 12px 76px;width:auto!important;height:auto!important;max-width:none;max-height:none;resize:none}
6
- header{display:flex;align-items:center;gap:4px;min-height:44px;padding:0 8px;border-bottom:1px solid var(--line);flex:none}
96
+ .window{position:absolute;width:min(600px,var(--width));height:min(640px,var(--height));min-width:min(300px,var(--width));min-height:min(240px,var(--height));max-width:var(--width);max-height:var(--height);display:flex;flex-direction:column;pointer-events:auto;background:var(--surface);border-radius:12px;box-shadow:0 0 0 1px light-dark(rgb(0 0 0/8%),rgb(255 255 255/10%)),0 2px 4px light-dark(rgb(0 0 0/4%),rgb(0 0 0/24%)),0 16px 40px -8px light-dark(rgb(0 0 0/18%),rgb(0 0 0/56%));outline:none;transition:opacity 200ms cubic-bezier(.23,1,.32,1),scale 200ms cubic-bezier(.23,1,.32,1)}
97
+ :host([edge=bottom]) .window{bottom:var(--dock);left:var(--along);translate:var(--shift) 0;transform-origin:calc(var(--at) * 1%) 100%}
98
+ :host([edge=top]) .window{top:var(--dock);left:var(--along);translate:var(--shift) 0;transform-origin:calc(var(--at) * 1%) 0}
99
+ :host([edge=right]) .window{right:var(--dock);top:var(--along);translate:0 var(--shift);transform-origin:100% calc(var(--at) * 1%)}
100
+ :host([edge=left]) .window{left:var(--dock);top:var(--along);translate:0 var(--shift);transform-origin:0 calc(var(--at) * 1%)}
101
+ @starting-style{.window{opacity:0;scale:.96}}
102
+ :host([hidden]) .window{opacity:0;scale:.96;transition-duration:150ms;transition-timing-function:ease-in}
103
+ :host([edge]) .window.expanded{inset:max(12px,var(--safe-top)) max(12px,var(--safe-right)) max(12px,var(--safe-bottom)) max(12px,var(--safe-left));translate:none;width:auto!important;height:auto!important;max-width:none;max-height:none}
104
+ :host([edge=bottom]) .window.expanded{bottom:var(--dock)}:host([edge=top]) .window.expanded{top:var(--dock)}:host([edge=right]) .window.expanded{right:var(--dock)}:host([edge=left]) .window.expanded{left:var(--dock)}
105
+ .frame{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-radius:inherit}
106
+ .grip{position:absolute;z-index:1;touch-action:none}
107
+ .grip.top,.grip.bottom{left:12px;right:12px;height:8px;cursor:ns-resize}
108
+ .grip.top{top:-4px}.grip.bottom{bottom:-4px}
109
+ .grip.left,.grip.right{top:12px;bottom:12px;width:8px;cursor:ew-resize}
110
+ .grip.left{left:-4px}.grip.right{right:-4px}
111
+ :host([edge=bottom]) .grip.bottom,:host([edge=top]) .grip.top,:host([edge=right]) .grip.right,:host([edge=left]) .grip.left,.expanded .grip{display:none}
112
+ header{display:flex;align-items:center;gap:2px;min-height:44px;padding:0 6px 0 8px;border-bottom:1px solid var(--line);flex:none}
7
113
  h2{font:600 .875rem/1.5 system-ui,sans-serif;margin:0;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 8px}
8
- button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;font:inherit}
9
- button:hover{background:var(--hover);color:var(--text)}
10
- button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
114
+ header :is(button,a){display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;font:inherit;touch-action:manipulation;transition:background-color 150ms ease-out,color 150ms ease-out}
115
+ header a[hidden]{display:none}
116
+ @media(hover:hover){header :is(button,a):hover{background:var(--hover);color:var(--text)}}
117
+ header :is(button,a):focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
118
+ @media(any-pointer:coarse){:host{--thickness:54px}.grip{display:none}header :is(button,a){width:44px;height:44px}}
11
119
  .body{flex:1;min-height:0;overflow:auto;position:relative}iframe{display:block;border:0;width:100%;height:100%;background:var(--surface)}
12
- @media(max-width:640px){.window,.window.expanded{inset:0 0 68px;width:auto!important;height:auto!important;max-width:none;max-height:none;min-width:0;min-height:0;border-radius:0;resize:none}button{width:44px;height:44px}.expand{display:none}}
13
- @media(forced-colors:active){.window{border:1px solid CanvasText}button:focus-visible{outline-color:Highlight}}
14
- `;let a=document.createElement(`section`);a.className=`window`,a.setAttribute(`role`,`dialog`),a.setAttribute(`aria-labelledby`,`title`);let o=document.createElement(`header`),s=document.createElement(`h2`);s.id=`title`,s.textContent=t.title;let c=document.createElement(`div`);c.className=`body`;let l=(t,n,r)=>{let i=document.createElement(`button`);return i.className=t,i.type=`button`,i.setAttribute(`aria-label`,n),i.title=n,i.append(e(r)),i},u=l(`expand`,`Expand window`,`M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5`),d=l(`hide`,`Minimize window`,`M5 12h14`);o.append(s,u,d),a.append(o,c),r.append(i,a);let f=`vitehub-window:${t.id}`;try{let e=JSON.parse(localStorage.getItem(f)??`null`);e&&typeof e==`object`&&`width`in e&&`height`in e&&typeof e.width==`number`&&typeof e.height==`number`&&(Number.isFinite(e.width)&&(a.style.width=`${Math.max(300,e.width)}px`),Number.isFinite(e.height)&&(a.style.height=`${Math.max(240,e.height)}px`))}catch{}let p=new ResizeObserver(()=>{if(n.hidden||a.classList.contains(`expanded`)||innerWidth<=640)return;let{width:e,height:t}=a.getBoundingClientRect();try{localStorage.setItem(f,JSON.stringify({width:e,height:t}))}catch{}});p.observe(a);let m=()=>{n.hidden=!0,t.trigger.setAttribute(`aria-expanded`,`false`),t.trigger.focus({preventScroll:!0}),t.onHide?.()};u.addEventListener(`click`,()=>{let e=a.classList.toggle(`expanded`);u.setAttribute(`aria-label`,e?`Restore window size`:`Expand window`),u.title=e?`Restore window size`:`Expand window`,u.setAttribute(`aria-pressed`,String(e))}),d.addEventListener(`click`,m),r.addEventListener(`keydown`,e=>{e instanceof KeyboardEvent&&e.key===`Escape`&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation(),m())});let h=()=>{p.disconnect(),n.remove()};return t.signal.aborted?h():(t.signal.addEventListener(`abort`,h,{once:!0}),document.body.append(n)),{body:c,show(){t.signal.aborted||(n.style.colorScheme=getComputedStyle(t.trigger).colorScheme,n.hidden=!1,t.trigger.setAttribute(`aria-expanded`,`true`),d.focus({preventScroll:!0}))},hide:m,destroy:h}}const n=`vitehub`,r=`/_vitehub/page/session`;function i(e){let t=new URL(e,`http://localhost`).pathname,n=t.lastIndexOf(`/_vitehub/page/assets/`);return n===-1?r:`${t.slice(0,n)}${r}`}function a(e){return typeof e==`string`&&e?e:void 0}function o(e){if(typeof e!=`object`||!e)return;let t=a(Reflect.get(e,`id`)),n=a(Reflect.get(e,`script`));if(!t||!n)return;let r={id:t,label:a(Reflect.get(e,`label`))??t,icon:a(Reflect.get(e,`icon`))??``,script:n};Reflect.get(e,`lazy`)===!0&&(r.lazy=!0);let i=a(Reflect.get(e,`hotkey`));return i&&(r.hotkey=i),r}function s(e){let t=typeof e==`object`&&e?Reflect.get(e,`tools`):void 0;return{tools:Array.isArray(t)?t.map(o).filter(e=>!!e):[]}}function c(e){let t=typeof e==`object`&&e?Reflect.get(e,`default`):void 0;return t instanceof Function?t:void 0}function l(){let e=document.documentElement;if(e.classList.contains(`dark`)||e.dataset.theme===`dark`)return!0;if(e.classList.contains(`light`)||e.dataset.theme===`light`)return!1;let t=getComputedStyle(e).colorScheme;return t===`dark`||t.includes(`dark`)&&matchMedia(`(prefers-color-scheme: dark)`).matches}function u(e,t,n){let r=document.createElement(`vitehub-pill`),i=r.attachShadow({mode:`open`}),a=document.createElement(`style`);a.textContent=`:host{all:initial;position:fixed;left:50%;bottom:16px;translate:-50% 0;z-index:2147483001;font-size:13px;line-height:1.5;color:light-dark(#3f3f46,#e4e4e7);-webkit-font-smoothing:antialiased}
15
- div{max-width:calc(100vw - 24px);overflow-x:auto;--line:light-dark(#0000000f,#ffffff12);display:flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:light-dark(#fff,#1c1c1f);box-shadow:0 0 0 1px light-dark(#00000014,#ffffff1a),0 1px 2px #0000000a,0 8px 24px -6px light-dark(#00000029,#0009)}
16
- ::slotted(*){flex-shrink:0;display:flex;align-items:center;padding-right:5px;margin-right:3px;background:linear-gradient(var(--line),var(--line)) right/1px 16px no-repeat}
17
- ::slotted([hidden]){display:none!important}
18
- button{all:unset;flex-shrink:0;position:sticky;right:0;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:light-dark(#71717a,#a1a1aa)}
19
- button:hover{background:light-dark(#0000000d,#ffffff0f);color:light-dark(#18181b,#fafafa)}
20
- :focus-visible{outline:2px solid #2563eb;outline-offset:2px}`;let o=document.createElement(`div`);o.setAttribute(`role`,`toolbar`),o.setAttribute(`aria-label`,`ViteHub tools`);let s=document.createElement(`button`);s.setAttribute(`aria-label`,`Turn off ViteHub tools`),s.title=`Turn off ViteHub tools`;let c=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(let[e,t]of Object.entries({width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"aria-hidden":`true`}))c.setAttribute(e,t);let u=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);u.setAttribute(`d`,`M18 6 6 18M6 6l12 12`),c.append(u),s.append(c),o.append(s),i.append(a,o);for(let t of e){let e=document.createElement(`slot`);e.name=t.id,o.insertBefore(e,s)}s.addEventListener(`click`,t),r.style.fontFamily=getComputedStyle(document.body).fontFamily;let d=()=>{r.style.colorScheme=l()?`dark`:`light`};d();let f=new MutationObserver(d);return f.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`style`,`data-theme`]}),matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,d,{signal:n}),n.addEventListener(`abort`,()=>{f.disconnect(),r.remove()},{once:!0}),document.body.append(r),r}async function d(e={}){let r=new URLSearchParams(location.search);if(!r.has(`vitehub`)&&!document.cookie.split(`;`).some(e=>e.trim()===`vitehub-tools=1`))return[];let a=e.load??(e=>import(
120
+ @media(max-width:640px){:host([edge]) .window,:host([edge]) .window.expanded{inset:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);translate:none;width:auto!important;height:auto!important;max-width:none;max-height:none;min-width:0;min-height:0;border-radius:0}:host([edge=bottom]) :is(.window,.window.expanded){bottom:var(--dock)}:host([edge=top]) :is(.window,.window.expanded){top:var(--dock)}:host([edge=right]) :is(.window,.window.expanded){right:var(--dock)}:host([edge=left]) :is(.window,.window.expanded){left:var(--dock)}:host(:is([edge=top],[edge=bottom])) .window:not(.expanded){left:var(--start);right:var(--end)}:host(:is([edge=left],[edge=right])) .window:not(.expanded){top:var(--start);bottom:var(--end)}.grip{display:none}header :is(button,a){width:44px;height:44px}.expand{display:none}}
121
+ @media(prefers-reduced-motion:reduce){:host,.window{transition:none}}
122
+ @media(forced-colors:active){.window{border:1px solid CanvasText}header :is(button,a):focus-visible{outline-color:Highlight}}
123
+ `;let i=document.createElement(`section`);i.className=`window`,i.setAttribute(`role`,`dialog`),i.setAttribute(`aria-labelledby`,`title`),i.tabIndex=-1;let a=document.createElement(`header`),o=document.createElement(`h2`);o.id=`title`,o.textContent=e.title;let s=document.createElement(`div`);s.className=`body`;let c=(e,t,n)=>{let r=document.createElement(`button`);return r.className=e,r.type=`button`,r.setAttribute(`aria-label`,t),r.title=t,r.append(z(n)),r},l=c(`expand`,`Expand window`,`M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5`),u=c(`hide`,`Minimize window`,`M5 12h14`),d=document.createElement(`a`);d.className=`tab`,d.target=`_blank`,d.rel=`noopener`,d.setAttribute(`aria-label`,`Open in new tab`),d.title=`Open in new tab`,d.append(z(`M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`));let f=()=>{let t=e.href?.();d.hidden=!t,t?d.href=t:d.removeAttribute(`href`)};for(let e of[`pointerenter`,`pointerdown`,`focus`,`click`,`contextmenu`])d.addEventListener(e,f);f(),a.append(o,...e.href?[d]:[],l,u);let p=document.createElement(`div`);p.className=`frame`,p.append(a,s);let m=[`top`,`right`,`bottom`,`left`].map(e=>{let t=document.createElement(`div`);return t.className=`grip ${e}`,t.addEventListener(`pointerdown`,n=>{if(n.button!==0)return;let r=R(e);if(r===0)return;n.preventDefault(),t.setPointerCapture(n.pointerId);let a=e===`top`||e===`bottom`,o=a?i.offsetHeight:i.offsetWidth,s=t=>{let s=a?t.clientY-n.clientY:t.clientX-n.clientX,c=o+(e===`top`||e===`left`?-s:s)/r;a?i.style.height=`${Math.max(240,c)}px`:i.style.width=`${Math.max(300,c)}px`};t.addEventListener(`pointermove`,s),t.addEventListener(`lostpointercapture`,()=>t.removeEventListener(`pointermove`,s),{once:!0})}),t});i.append(p,...m),n.append(r,i);let h=`vitehub-window:${e.id}`;try{let e=JSON.parse(localStorage.getItem(h)??`null`);e&&typeof e==`object`&&`width`in e&&`height`in e&&typeof e.width==`number`&&typeof e.height==`number`&&(Number.isFinite(e.width)&&(i.style.width=`${Math.max(300,e.width)}px`),Number.isFinite(e.height)&&(i.style.height=`${Math.max(240,e.height)}px`))}catch{}let g=new ResizeObserver(()=>{if(t.hidden||i.classList.contains(`expanded`)||innerWidth<=640)return;let e=i.offsetWidth,n=i.offsetHeight;try{localStorage.setItem(h,JSON.stringify({width:e,height:n}))}catch{}});g.observe(i);let _=()=>{t.hidden=!0,e.trigger.setAttribute(`aria-expanded`,`false`),e.trigger.focus({preventScroll:!0}),e.onHide?.()};l.addEventListener(`click`,()=>{let e=i.classList.toggle(`expanded`);l.setAttribute(`aria-label`,e?`Restore window size`:`Expand window`),l.title=e?`Restore window size`:`Expand window`,l.setAttribute(`aria-pressed`,String(e))}),u.addEventListener(`click`,_),e.colorScheme&&addEventListener(`storage`,()=>{t.style.colorScheme=e.colorScheme?.()??``},{signal:e.signal}),n.addEventListener(`keydown`,e=>{e instanceof KeyboardEvent&&e.key===`Escape`&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation(),_())}),t.style.viewTransitionName=`vitehub-window-${++ce}`,L(t);let v=()=>{I.delete(t),g.disconnect(),t.remove()};return e.signal.aborted?v():(e.signal.addEventListener(`abort`,v,{once:!0}),I.add(t),document.documentElement.append(t)),{body:s,show(){e.signal.aborted||(t.style.colorScheme=e.colorScheme?.()??``,f(),t.hidden=!1,e.trigger.setAttribute(`aria-expanded`,`true`),i.focus({preventScroll:!0}))},hide:_,destroy:v}}function de(e){let t=typeof e==`object`&&e?Reflect.get(e,`default`):void 0;return t instanceof Function?t:void 0}const B=`vitehub-tools-off`,V=`vitehub-tools-collapsed`,H=`vitehub-tools-dock`,U=`vitehub-account`,W=`M19.734 8.156 15.576.844A1.66 1.66 0 0 0 14.135 0H5.819C5.226 0 4.677.32 4.38.844L.222 8.156a1.71 1.71 0 0 0 0 1.688l4.158 7.312c.297.523.846.844 1.439.844h8.316c.593 0 1.142-.32 1.438-.844l4.158-7.312c.3-.523.3-1.165.003-1.688Z`;function fe(){try{return localStorage.getItem(B)===`1`}catch{return!1}}function G(e){try{e?localStorage.setItem(B,`1`):localStorage.removeItem(B)}catch{}}function K(){return document.documentElement.getAttribute(`data-vitehub-pill`)===`mark`||q}let q=!1,J=!1;function Y(){try{return localStorage.getItem(H)}catch{return null}}function X(){if(J||typeof document.elementsFromPoint!=`function`)return!1;let e=e=>{let t=e.getBoundingClientRect();return t.width*t.height<innerWidth*innerHeight/2},t=Array.from({length:36},(e,t)=>[Math.min(innerWidth-1,Math.max(0,innerWidth/2-140+t%18*16+8)),innerHeight-(t<18?24:44)]),n=/* @__PURE__ */ new Set;for(let[r,i]of t)for(let t of document.elementsFromPoint(r,i))if(!n.has(t)){n.add(t);for(let n=t;n&&n!==document.body&&n!==document.documentElement&&!n.localName.startsWith(`vitehub-`);n=n.parentElement){let r=getComputedStyle(n);if(r.position===`fixed`||r.position===`sticky`&&r.bottom!==`auto`){if(e(n)||n!==t&&e(t))return!0;break}if(/auto|scroll/.test(r.overflowY)&&n.scrollHeight>n.clientHeight)break}}return!1}function pe(e){return e.edge===`bottom`?{edge:`bottom`,at:e.at<50?0:100}:e}function Z(e,t){let n=K(),r=Y(),i=()=>{J||=Y()!==r;let t=q;if(q=X(),t&&!q&&J&&document.querySelector(`vitehub-pill`)?.hasAttribute(`collapsed`))try{localStorage.setItem(V,`1`)}catch{}K()!==n&&(n=!n,e())},a=new MutationObserver(i);a.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-vitehub-pill`]});let o,s=()=>{o??=setTimeout(()=>{o=void 0,i()},200)},c=new MutationObserver(e=>{e.some(e=>!(e.target instanceof Element&&e.target.localName.startsWith(`vitehub-`)))&&s()});c.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`hidden`,`class`,`style`]}),addEventListener(`scroll`,s,{capture:!0,passive:!0,signal:t}),addEventListener(`resize`,s,{signal:t}),addEventListener(`storage`,e=>{(e.key===null||e.key===H)&&(r=Y()),s()},{signal:t}),document.addEventListener(`pointerup`,s,{signal:t}),t.addEventListener(`abort`,()=>{a.disconnect(),c.disconnect(),clearTimeout(o)},{once:!0})}function Q(e,t,n,r){if(e.aborted)return;let i=document.createElement(`vitehub-tools-off`);i.setAttribute(`off`,``),i.setAttribute(`collapsed`,``),r&&i.setAttribute(`closing`,``),i.style.viewTransitionName=`vitehub-pill`;let a=b(H)??{edge:`bottom`,at:50},o=()=>{let e=K()&&!i.hasAttribute(`dragging`)?pe(a):a;i.setAttribute(`edge`,e.edge),i.style.setProperty(`--at`,String(e.at))};o();let s=new AbortController;e.addEventListener(`abort`,()=>{s.abort(),i.remove()},{once:!0,signal:s.signal}),Z(o,s.signal);let c=i.attachShadow({mode:`open`}),l=document.createElement(`style`);l.textContent=`${h}\n:host([off]){--vitehub-hex-h:14px;filter:drop-shadow(0 1px 2px rgb(0 0 0/25%))}
124
+ :host([off]) button{position:relative;display:block;width:var(--vitehub-hex-w);min-width:0;height:var(--vitehub-hex-h);padding:0;border-radius:4px;pointer-events:auto;cursor:grab;opacity:.55;transition:opacity 150ms ease-out;animation:vitehub-off-in 200ms cubic-bezier(.23,1,.32,1)}
125
+ :host([off][edge=bottom]) button{transform-origin:calc(var(--at) * 1%) 100%}
126
+ :host([off][edge=top]) button{transform-origin:calc(var(--at) * 1%) 0}
127
+ :host([off][edge=left]) button{transform-origin:0 calc(var(--at) * 1%)}
128
+ :host([off][edge=right]) button{transform-origin:100% calc(var(--at) * 1%)}
129
+ :host([off][closing]) button{animation:vitehub-off-from-pill 240ms cubic-bezier(.23,1,.32,1)}
130
+ :host([off][dragging]) button{opacity:1;cursor:grabbing}
131
+ :host([off]) button::before{content:"";position:absolute;inset:-6px}
132
+ svg{display:block;width:100%;height:100%;overflow:visible;fill:rgb(17 17 17/92%);stroke:rgb(255 255 255/18%);stroke-width:1px;vector-effect:non-scaling-stroke;transition:fill 150ms ease-out,scale 150ms ease-out}
133
+ :host([off]) button:focus-visible{opacity:1}
134
+ :host([off][dragging]) svg{scale:none}
135
+ @media(hover:hover){:host([off]) button:hover{opacity:1;background:none}button:hover svg{fill:rgb(38 38 38/94%)}}
136
+ button:active svg{scale:.96}
137
+ @media(any-pointer:coarse){:host([off]){--vitehub-hex-h:20px}:host([off]) button{min-width:0;height:var(--vitehub-hex-h)}:host([off]) button::before{inset:-10px}}
138
+ @keyframes vitehub-off-in{from{opacity:0;scale:.6}}
139
+ @keyframes vitehub-off-from-pill{from{opacity:1;scale:var(--vitehub-off-from)}}
140
+ @media(prefers-reduced-motion:reduce){:host([off]) button,svg{animation:none;transition:none}}`;let u=document.createElement(`button`);u.type=`button`,u.setAttribute(`aria-label`,`Turn on ViteHub tools`),u.title=`Turn on ViteHub tools`,u.append(g(`0 0 20 18`,W,{})),c.append(l,u),document.documentElement.append(i),r&&(i.style.setProperty(`--vitehub-off-from`,String(r/E(i).height)),u.addEventListener(`animationend`,()=>i.removeAttribute(`closing`),{once:!0}));let d=T({host:i,handle:u,dock:()=>a,shape:e=>{let t=e?i.offsetHeight:i.offsetWidth,n=E(i);return{size:t,lead:t/2,part:e?n.height:n.width,margin:2}},place:e=>{a=e,o()},drop:()=>{o();try{localStorage.setItem(H,JSON.stringify(a))}catch{}},signal:s.signal});u.addEventListener(`click`,()=>{d()||(s.abort(),i.remove(),t())}),n&&u.focus({preventScroll:!0})}async function me(e={}){return await $(e,!1)}let he=new AbortController;async function $(t,r){let o=new URLSearchParams(location.search);if(!n(location.search,document.cookie))return[];let{signal:s}=he;J=b(H)!==void 0,q=X();let c=t.load??(e=>import(
21
141
  /* @vite-ignore */
22
- e)),o;try{let t=await fetch(e.session??i(import.meta.url),{credentials:`same-origin`,headers:{accept:`application/json`}});if(!t.ok)return[];o=s(await t.json())}catch{return[]}if(o.tools.length===0||document.querySelector(`vitehub-pill`))return[];let l=r.get(n),d=o.tools.some(e=>e.id===l),f=new AbortController,p=o.tools.map(()=>new AbortController),m=/* @__PURE__ */ new Set,h=()=>{if([...m].some(e=>!e()))return;for(let e of o.tools)y(e.id,!1);document.cookie=`vitehub-tools=; Path=/; Max-Age=0; SameSite=Lax`;let e=new URL(location.href);e.searchParams.has(`vitehub`)&&(e.searchParams.delete(n),history.replaceState(history.state,``,e));for(let e of p)e.abort();f.abort()},g=u(o.tools,h,f.signal),_=/* @__PURE__ */ new Map,v=t=>`vitehub-open:${e.session??i(import.meta.url)}:${t}`,y=(e,t)=>{try{sessionStorage.setItem(v(e),String(t))}catch{}},b=e=>{try{return sessionStorage.getItem(v(e))===`true`}catch{return!1}},x=/* @__PURE__ */ new Map,S=async(e,t)=>await x.get(e)?.(t)??!1,C=(await Promise.all(o.tools.map(async(e,n)=>{let{signal:r}=p[n],i=document.createElement(`vitehub-tool`);i.slot=e.id,g.append(i);let o,s,u=!1,f=()=>{let t=document.createElement(`vitehub-tool`);t.slot=e.id,i.replaceWith(t),i=t},v=()=>{let e=i.attachShadow({mode:`open`}),t=document.createElement(`style`);t.textContent=`button{all:unset;display:block;box-sizing:border-box;font:inherit;color:inherit;border-radius:999px;padding:0 12px;min-height:36px;cursor:pointer}button:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}`,e.append(t,w)},C=(n,d=!0)=>r.aborted?Promise.resolve(!1):u?(o?.(n),Promise.resolve(!0)):s?s.then(e=>(e&&o?.(n),e)):(s=(async()=>{let p=new AbortController,g=()=>p.abort();r.addEventListener(`abort`,g,{once:!0});try{i.setAttribute(`aria-busy`,`true`);let s=c(await a(e.script));if(!s)throw TypeError(`The script ${e.script} has no default export function.`);if(r.aborted)return!1;w.remove(),i.shadowRoot?f():i.replaceChildren();let g=s({beforeExit:e=>{let t=()=>e();m.add(t),p.signal.addEventListener(`abort`,()=>m.delete(t),{once:!0})},tool:e,bar:i,signal:p.signal,open:d&&(e.lazy===!0||e.id===l||b(e.id)),exit:h,createWindow:n=>{let r=t({...n,signal:p.signal,onHide:()=>{y(e.id,!1),n.onHide?.()}}),i={...r,show(){if(!p.signal.aborted){for(let[t,n]of _)t!==e.id&&n.hide();y(e.id,!0),r.show()}},destroy(){_.get(e.id)===i&&(_.delete(e.id),y(e.id,!1)),r.destroy()}};return _.set(e.id,i),i},openTool:S,onOpen:e=>{o=e}});return u=!0,n&&o?.(n),!i.shadowRoot&&!i.hasChildNodes()&&(i.hidden=!0),g instanceof Function&&(r.aborted?g():p.signal.addEventListener(`abort`,()=>g(),{once:!0})),!r.aborted}catch(t){return p.abort(),r.removeEventListener(`abort`,g),_.delete(e.id)&&y(e.id,!1),o=void 0,u=!1,console.error(`[vitehub] The page tool "${e.id}" did not start.`,t),e.lazy?(f(),w.textContent=`Retry ${e.label}`,w.title=`The tool could not load. Try again.`,i.hidden=!1,v()):(x.delete(e.id),i.remove()),!1}finally{i.removeAttribute(`aria-busy`),s=void 0}})(),s),w=document.createElement(`button`);if(w.type=`button`,w.textContent=e.label,w.addEventListener(`click`,()=>void C()),x.set(e.id,C),e.lazy&&e.id!==l&&!b(e.id))return v(),e;let T=await C(void 0,!d||e.id===l);return!r.aborted&&(T||e.lazy)?e:void 0}))).filter(e=>!!e);return C.length===0&&f.abort(),C}d({session:new URL(`../session`,import.meta.url).pathname});
142
+ e)),u;try{let e=new URL(t.session??a(import.meta.url),location.href);e.searchParams.set(`page`,location.pathname);let n=await fetch(e.origin===location.origin?`${e.pathname}${e.search}`:e.href,{credentials:`same-origin`,headers:{accept:`application/json`}});if(!n.ok)return[];u=l(await n.json())}catch{return[]}if(s.aborted||u.tools.length===0||document.querySelector(`vitehub-pill, vitehub-tools-off`))return[];let d=u.tools.find(e=>e.param&&o.has(e.param));if(o.has(`vitehub`)||d)G(!1);else if(fe())return Q(s,()=>{G(!1),$(t,!0)},!1),[];let f=o.get(`vitehub`)||d?.id,p=u.tools.some(e=>e.id===f),m=new AbortController,h=u.tools.map(()=>new AbortController);s.addEventListener(`abort`,()=>{for(let e of h)e.abort();m.abort()},{once:!0,signal:m.signal});let _=/* @__PURE__ */ new Set,v=!1,y=(n=!1)=>{if(v||[..._].some(e=>!e()))return;v=!0;let r=u.tools.filter(e=>O(e.id));for(let e of u.tools)D(e.id,!1);G(!0);let i=new URL(location.href);i.searchParams.delete(e);for(let e of u.tools)e.param&&i.searchParams.delete(e.param);i.href!==location.href&&history.replaceState(history.state,``,i);let a=x.hasAttribute(`collapsed`)?void 0:E(x).height,o=w(x);for(let e of h)e.abort();o.then(()=>{m.abort(),Q(s,()=>{G(!1);for(let e of r)D(e.id,!0);$(t,!0)},n,a&&!matchMedia(`(prefers-reduced-motion: reduce)`).matches?a:void 0)})},x=C({name:`vitehub-pill`,label:`ViteHub tools`,mark:g(`0 0 20 18`,W,{fill:`currentColor`}),slots:[...u.tools.map(e=>e.id),...u.account?[U]:[]],storage:{collapsed:V,dock:H},exit:{label:`Turn off ViteHub tools`,press:y},onPlace:le,markOnly:{active:K,watch:Z,opened:r},signal:m.signal});if(u.account){let e=document.createElement(`vitehub-account`);e.slot=U,x.append(e),te({account:u.account,bar:e,mark:W,openConsole:()=>{let e=x.querySelector(`vitehub-tool[slot="console"]`);return e&&!e.hidden?()=>void A(`console`):void 0},signal:m.signal})}let S=/* @__PURE__ */ new Map,T=e=>`vitehub-open:${t.session??a(import.meta.url)}:${e}`,D=(e,t)=>{try{sessionStorage.setItem(T(e),String(t))}catch{}},O=e=>{try{return sessionStorage.getItem(T(e))===`true`}catch{return!1}},k=/* @__PURE__ */ new Map,A=async(e,t)=>await k.get(e)?.(t)??!1,j=(await Promise.all(u.tools.map(async(e,t)=>{let{signal:n}=h[t],r=document.createElement(`vitehub-tool`);r.slot=e.id,x.append(r);let a,o,s,l=()=>(s||(s=c(e.script),s.catch(()=>{s=void 0})),s),u=!1,d=()=>{let t=document.createElement(`vitehub-tool`);t.slot=e.id,r.replaceWith(t),r=t},m=()=>{let e=r.attachShadow({mode:`open`}),t=document.createElement(`style`);t.textContent=i,e.append(t,v)},g=(t,i=!0)=>n.aborted?Promise.resolve(!1):u?(a?.(t),Promise.resolve(!0)):o?o.then(e=>(e&&a?.(t),e)):(o=(async()=>{let s=new AbortController,c=()=>s.abort();n.addEventListener(`abort`,c,{once:!0});try{r.setAttribute(`aria-busy`,`true`);let o=de(await l());if(se(o,`the script of a page tool default-exports a function (${e.script})`),n.aborted)return!1;v.remove(),r.shadowRoot?d():r.replaceChildren();let c=o({beforeExit:e=>{let t=()=>e();_.add(t),s.signal.addEventListener(`abort`,()=>_.delete(t),{once:!0})},tool:e,bar:r,signal:s.signal,open:i&&(e.lazy===!0||e.id===f||O(e.id)),exit:()=>y(),createWindow:t=>{let n=ue({...t,signal:s.signal,onHide:()=>{D(e.id,!1),x.hasAttribute(`collapsed`)&&x.shadowRoot.querySelector(`button.mark`).focus({preventScroll:!0}),t.onHide?.()}}),r={...n,show(){if(!s.signal.aborted){for(let[t,n]of S)t!==e.id&&n.hide();D(e.id,!0),n.show()}},destroy(){S.get(e.id)===r&&(S.delete(e.id),D(e.id,!1)),n.destroy()}};return S.set(e.id,r),r},openTool:A,createTab:()=>{let e=document.createElement(`vitehub-tab`);if(e.slot=`tab`,x.append(e),s.signal.addEventListener(`abort`,()=>e.remove(),{once:!0}),!matchMedia(`(prefers-reduced-motion: reduce)`).matches){let t=x.getAttribute(`edge`),n=t===`top`?`0 -100%`:t===`left`?`-100% 0`:t===`right`?`100% 0`:`0 100%`;e.animate([{translate:n,opacity:0},{translate:`0 0`,opacity:1}],{duration:220,easing:`cubic-bezier(.32,.72,0,1)`})}return e},onOpen:e=>{a=e}});return u=!0,t&&a?.(t),!r.shadowRoot&&!r.hasChildNodes()&&(r.hidden=!0),c instanceof Function&&(n.aborted?c():s.signal.addEventListener(`abort`,()=>c(),{once:!0})),!n.aborted}catch(t){return s.abort(),n.removeEventListener(`abort`,c),S.delete(e.id)&&D(e.id,!1),a=void 0,u=!1,console.error(`[vitehub] The page tool "${e.id}" did not start.`,t),d(),v.textContent=`Retry ${e.label}`,v.title=`The tool could not load. Try again.`,r.hidden=!1,m(),!1}finally{r.removeAttribute(`aria-busy`),o=void 0}})(),o),v=document.createElement(`button`);v.type=`button`,v.textContent=e.label,v.addEventListener(`click`,()=>void g());for(let e of[`pointerenter`,`pointerdown`,`focus`])v.addEventListener(e,()=>void l());return k.set(e.id,g),e.lazy&&e.id!==f&&!O(e.id)?(m(),e):(await g(void 0,!p||e.id===f),n.aborted?void 0:e)}))).filter(e=>!!e);return j.length===0&&m.abort(),j}me({session:new URL(`../session`,import.meta.url).pathname});
@@ -0,0 +1,10 @@
1
+ function e(e,...t){return typeof e==`function`?e(...t):e}const t=Error.captureStackTrace;var n=class e extends Error{get why(){return this.message}constructor(n,r=e){super(n.why,{cause:n.cause}),this.code=this.name=n.code,this.docs=n.docs,this.fix=n.fix,this.sources=n.sources,this.data=n.data,t?.(this,r)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,data:this.data,stack:this.stack}}};function r(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}const i=e=>t=>t instanceof n&&e in t;/* @__NO_SIDE_EFFECTS__ */
2
+ function a(t){let a=t.reporters??[],o=Symbol(),s=Object.defineProperty({},"is",{value:i(o)}),{docsBase:c}=t;for(let i of Object.keys(t.codes)){let l=t.codes[i],u=l.docs===!1?void 0:l.docs||r(c,i),d=(t={},r={})=>{let s=new n({code:i,why:e(l.why,t),fix:e(l.fix,t),docs:u,cause:t.cause,sources:t.sources,data:e(l.data,t)},d);s[o]=1;for(let e of a)e(s,r);return s};d.is=e=>s.is(e)&&e.code===i,s[i]=d}return s}const o=/^[A-Za-z_$][\w$-]*$/,s=/^[\w$-]+(?:\.[\w$-]+)*$/;function c(e){let t=e.lastIndexOf(`#`);if(t<=0)return;let n=e.slice(t+1),r=e.slice(0,t),i=r.indexOf(`:`),a=i===-1?r:r.slice(0,i),c=i===-1?void 0:r.slice(i+1);if(o.test(a)&&s.test(n)&&c!==``)return c===void 0?{collection:a,field:n}:{collection:a,id:c,field:n}}const l={why:({message:e})=>e===void 0?``:String(e)},u=/*#__PURE__*/ a({docsBase:`https://vitehub.dev/docs/runtime/diagnostics`,codes:{RUNTIME_R0001:{...l,fix:"Pass `maxDepth` to `normalizeRuntimeDiagnosticError()` as an integer of 0 or more, or remove it to use the default."},RUNTIME_R0002:{...l,fix:"Pass `maxErrors` to `normalizeRuntimeDiagnosticError()` as an integer of 1 or more, or remove it to use the default."},RUNTIME_R0003:{...l,fix:"Pass `maxStringLength` to `normalizeRuntimeDiagnosticError()` as an integer of 64 or more, or remove it to use the default."},RUNTIME_R0004:{...l,fix:"Read the logs of the process that `vitehub drain` waited for to find why its drain failed, then fix that failure and run `vitehub drain` again."},RUNTIME_R0005:{...l,fix:"Read the logs of the process that the message names to find why it stopped, then start it again before you run `vitehub drain`."},RUNTIME_R0006:{...l,fix:"Pass `new ViteHubError()` a nonempty `code` and `message` string within the length limits, and plain JSON `details`."},RUNTIME_R0007:{...l,fix:"Give the execution authority a valid value for each of `credentials`, `environment`, `filesystem.access`, `filesystem.scope`, `isolation`, `network`, and `processes`."},RUNTIME_R0009:{...l,fix:"Set `intervalMs` of the process reconciler to a number of milliseconds from 1 to 2147483647."},RUNTIME_R0010:{...l,fix:"Give the process reconciler a `signal` other than `SIGKILL` or `SIGSTOP`, or set `signal: false`."},RUNTIME_R0011:{...l,fix:"Call `drain()` of the process reconciler after its callback returns, not from inside the callback."},RUNTIME_R0015:{...l,fix:"Pass the `Request` of a Fetchable handler, or the event of an H3 or Nitro route, to `getStandardContext()`."},RUNTIME_R0016:{...l,fix:"Return the body or a `Response` from the handler, in place of setting `~standard.res.body`."},RUNTIME_R0017:l,RUNTIME_R0018:l,RUNTIME_CONSOLE_PATH_INVALID:{why:({value:e})=>`${e} is not a Console path. Use a path that starts with one /, such as /agents/<agent>.`,fix:"Pass `hostedConsoleUrl()` a Console path that starts with one `/`, such as `/kv` or `/agents/<agent>/invocations/<id>`."},RUNTIME_CONSOLE_PROJECT_URL_INVALID:{why:({value:e})=>`${e} is not a project URL. Use the https:// origin of the app, with its base path if it has one.`,fix:"Pass `hostedConsoleUrl()` the `https://` origin of the app, or `http://localhost` in development, with its base path and without a user name or password."},RUNTIME_DURATION_INVALID:{why:({option:e,value:t})=>`${e?`\`${e}\``:`The value`} is ${t}, which is not a duration. A duration is a string with a number of 0 or more and a unit, such as "30s", "5m", or "1 day".`,fix:({suggestion:e,unit:t=`milliseconds`,value:n})=>e?`Write the time as a string with a unit: ${n} ${t} is ${e}.`:'Write a number of 0 or more and one unit: `ms`, `s`, `m`, `h`, `d`, or `w`, or a long name such as `minutes` or `days`. For example `"30s"`, `"5m"`, or `"1 day"`.'},RUNTIME_EXECUTION_BUDGET_AMOUNT_INVALID:{why:({counter:e})=>`[vitehub] Execution budget ${e} amount must be a finite non-negative number.`,fix:"Pass `consume()` and the `record*()` methods of the execution budget a finite number of 0 or more."},RUNTIME_EXECUTION_BUDGET_EXCEEDED:{why:({counter:e})=>`[vitehub] Execution budget exhausted for ${e}.`,fix:"Raise the `executionBudget` limit that `error.counter` names, such as `maxToolCalls`, `maxRetries`, `maxInputBytes`, or `maxOutputBytes`, or give the run less work."},RUNTIME_EXECUTION_BUDGET_LIMIT_INVALID:{why:()=>`[vitehub] Execution budget limits must be finite non-negative numbers.`,fix:"Set each limit of `executionBudget`, such as `maxToolCalls` or `maxOutputBytes`, to a finite number of 0 or more, or remove it."},RUNTIME_HIDDEN_ERROR:{why:()=>`The server failed. The error is not a ViteHub error, so its message and stack stay on the server.`,fix:"Read the server logs for the error. To send a code, a why, and a fix to the client, return a `ResultError` from `defineErrors()` and pass it to `toResponse()`."},RUNTIME_SERIALIZED_RESPONSE_INVALID:{why:()=>`Invalid serialized Response`,fix:"Pass `deserializeResponse()` the record that `serializeResponse()` returned, unchanged. Check it first with `isSerializedResponse()`."}}}),d=/* @__PURE__ */ new Set([`localhost`,`127.0.0.1`,`[::1]`]),f=`https://console.invalid`;function p(e){if(!e.startsWith(`/`)||e.startsWith(`//`)||e.includes(`\\`))return;let t;try{t=new URL(e,f)}catch{return}if(t.origin!==f)return;let n=t.pathname.replace(/^\/_vitehub(?=\/|$)/,``)||`/`;if(!n.startsWith(`//`))return`${n}${t.search}${t.hash}`}function m(e){let t;try{t=new URL(e)}catch{return}if(t.username||t.password||t.protocol!==`https:`&&!(t.protocol===`http:`&&d.has(t.hostname)))return;let n=t.pathname.search(/\/_vitehub(?=\/|$)/),r=(n===-1?t.pathname:t.pathname.slice(0,n)).replace(/\/+$/,``);return`${t.origin}${r}`}function h(e,t,n=`https://console.vitehub.dev`){let r=m(e);if(!r)throw u.RUNTIME_CONSOLE_PROJECT_URL_INVALID({value:e});let i=p(t);if(!i)throw u.RUNTIME_CONSOLE_PATH_INVALID({value:t});let a=new URL(`/open`,n);return a.search=new URLSearchParams({project:r,path:i}).toString(),a.href}function g(e){let t=e.lastIndexOf(`/_vitehub/console/assets/`);return t>0?e.slice(0,t):``}function _(e){let t=/* @__PURE__ */ new Map;for(let n of e){let e=c(n);e&&t.set(`${e.collection}\0${e.id??``}`,{collection:e.collection,id:e.id})}let n=[...t.values()],r=n.filter(e=>e.id!==void 0),i=n.length===1?n[0]:r.length===1?r[0]:void 0;return i?`/content/${[i.collection,...i.id?.split(`/`)??[]].map(encodeURIComponent).join(`/`)}`:`/`}function v(e,t,n=[]){try{return h(`${e}${t}`,_(n))}catch{return}}const y=({bar:e,tool:t,onOpen:n})=>{let r=g(new URL(import.meta.url).pathname);if(!v(location.origin,r))return;let i=e.attachShadow({mode:`open`}),a=document.createElement(`style`);a.textContent=`button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:var(--vitehub-pill-justify,center);gap:4px;min-width:28px;height:28px;padding:0 8px;border-radius:8px;font:inherit;white-space:nowrap;color:var(--vitehub-pill-text);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition-property:background-color,color,scale;transition-duration:150ms;transition-timing-function:cubic-bezier(.23,1,.32,1)}
3
+ @media(hover:hover){button:where(:not(:disabled):hover){background:var(--vitehub-pill-hover);color:var(--vitehub-pill-strong)}}
4
+ button:where(:not(:disabled):active){scale:.96}
5
+ button[aria-pressed=true],button[aria-expanded=true]{background:var(--vitehub-pill-on);color:var(--vitehub-pill-on-text)}
6
+ :host([aria-busy=true]) button,button[aria-busy=true]{background:var(--vitehub-pill-on);color:var(--vitehub-pill-on-text);cursor:progress}
7
+ button:focus-visible{outline:2px solid var(--vitehub-pill-on);outline-offset:1px}
8
+ button svg{width:14px;height:14px;flex:none}
9
+ @media(any-pointer:coarse){button{min-width:44px;height:44px}}
10
+ @media(prefers-reduced-motion:reduce){button{transition:none}}`;let o=document.createElement(`button`);o.type=`button`,o.title=`Open this app in the ViteHub Console, in a new tab`,o.textContent=t.label,o.insertAdjacentHTML(`beforeend`,`<svg viewBox="0 0 24 24" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 7h10v10M7 17 17 7"/></svg>`);let s=()=>{let e=[...document.querySelectorAll(`[data-content-field]`)].map(e=>e.getAttribute(`data-content-field`)??``),t=v(location.origin,r,e);t&&window.open(t,`_blank`,`noopener`)};o.addEventListener(`click`,s),n(s),i.append(a,o)};export{y as default};
@@ -7,6 +7,7 @@
7
7
  "SKILL.md",
8
8
  "agents/openai.yaml",
9
9
  "references/agent-definitions.md",
10
+ "references/bundle.md",
10
11
  "references/capabilities-authority.md",
11
12
  "references/channels-triggers.md",
12
13
  "references/framework-composition.md",
@@ -9,7 +9,9 @@ Use one proof loop: orient, route, inspect the contract, build, and prove. Exact
9
9
 
10
10
  ## 1. Orient
11
11
 
12
- - Inspect the package manifest, lockfile, Vite or Nuxt config, server entry, and nearby project instructions.
12
+ - In an existing project, run `pnpm vitehub status --json` first. It parses the config without running it, so it works on a broken config. It names the framework, the host, each feature as `on`, `off`, or `unknown`, the missing packages with their fix, and the host link. In an empty folder, start with `pnpm dlx vite-hub catalog --json`, then create the project with `pnpm dlx vite-hub init`. Where a project exists but `vite-hub` is not installed yet, run `pnpm dlx vite-hub status --json`. No npm package is named `vitehub`, so `npx vitehub` fails. Use the package name `vite-hub`.
13
+ - Run `pnpm vitehub catalog --json` before you choose a feature or a host. Where `vite-hub` is not installed yet, use `pnpm dlx vite-hub catalog --json`. It lists each feature key, its packages, and how each host supports it (`native`, `explicit`, or `unsupported`), from the same catalog that the build checks. See [Read a project without loading it](https://vitehub.dev/raw/docs/cli/project.md#read-a-project-without-loading-it).
14
+ - Then read only what the two commands do not answer: the lockfile, the server entry, nearby project instructions, and config parts that `status` reports as `unknown` or `manual`.
13
15
  - Identify installed ViteHub packages and versions, package manager, framework, host target, and requested outcome.
14
16
  - Open `https://vitehub.dev/llms.txt`, then select the smallest raw Markdown page covering the primary behavior. Links inside references are selection menus; do not open every linked page.
15
17
 
@@ -21,49 +23,50 @@ Choose one primary lane. Server Primitives serve application behavior through Vi
21
23
 
22
24
  Read only the references whose conditions match, but read them before writing code:
23
25
 
24
- | Task condition | Required reference |
25
- | --- | --- |
26
- | New project, uncertain file layout, or cross-feature composition | [Project shapes](references/project-shapes.md) |
27
- | Released or `pkg.pr.new` installation, upgrade, or package mismatch | [Installed and preview contracts](references/preview-contract.md) |
28
- | Choosing between Server Primitives | [Server Primitives](references/server-primitives.md) |
29
- | Auth, sessions, or route protection | [Auth](references/primitives/auth.md) |
30
- | Blob uploads or object storage | [Blob](references/primitives/blob.md) |
31
- | Browser sessions or remote browser actions | [Browser](references/primitives/browser.md) |
32
- | Outbound application message delivery | [Channels](references/primitives/channels.md) |
33
- | OAuth or provider account access | [Connections](references/primitives/connections.md) |
34
- | Comark content, Markdown, or content queries | [Content](references/primitives/content.md) |
35
- | Relational data or Drizzle | [Database](references/primitives/database.md) |
36
- | Email or Markdown email templates | [Email](references/primitives/email.md) |
37
- | Public, server, secret, or provider-backed values | [Env](references/primitives/env.md) |
38
- | KV values, flags, cursors, or short-lived state | [KV](references/primitives/kv.md) |
39
- | Queue jobs and consumers | [Queue](references/primitives/queue.md) |
40
- | Atomic request budgets | [Rate Limit](references/primitives/rate-limit.md) |
41
- | Realtime collaboration | [Realtime](references/primitives/realtime.md) |
42
- | Isolated provider-backed task runs | [Sandbox Tasks](references/primitives/sandbox-task.md) |
43
- | Static cron schedules | [Schedule](references/primitives/schedule.md) |
44
- | Bounded shell commands | [Shell](references/primitives/shell.md) |
45
- | Read-only external files or resources | [Source](references/primitives/source.md) |
46
- | Durable long-running orchestration | [Workflow](references/primitives/workflow.md) |
47
- | Persistent files, Sources, snapshots, or write-back | [Workspace](references/primitives/workspace.md) |
48
- | Trusted-host or provider execution sessions | [Sandboxes](references/primitives/sandbox.md) |
49
- | Nitro cache storage | [Cache](references/primitives/cache.md) |
50
- | Markdown rendering with bindings | [Markdown Templates](references/primitives/markdown-template.md) |
51
- | Modify an existing framework integration; add Nitro or Nuxt; use generated types; configure a provider; or diagnose a framework-specific failure | [Framework composition](references/framework-composition.md) |
52
- | Agent Definition, Agent Driver, Agent Invocation, instructions, output, hooks, or Evals | [Agent Definitions and Drivers](references/agent-definitions.md) |
53
- | Workspace, Source, access scope, mounted files, or write-back | [Workspaces, Sources, and access](references/workspaces-sources-access.md) |
54
- | Agent Channel, Trigger, webhook admission, concurrency, or Agent delivery | [Channels and Triggers](references/channels-triggers.md) |
55
- | Capability, tool, secret, rate limit, telemetry, or other granted authority | [Capabilities and authority](references/capabilities-authority.md) |
56
- | Schedule, Workflow, orchestration retry, idempotency, or terminal state | [Schedules, Workflows, and Invocations](references/schedules-workflows-invocations.md) |
57
- | Sandbox, trusted host, isolation, required command, or deployment target | [Sandboxes and hosts](references/sandboxes-hosts.md) |
58
- | A proof has failed, generated state disagrees, or a runtime/host failure needs diagnosis | [Proof and recovery](references/proof-recovery.md) |
59
- | Looking for a complete public application pattern | [Project patterns](references/project-patterns.md) |
26
+ | Task condition | Required reference |
27
+ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
28
+ | New project, uncertain file layout, or cross-feature composition | [Project shapes](references/project-shapes.md) |
29
+ | Released or `pkg.pr.new` installation, upgrade, or package mismatch | [Installed and preview contracts](references/preview-contract.md) |
30
+ | Choosing between Server Primitives | [Server Primitives](references/server-primitives.md) |
31
+ | Auth, sessions, or route protection | [Auth](references/primitives/auth.md) |
32
+ | Blob uploads, direct uploads to storage, copies, or object storage | [Blob](references/primitives/blob.md) |
33
+ | Browser sessions or remote browser actions | [Browser](references/primitives/browser.md) |
34
+ | Outbound application message delivery | [Channels](references/primitives/channels.md) |
35
+ | OAuth or provider account access | [Connections](references/primitives/connections.md) |
36
+ | Comark content, Markdown, or content queries | [Content](references/primitives/content.md) |
37
+ | Relational data, Drizzle, Postgres replicas, seeds, or SQL from the CLI | [Database](references/primitives/database.md) |
38
+ | Email or Markdown email templates | [Email](references/primitives/email.md) |
39
+ | Public, server, secret, or provider-backed values | [Env](references/primitives/env.md) |
40
+ | KV values, flags, cursors, short-lived state, or a lock that runs a job once | [KV](references/primitives/kv.md) |
41
+ | Queue jobs and consumers | [Queue](references/primitives/queue.md) |
42
+ | Atomic request budgets | [Rate Limit](references/primitives/rate-limit.md) |
43
+ | Realtime collaboration | [Realtime](references/primitives/realtime.md) |
44
+ | Isolated provider-backed task runs | [Sandbox Tasks](references/primitives/sandbox-task.md) |
45
+ | Static cron schedules | [Schedule](references/primitives/schedule.md) |
46
+ | Bounded shell commands | [Shell](references/primitives/shell.md) |
47
+ | Read-only external files or resources | [Source](references/primitives/source.md) |
48
+ | Durable long-running orchestration | [Workflow](references/primitives/workflow.md) |
49
+ | Persistent files, Sources, snapshots, or write-back | [Workspace](references/primitives/workspace.md) |
50
+ | Trusted-host or provider execution sessions | [Sandboxes](references/primitives/sandbox.md) |
51
+ | Nitro cache storage, cache tags, or invalidation | [Cache](references/primitives/cache.md) |
52
+ | Markdown rendering with bindings | [Markdown Templates](references/primitives/markdown-template.md) |
53
+ | Modify an existing framework integration; add Nitro or Nuxt; use generated types; configure a provider; or diagnose a framework-specific failure | [Framework composition](references/framework-composition.md) |
54
+ | Agent Definition, Agent Driver, Agent Invocation, instructions, output, hooks, or Evals | [Agent Definitions and Drivers](references/agent-definitions.md) |
55
+ | Workspace, Source, access scope, mounted files, or write-back | [Workspaces, Sources, and access](references/workspaces-sources-access.md) |
56
+ | Agent Channel, Trigger, webhook admission, concurrency, or Agent delivery | [Channels and Triggers](references/channels-triggers.md) |
57
+ | Capability, tool, secret, rate limit, telemetry, or other granted authority | [Capabilities and authority](references/capabilities-authority.md) |
58
+ | Schedule, Workflow, orchestration retry, idempotency, or terminal state | [Schedules, Workflows, and Invocations](references/schedules-workflows-invocations.md) |
59
+ | Sandbox, trusted host, isolation, required command, host link, deploy, Console link, or deployed version | [Sandboxes and hosts](references/sandboxes-hosts.md) |
60
+ | Bundle size, startup cost, host size limits, why a package is in the output, or whether a change made the bundle smaller | [Bundle size and startup cost](references/bundle.md) |
61
+ | A proof has failed, generated state disagrees, or a runtime/host failure needs diagnosis | [Proof and recovery](references/proof-recovery.md) |
62
+ | Looking for a complete public application pattern | [Project patterns](references/project-patterns.md) |
60
63
 
61
64
  Routing is complete when every requested behavior has one primary lane and every matching reference has been read. Start with the smallest matching set, then add a cross-cutting reference when the task spans lanes.
62
65
 
63
66
  ## 3. Inspect the installed contract
64
67
 
65
68
  - Read each installed package's `package.json`, exports, relevant types, and generated declarations before writing imports or options.
66
- - For a fresh application, install `vite-hub` and use its root integration plus feature subpaths. Use direct owner packages only for a focused library, an unexported advanced subpath, or an installed older contract.
69
+ - For a fresh application, create it with `vitehub init` (see [Project shapes](references/project-shapes.md)), then use the root integration plus feature subpaths. Opt-in features such as Agent, Auth, Database, Schedule, Workspace, Realtime, Content, and Comments also need their owner package next to `vite-hub`. `vitehub add` installs it, `vitehub status` lists any that is missing, and the build error names it. Use other direct owner packages only for a focused library, an unexported advanced subpath, or an installed older contract.
67
70
  - When docs, examples, and installed artifacts disagree, implement the installed artifacts and record the mismatch. Treat project examples as patterns whose imports must be revalidated.
68
71
 
69
72
  Contract inspection is complete when every planned package, import, option, generated path, and runtime entry exists in the installed graph; no syntax is inferred only from memory.
@@ -73,10 +76,18 @@ Contract inspection is complete when every planned package, import, option, gene
73
76
  Before editing, map every requested behavior to:
74
77
 
75
78
  | Behavior | Package owner | Source file | Runtime path | Authority or persistence | Proof |
76
- | --- | --- | --- | --- | --- | --- |
79
+ | -------- | ------------- | ----------- | ------------ | ------------------------ | ----- |
77
80
 
78
81
  Then implement the smallest coherent set: manifest and lockfile, framework integration, discovered Definition where needed, application or orchestration entrypoint, and proof surface. Keep application authority in application code; grant an Agent access only through visible Capabilities, Workspace rules, Sources, or Channels.
79
82
 
83
+ Turn features on with `vitehub add <feature>`, not by editing `vitehub({...})` by hand. It checks the host against the catalog, installs the owner packages, creates requested starter files, and edits the config last. Package installs are not rolled back: a failed install can leave the manifest and lockfile changed without enabling the feature. See [Add a feature](https://vitehub.dev/raw/docs/cli/project.md#add-a-feature).
84
+
85
+ - Run `--dry-run` first and read the diff, then apply with `--yes`. Without a terminal, `add` writes nothing until it gets `--yes`.
86
+ - Pass `--name <name>` for a starter Definition, such as `server/queues/<name>.ts`. It never overwrites a file.
87
+ - Pass provider options as `--option key=value`, such as `--option email.driver=resend`.
88
+ - Follow the exit code. `0`: done or unchanged. `2`: input is needed; run the `rerun` command it prints, or supply the options listed in `missing` with their `choices`. `3`: a conflict; read the diagnostic code. For `SETUP_FILE_EXISTS`, choose another `--name`, or edit the existing file by hand and then rerun `vitehub add <feature> --yes` without `--name`, keeping the required `--option` values, to install packages and enable the feature. For `SETUP_CONFIG_MANUAL`, paste the printed `snippet` into the `vitehub()` options by hand. For an unsupported feature, choose another host or report the boundary, because a hand-written key does not give the host the feature. `4` (`SETUP_STALE_PLAN`): the config changed during installation; discard the plan and rerun against the current config.
89
+ - Turn a feature off with `vitehub remove <feature>`. Run `--dry-run` first and read the plan, then apply with `--yes`. It deletes the config key, deletes starter files that are still unchanged, and uninstalls packages that nothing else uses. Exit `3` means another feature implies it (`SETUP_FEATURE_IMPLIED`, see `impliedBy`) or the app still uses it (`SETUP_FEATURE_IN_USE`): `references` lists each file and line, including starter files you edited. Delete or move those files and run it again. Pass `--force` only when the developer wants the feature off and the files kept. `remove` never deletes host resources, local data, or the host link; `nextSteps` names the host resources to delete by hand. See [Remove a feature](https://vitehub.dev/raw/docs/cli/project.md#remove-a-feature).
90
+
80
91
  Building is complete when every requested behavior has an implemented row and no placeholder, unused integration, implicit authority, or unowned persistence remains.
81
92
 
82
93
  ## 5. Prove and repair
@@ -29,7 +29,7 @@ Keep repository-wide guidance in repository files, Agent behavior in Driver Inst
29
29
 
30
30
  ## Invocation boundary
31
31
 
32
- Pass invocation input separately from trusted runtime context. Keep run identity, memoization, wait-until behavior, actor/admission context, and runtime selection explicit where the chosen invocation helper requires them.
32
+ Pass invocation input separately from trusted runtime context. Keep run identity, memoization, wait-until behavior, invoker/admission context, and runtime selection explicit where the chosen invocation helper requires them.
33
33
 
34
34
  ## Proof
35
35
 
@@ -0,0 +1,57 @@
1
+ # Bundle size and startup cost
2
+
3
+ Use this when a task asks how big the app is, why the server starts slowly or hits a host size limit, why a page loads too much JavaScript, or why a package is in the output.
4
+
5
+ ## Measure
6
+
7
+ 1. Set `bundle: true` in `vitehub()` (`vite.config.ts`) or in `vitehub` (`nuxt.config.ts`). It is off by default.
8
+ 2. Run a production build: `vite build` or `nuxt build`. Development builds are not measured.
9
+ 3. Run `vitehub bundle`. It reads `.vitehub/bundle/` and needs no dev server.
10
+
11
+ `vitehub bundle` shows the client and the server separately. For each, it shows the JavaScript bytes, the gzip bytes, the startup code, and the largest groups. A group is a ViteHub package (`@vite-hub/agent`, `vite-hub/console`), a framework package, a dependency, an app folder (`server/api`), or generated code (`.vitehub`, `.nuxt`, `#nitro/virtual`). In Nuxt 5, the server part already contains the SSR build. Do not read Vite environments one by one.
12
+
13
+ - **Server startup** is the code that loads before the first request: the entry and every file that it imports statically. It decides cold start time and Worker startup limits.
14
+ - **Client startup** combines the startup code of all page entries, counting shared files once. A single page in a multi-page app can load less.
15
+
16
+ ## Explain
17
+
18
+ `vitehub bundle why <package|file|group>` prints the bytes on each side, whether the target loads at startup, and the shortest import chain from the entry. Read the chain from the end: the first step that is app code or a ViteHub feature is usually the one to change. For example, change a static import to `import()` or turn the feature off.
19
+
20
+ ## Routes
21
+
22
+ Static aliases load the same files as their canonical route. Lookup follows Nuxt's case and trailing-slash settings. When a custom `app/router.options.ts` file is present (also from a layer or module), route estimates are unavailable because that file can change routes at runtime. Page redirects also make route estimates unavailable because the destination can change before rendering. The CLI explains this and JSON includes `client.routesUnavailable`; bundle totals and module explanations still work.
23
+
24
+ In a Nuxt app, `vitehub bundle` also lists the largest page routes. For each route it gives the JavaScript of a first visit and the part of it that only page files add. `vitehub bundle why /docs/kv` takes a URL path, finds the route that renders it, such as `/docs/:slug()`, and prints:
25
+
26
+ - the files that the browser loads on a first visit: the startup files, and the files of the layout and the pages with every file that they import statically,
27
+ - the CSS of those files,
28
+ - the largest modules in the page files. These are what the route adds. Run `vitehub bundle why <module>` on one to get its import chain.
29
+
30
+ Code that the page loads later with `import()` does not count. The layout comes from a static `layout` in `definePageMeta`, or is `default`, and counts only when the startup or page files load `NuxtLayout`. If Nuxt does not expose that component's file, layouts are omitted. A layout set at runtime, conditional rendering of `NuxtLayout`, route middleware, and prefetching are not counted: Nuxt's `<link rel="prefetch">` files and the pages of visible `<NuxtLink>`s load at low priority after the page. Nuxt can inline some CSS in the HTML, so `cssBytes` is an upper bound for the CSS files the browser fetches. `--json` gives the routes in `client.routes`.
31
+
32
+ Use `--json` on both commands when you compare numbers or write them into a report.
33
+
34
+ ## Act on findings
35
+
36
+ `vitehub bundle` ends with its checks. `--json` gives them in `findings`. Each finding has `code`, `severity`, `why`, `fix`, `docs`, `bytes`, and `chain`, the import chain from the server entry. The checks report only what the build proves: a feature declares from its resolved configuration what the server never runs, and a host limit comes from the host's documentation.
37
+
38
+ - `BUNDLE_STARTUP_UNUSED` (warning): a package loads at server startup, and a feature of this build never runs it there. Example: `@libsql/client` on a Cloudflare app where every Database is D1. Read `chain` from the end and update the ViteHub package that imports it. Independent imports from app code or other packages suppress the finding, because the feature cannot prove what those consumers need.
39
+ - `BUNDLE_HOST_SIZE_LIMIT` (error): the server JavaScript is over the host limit, so the deployment fails. Cloudflare accepts a Worker up to 64 MiB before compression. Start with the largest groups.
40
+
41
+ An error makes `vitehub bundle` exit with 1, so CI can run `vite build && vitehub bundle`. A warning keeps exit code 0. After a fix, build again and check that the finding is gone.
42
+
43
+ ## Prove a change
44
+
45
+ Save the report before you change the code, then compare after the next build:
46
+
47
+ ```sh
48
+ nuxt build # or vite build, with bundle: true
49
+ vitehub bundle --json > .vitehub/bundle-before.json
50
+ # change the code
51
+ nuxt build
52
+ vitehub bundle --against .vitehub/bundle-before.json
53
+ ```
54
+
55
+ `--against` prints, for the client and the server, the bytes and gzip bytes before and after, the same for the startup code, and each group that grew, shrank, was added, or was removed, with its total and startup delta. Groups that did not change are not shown. Add `--json` to get the same data. `--against` also reads a copy of `.vitehub/bundle/` or the project root of another checkout that has one.
56
+
57
+ If the output says that both reports are from the same build, you did not build again after the change. Report the side and startup deltas and the groups that changed. When you removed a package, also give the import chain from `vitehub bundle why <package>` on the old build.
@@ -15,7 +15,7 @@ Every Capability changes what an Agent may observe or do. For each one, name:
15
15
 
16
16
  - operations exposed to the model;
17
17
  - data and secret sources;
18
- - actor, scope, rate, and policy checks;
18
+ - Invoker, scope, rate, and policy checks;
19
19
  - persistence or external side effects;
20
20
  - artifacts or traces available for inspection.
21
21
 
@@ -2,8 +2,9 @@
2
2
 
3
3
  Use this for Agent Channels and Triggers: GitHub, Gmail, Teams, Telegram,
4
4
  Discord, web chat, custom webhooks, message history, admission, concurrency,
5
- or Agent delivery effects. Outbound application message delivery uses the
6
- separate [`@vite-hub/channels`](primitives/channels.md) primitive.
5
+ or Agent delivery effects. Every Channel is one file in `server/channels` with
6
+ `defineChannel()` from [`vite-hub/channels`](primitives/channels.md), for both
7
+ directions; an Agent lists it by name with `defineAgent({ channels: ['name'] })`.
7
8
 
8
9
  ## Select one current page
9
10
 
@@ -11,7 +12,7 @@ Open [Channels](https://vitehub.dev/raw/docs/agents/channels.md) for conversatio
11
12
 
12
13
  ## Composition
13
14
 
14
- A Channel adapts an external conversation surface; a Trigger admits an external event into an Agent Invocation. Keep webhook verification, actor/admission rules, history/session identity, concurrency, input commands, and delivery behavior explicit.
15
+ A Channel adapts an external conversation surface; a Trigger admits an external event into an Agent Invocation. Keep webhook verification, invoker/admission rules, history/session identity, concurrency, input commands, and delivery behavior explicit.
15
16
 
16
17
  Use official Channel helpers when the installed contract provides them. Create a custom Trigger only when the external event is not a conversation adapter or the official boundary cannot represent the source.
17
18
 
@@ -8,7 +8,7 @@ Start with [Vite Integrations and Provider Output](https://vitehub.dev/raw/docs/
8
8
 
9
9
  ## Current application contract
10
10
 
11
- Fresh apps install `vite-hub`, register `vitehub()` from the root, and use feature subpaths for runtime APIs. Direct `hubX()` integrations belong to an installed owner-package contract or deliberate advanced composition.
11
+ Fresh apps install `vite-hub`, register `vitehub()` from the root, and use feature subpaths for runtime APIs. Turn features on and set provider options with `vitehub add <feature> --option key=value`, because it checks the host and edits object-literal options in a `vitehub({...})` call, a Nuxt `vite-hub/nuxt` module tuple, or the top-level Nuxt `vitehub` key. Edit the config by hand when `add` exits with `3` and prints a `snippet`, or when the options are an expression that `vitehub status` reports as `manual`. Direct `hubX()` integrations belong to an installed owner-package contract or deliberate advanced composition.
12
12
 
13
13
  For Vite plus Nitro, keep ordering explicit:
14
14
 
@@ -18,7 +18,7 @@ vitehub(...)
18
18
  nitro(...)
19
19
  ```
20
20
 
21
- For Nuxt, use documented modules or the Vite extension point supported by the installed packages. Do not reproduce app-local aliases or output rewrites from project examples without a source-backed need.
21
+ For Nuxt, register `vite-hub/nuxt` and turn features on under the `vitehub` key, for example `vitehub: { database: true, kv: true }`. A Definition file turns its feature on without a key, such as `server/auth.ts` or a file in `server/schedules/`; set the key to `false` to keep it off. It is the only Nuxt module for ViteHub primitives. Owner-package Nuxt entries such as `@vite-hub/auth/nuxt` are internal; do not add them to `modules`. Do not reproduce app-local aliases or output rewrites from project examples without a source-backed need.
22
22
 
23
23
  ## Generated state
24
24