vite-hub 0.4.1 → 0.5.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 (502) hide show
  1. package/README.md +38 -14
  2. package/dist/_internal/runtime/browser-errors.d.ts +12 -4
  3. package/dist/_internal/runtime/browser-errors.js +69 -27
  4. package/dist/_internal/runtime/redirects.d.ts +1 -2
  5. package/dist/_internal/runtime/redirects.js +2 -3
  6. package/dist/_internal/runtime/request-policy.d.ts +11 -2
  7. package/dist/_internal/runtime/request-policy.js +25 -6
  8. package/dist/_internal/runtime/security.d.ts +1 -2
  9. package/dist/_internal/runtime/security.js +16 -3
  10. package/dist/{access-BDST818p.js → access-BBHk9b5P.js} +30 -20
  11. package/dist/{access-policy-DjBKLo3c.js → access-policy-BM48XstY.js} +5 -6
  12. package/dist/{access-policy-CGXhO3Ee.d.ts → access-policy-CUbJLvlR.d.ts} +4 -8
  13. package/dist/{account-BnOAU055.d.ts → account-CoAO1F8G.d.ts} +9 -7
  14. package/dist/agent/invocations/postgres.d.ts +1 -0
  15. package/dist/agent/invocations/postgres.js +2 -0
  16. package/dist/{agent-invocations.post-CcPvfA0n.js → agent-invocations.post-BAC1aHnG.js} +16 -18
  17. package/dist/agents-BClUWOj7.js +1 -0
  18. package/dist/{agents-BDeazoAW.js → agents-Cz_uhhov.js} +4 -5
  19. package/dist/{agents-C94A4N9u.d.ts → agents-Gyw4VKPt.d.ts} +0 -2
  20. package/dist/auth/server.js +1 -2
  21. package/dist/{auth-BZOy7obk.d.ts → auth-CeKxL2xp.d.ts} +4 -8
  22. package/dist/{auth-operations-GcQk0O0X.js → auth-operations-arLIY2_2.js} +1 -2
  23. package/dist/{auth-types-CyqhWvYF.d.ts → auth-types-B4mq4YhK.d.ts} +1 -4
  24. package/dist/bin.js +34 -23
  25. package/dist/blob/nuxt-image.js +1 -2
  26. package/dist/{blob-CFLwMsjH.d.ts → blob-_TtxDb-t.d.ts} +1 -3
  27. package/dist/{blob-CpvlM8jp.js → blob-eH6j0AQj.js} +5 -6
  28. package/dist/browser-error-limits-B0yS95zt.js +24 -0
  29. package/dist/cache/operations.d.ts +2 -4
  30. package/dist/cache/operations.js +3 -4
  31. package/dist/cache.d.ts +1 -3
  32. package/dist/cache.js +2 -3
  33. package/dist/choices/testing.d.ts +1 -0
  34. package/dist/choices/testing.js +2 -0
  35. package/dist/{cli-config-wxKjF2Y0.js → cli-config-BX8H4ZCo.js} +12 -5
  36. package/dist/cli-config-DgpmE_7z.js +1 -0
  37. package/dist/cloudflare-app-types.d.ts +18 -0
  38. package/dist/{cloudflare-env-lookup-DKXdr4P_.js → cloudflare-env-lookup-DcN7pGlv.js} +1 -2
  39. package/dist/cms.js +1 -2
  40. package/dist/console/auth-types.d.ts +1 -1
  41. package/dist/console/auth.d.ts +1 -3
  42. package/dist/console/auth.js +2 -3
  43. package/dist/console/runtime/auth-operations.d.ts +1 -3
  44. package/dist/console/runtime/auth-operations.js +1 -2
  45. package/dist/console/runtime/client/account-views.d.ts +1 -3
  46. package/dist/console/runtime/client/account-views.js +1 -2
  47. package/dist/console/runtime/client/account.d.ts +1 -1
  48. package/dist/console/runtime/client/account.js +36 -48
  49. package/dist/console/runtime/client/add-primitive.ts +2 -2
  50. package/dist/console/runtime/client/appearance.d.ts +1 -2
  51. package/dist/console/runtime/client/appearance.js +1 -2
  52. package/dist/console/runtime/client/blob-media.d.ts +2 -4
  53. package/dist/console/runtime/client/blob-media.js +5 -6
  54. package/dist/console/runtime/client/comment-thread.d.ts +1 -3
  55. package/dist/console/runtime/client/comment-thread.js +11 -5
  56. package/dist/console/runtime/client/content-heads.d.ts +1 -2
  57. package/dist/console/runtime/client/content-heads.js +2 -3
  58. package/dist/console/runtime/client/documents.d.ts +2 -2
  59. package/dist/console/runtime/client/documents.js +1 -2
  60. package/dist/console/runtime/client/editor.d.ts +3 -5
  61. package/dist/console/runtime/client/editor.js +1 -2
  62. package/dist/console/runtime/client/env-groups.d.ts +1 -3
  63. package/dist/console/runtime/client/env-groups.js +1 -2
  64. package/dist/console/runtime/client/env-status.d.ts +1 -3
  65. package/dist/console/runtime/client/env-status.js +1 -2
  66. package/dist/console/runtime/client/format.d.ts +1 -3
  67. package/dist/console/runtime/client/format.js +1 -2
  68. package/dist/console/runtime/client/invocation-deletion.d.ts +1 -2
  69. package/dist/console/runtime/client/invocation-deletion.js +1 -2
  70. package/dist/console/runtime/client/invocation.d.ts +1 -2
  71. package/dist/console/runtime/client/invocation.js +4 -5
  72. package/dist/console/runtime/client/live.d.ts +2 -4
  73. package/dist/console/runtime/client/live.js +1 -2
  74. package/dist/console/runtime/client/mcp-client.d.ts +6 -4
  75. package/dist/console/runtime/client/mcp-client.js +12 -5
  76. package/dist/console/runtime/client/media-library.d.ts +1 -1
  77. package/dist/console/runtime/client/media-library.js +1 -2
  78. package/dist/console/runtime/client/media-uploads.d.ts +2 -4
  79. package/dist/console/runtime/client/media-uploads.js +2 -3
  80. package/dist/console/runtime/client/media.d.ts +1 -1
  81. package/dist/console/runtime/client/media.js +1 -2
  82. package/dist/console/runtime/client/operation-view.d.ts +2 -4
  83. package/dist/console/runtime/client/operation-view.js +4 -5
  84. package/dist/console/runtime/client/presence.d.ts +2 -4
  85. package/dist/console/runtime/client/presence.js +1 -2
  86. package/dist/console/runtime/client/preview.d.ts +1 -3
  87. package/dist/console/runtime/client/preview.js +1 -2
  88. package/dist/console/runtime/client/problem.d.ts +2 -4
  89. package/dist/console/runtime/client/problem.js +3 -4
  90. package/dist/console/runtime/client/project-link.d.ts +2 -2
  91. package/dist/console/runtime/client/project-link.js +1 -2
  92. package/dist/console/runtime/client/project-session.d.ts +19 -10
  93. package/dist/console/runtime/client/project-session.js +1 -723
  94. package/dist/console/runtime/client/project.d.ts +1 -3
  95. package/dist/console/runtime/client/project.js +1 -2
  96. package/dist/console/runtime/client/projects.d.ts +1 -1
  97. package/dist/console/runtime/client/projects.js +1 -2
  98. package/dist/console/runtime/client/publish.d.ts +2 -4
  99. package/dist/console/runtime/client/publish.js +1 -2
  100. package/dist/console/runtime/client/rate-limit.d.ts +1 -3
  101. package/dist/console/runtime/client/rate-limit.js +3 -4
  102. package/dist/console/runtime/client/read-only.d.ts +2 -4
  103. package/dist/console/runtime/client/read-only.js +2 -3
  104. package/dist/console/runtime/client/request.d.ts +2 -70
  105. package/dist/console/runtime/client/request.js +1 -2
  106. package/dist/console/runtime/client/route-query.d.ts +4 -5
  107. package/dist/console/runtime/client/route-query.js +1 -2
  108. package/dist/console/runtime/client/schedule-run.d.ts +1 -3
  109. package/dist/console/runtime/client/schedule-run.js +3 -4
  110. package/dist/console/runtime/client/schema-form.d.ts +1 -1
  111. package/dist/console/runtime/client/schema-form.js +1 -2
  112. package/dist/console/runtime/client/sections.d.ts +1 -1
  113. package/dist/console/runtime/client/sections.js +1 -2
  114. package/dist/console/runtime/client/site-access.d.ts +41 -10
  115. package/dist/console/runtime/client/site-access.js +157 -28
  116. package/dist/console/runtime/client/stored.d.ts +1 -3
  117. package/dist/console/runtime/client/stored.js +1 -2
  118. package/dist/console/runtime/client/ticket.d.ts +1 -1
  119. package/dist/console/runtime/client/ticket.js +1 -2
  120. package/dist/console/runtime/client/toast.d.ts +1 -3
  121. package/dist/console/runtime/client/toast.js +1 -2
  122. package/dist/console/runtime/client/workflow.d.ts +1 -3
  123. package/dist/console/runtime/client/workflow.js +3 -4
  124. package/dist/console/runtime/components/console-account-api-keys.vue +4 -4
  125. package/dist/console/runtime/components/console-account-home.vue +230 -51
  126. package/dist/console/runtime/components/console-account-link.vue +8 -5
  127. package/dist/console/runtime/components/console-account-setup.vue +10 -7
  128. package/dist/console/runtime/components/console-account-shell.vue +13 -19
  129. package/dist/console/runtime/components/console-account-unlink.vue +2 -3
  130. package/dist/console/runtime/components/console-app-settings.vue +8 -2
  131. package/dist/console/runtime/components/console-app.vue +1 -10
  132. package/dist/console/runtime/components/console-auth-activity.vue +2 -2
  133. package/dist/console/runtime/components/console-auth-chart.vue +1 -1
  134. package/dist/console/runtime/components/console-auth-overview.vue +1 -1
  135. package/dist/console/runtime/components/console-auth.vue +4 -4
  136. package/dist/console/runtime/components/console-comment-thread.vue +1 -1
  137. package/dist/console/runtime/components/console-definitions.vue +4 -4
  138. package/dist/console/runtime/components/console-document-dashboard.vue +2 -2
  139. package/dist/console/runtime/components/console-document-list.vue +2 -2
  140. package/dist/console/runtime/components/console-document-settings.vue +1 -1
  141. package/dist/console/runtime/components/console-env.vue +3 -3
  142. package/dist/console/runtime/components/console-home.vue +220 -311
  143. package/dist/console/runtime/components/console-hosted-comments-embed.vue +106 -0
  144. package/dist/console/runtime/components/console-loading.vue +1 -1
  145. package/dist/console/runtime/components/console-mcp-callback.vue +6 -1
  146. package/dist/console/runtime/components/console-mcp-connection.vue +3 -3
  147. package/dist/console/runtime/components/console-mcp-items.vue +4 -17
  148. package/dist/console/runtime/components/console-media-browser.vue +20 -30
  149. package/dist/console/runtime/components/console-media-crops.vue +3 -2
  150. package/dist/console/runtime/components/console-media-uploads.vue +11 -7
  151. package/dist/console/runtime/components/console-page-toolbar.vue +5 -10
  152. package/dist/console/runtime/components/console-schema-list.vue +85 -31
  153. package/dist/console/runtime/components/console-search-palette.vue +14 -5
  154. package/dist/console/runtime/components/console-section.vue +2 -1
  155. package/dist/console/runtime/components/console-session-inspector.vue +5 -0
  156. package/dist/console/runtime/components/console-session.css +8 -2
  157. package/dist/console/runtime/components/console-settings-value.vue +4 -5
  158. package/dist/console/runtime/components/console-sidebar.vue +9 -8
  159. package/dist/console/runtime/components/console-site.vue +36 -15
  160. package/dist/console/runtime/components/console-stat-grid.vue +3 -2
  161. package/dist/console/runtime/components/console-toaster.vue +3 -2
  162. package/dist/console/runtime/components/console-usage-chart.vue +1 -1
  163. package/dist/console/runtime/components/console-usage.vue +36 -18
  164. package/dist/console/runtime/components/invocation/internal/brand-icons.ts +10 -0
  165. package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +6 -2
  166. package/dist/console/runtime/components/invocation/invocation.css +4 -27
  167. package/dist/console/runtime/console-route.d.ts +1 -3
  168. package/dist/console/runtime/console-route.js +1 -2
  169. package/dist/console/runtime/definitions.d.ts +1 -1
  170. package/dist/console/runtime/definitions.js +1 -2
  171. package/dist/console/runtime/diagnostics.ts +8 -1
  172. package/dist/console/runtime/mcp-client.d.ts +1 -1
  173. package/dist/console/runtime/mcp-client.js +1 -2
  174. package/dist/console/runtime/page/loader.js +45 -52
  175. package/dist/console/runtime/page-tool/account.js +26 -0
  176. package/dist/console/runtime/page-tool/page-tool.js +2 -3
  177. package/dist/console/runtime/public/skills/index.json +1 -1
  178. package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -7
  179. package/dist/console/runtime/public/skills/vitehub/agents/openai.yaml +1 -1
  180. package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +1 -1
  181. package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +1 -1
  182. package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +1 -1
  183. package/dist/console/runtime/rpc.d.ts +1 -1
  184. package/dist/console/runtime/rpc.js +1 -2
  185. package/dist/console/runtime/sections.d.ts +1 -1
  186. package/dist/console/runtime/sections.js +1 -2
  187. package/dist/console/runtime/server/access-policy.d.ts +1 -1
  188. package/dist/console/runtime/server/access-policy.js +1 -2
  189. package/dist/console/runtime/server/agents.get.d.ts +2 -3
  190. package/dist/console/runtime/server/agents.get.js +3 -4
  191. package/dist/console/runtime/server/auth.d.ts +1 -1
  192. package/dist/console/runtime/server/auth.js +4 -5
  193. package/dist/console/runtime/server/blob.d.ts +1 -1
  194. package/dist/console/runtime/server/blob.js +1 -2
  195. package/dist/console/runtime/server/channel-replay.d.ts +3 -5
  196. package/dist/console/runtime/server/channel-replay.js +7 -7
  197. package/dist/console/runtime/server/database.d.ts +1 -1
  198. package/dist/console/runtime/server/database.get.d.ts +2 -3
  199. package/dist/console/runtime/server/database.get.js +4 -5
  200. package/dist/console/runtime/server/database.js +1 -2
  201. package/dist/console/runtime/server/definitions.d.ts +1 -1
  202. package/dist/console/runtime/server/definitions.get.d.ts +4 -6
  203. package/dist/console/runtime/server/definitions.get.js +5 -6
  204. package/dist/console/runtime/server/definitions.js +1 -2
  205. package/dist/console/runtime/server/development.d.ts +1 -1
  206. package/dist/console/runtime/server/development.js +1 -2
  207. package/dist/console/runtime/server/documents.d.ts +1 -1
  208. package/dist/console/runtime/server/documents.js +2 -2
  209. package/dist/console/runtime/server/env.d.ts +1 -3
  210. package/dist/console/runtime/server/env.get.d.ts +2 -4
  211. package/dist/console/runtime/server/env.get.js +7 -8
  212. package/dist/console/runtime/server/env.js +1 -2
  213. package/dist/console/runtime/server/invocation-capabilities.get.d.ts +1 -3
  214. package/dist/console/runtime/server/invocation-capabilities.get.js +4 -5
  215. package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -5
  216. package/dist/console/runtime/server/invocation-workspace.get.js +6 -7
  217. package/dist/console/runtime/server/invocation.get.d.ts +3 -5
  218. package/dist/console/runtime/server/invocation.get.js +8 -9
  219. package/dist/console/runtime/server/invocations.get.d.ts +1 -2
  220. package/dist/console/runtime/server/invocations.get.js +5 -6
  221. package/dist/console/runtime/server/logs.get.d.ts +3 -5
  222. package/dist/console/runtime/server/logs.get.js +7 -8
  223. package/dist/console/runtime/server/mcp-client-operations.d.ts +2 -4
  224. package/dist/console/runtime/server/mcp-client-operations.js +5 -7
  225. package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
  226. package/dist/console/runtime/server/operation-contributions.js +1 -2
  227. package/dist/console/runtime/server/page-auth.d.ts +2 -4
  228. package/dist/console/runtime/server/page-auth.js +1 -2
  229. package/dist/console/runtime/server/page-tool.d.ts +1 -1
  230. package/dist/console/runtime/server/page-tool.js +12 -7
  231. package/dist/console/runtime/server/page-tools-route.d.ts +2 -0
  232. package/dist/console/runtime/server/page-tools-route.js +4 -0
  233. package/dist/console/runtime/server/rpc.d.ts +3 -5
  234. package/dist/console/runtime/server/rpc.js +12 -13
  235. package/dist/console/runtime/server/runtime.d.ts +1 -1
  236. package/dist/console/runtime/server/runtime.js +1 -2
  237. package/dist/console/runtime/server/search.get.d.ts +1 -3
  238. package/dist/console/runtime/server/search.get.js +3 -5
  239. package/dist/console/runtime/server/sections.d.ts +5 -5
  240. package/dist/console/runtime/server/sections.get.d.ts +1 -1
  241. package/dist/console/runtime/server/sections.get.js +8 -9
  242. package/dist/console/runtime/server/sections.js +6 -6
  243. package/dist/console/runtime/server/setup.d.ts +5 -5
  244. package/dist/console/runtime/server/setup.js +5 -5
  245. package/dist/console/runtime/server/site-entry.d.ts +1 -3
  246. package/dist/console/runtime/server/site-entry.js +15 -10
  247. package/dist/console/runtime/server/site-session.d.ts +12 -22
  248. package/dist/console/runtime/server/site-session.js +1 -2
  249. package/dist/console/runtime/server/status.get.d.ts +2 -4
  250. package/dist/console/runtime/server/status.get.js +6 -7
  251. package/dist/console/runtime/server/tickets.d.ts +1 -1
  252. package/dist/console/runtime/server/tickets.js +1 -2
  253. package/dist/console/runtime/server/usage.get.d.ts +2 -4
  254. package/dist/console/runtime/server/usage.get.js +8 -9
  255. package/dist/console/runtime/server/workspace-files.get.d.ts +3 -5
  256. package/dist/console/runtime/server/workspace-files.get.js +4 -5
  257. package/dist/console/runtime/site-access.d.ts +1 -1
  258. package/dist/console/runtime/site-access.js +1 -2
  259. package/dist/console/runtime/skills.d.ts +1 -3
  260. package/dist/console/runtime/skills.js +1 -2
  261. package/dist/console/server.d.ts +7 -11
  262. package/dist/console/server.js +8 -8
  263. package/dist/console/ui.d.ts +0 -10
  264. package/dist/console/ui.js +32 -28
  265. package/dist/console-lazy-views-VEjcbL4Q.js +1 -0
  266. package/dist/{console-route-CBuqZ4wO.js → console-route-DbdnLkkF.js} +3 -4
  267. package/dist/console.d.ts +1 -3
  268. package/dist/console.js +1 -2
  269. package/dist/{database-DyPVMjp_.d.ts → database-CPjZ3L0g.d.ts} +1 -3
  270. package/dist/{database-BdOBjPkS.js → database-CrgBUdIx.js} +3 -4
  271. package/dist/definition-catalog-1xPPtzOx.js +137 -0
  272. package/dist/definition-catalog-M5ua7JRS.js +1 -0
  273. package/dist/{definitions-BW6SvmMM.js → definitions-BFYqXchw.js} +1 -2
  274. package/dist/{definitions-DB4LbZ7T.d.ts → definitions-ChvMnA1L.d.ts} +0 -2
  275. package/dist/{definitions-Dbgxfz3I.d.ts → definitions-DRkgHKmk.d.ts} +1 -3
  276. package/dist/{definitions-CNq_Shkh.js → definitions-M7i2p8SR.js} +5 -6
  277. package/dist/deployment-CURATxjG.js +229 -0
  278. package/dist/deployment-l7RuKdEp.js +1 -0
  279. package/dist/{dev-peer-am78OsHH.js → dev-peer-DBq-isgi.js} +7 -6
  280. package/dist/{development-zLxOp-AO.js → development-DD567hhJ.js} +2 -3
  281. package/dist/{development-W5EwONyL.d.ts → development-I40mfD7B.d.ts} +1 -3
  282. package/dist/{diagnostics-9U_fYxMy.js → diagnostics-B2cqlCSz.js} +3 -3
  283. package/dist/{diagnostics-CjGiniKb.d.ts → diagnostics-BXxPggRw.d.ts} +1 -3
  284. package/dist/docs/nuxt.js +1 -2
  285. package/dist/doctor.d.ts +0 -6
  286. package/dist/doctor.js +15078 -2377
  287. package/dist/{documents-CjJTCrY8.js → documents-BOYwZ5g4.js} +7 -8
  288. package/dist/{documents-qrHHqlNU.js → documents-Ck_iub9w.js} +4 -5
  289. package/dist/{documents-BASIRZ91.d.ts → documents-DxK0tdjA.d.ts} +3 -5
  290. package/dist/{documents-CboVhYFz.d.ts → documents-LtkKCxtu.d.ts} +4 -8
  291. package/dist/durability/operations.d.ts +2 -4
  292. package/dist/durability/operations.js +3 -4
  293. package/dist/email/vue.d.ts +1 -0
  294. package/dist/email/vue.js +2 -0
  295. package/dist/{entries-Bj-jPs_J.js → entries-UFs9n1MB.js} +2 -3
  296. package/dist/{env-Dg1I_DWr.js → env-D-wtSupz.js} +2 -3
  297. package/dist/{error-diagnostics-Bm3JKYjz.js → error-diagnostics-CBtvqI30.js} +33 -22
  298. package/dist/{operation-definition-a5keEpCd.js → error-diagnostics-kKXseq8d.js} +11 -169
  299. package/dist/error-diagnostics.ts +33 -23
  300. package/dist/{optional-owners-BNA2OX6z.js → features-BXRKlmtN.js} +57 -345
  301. package/dist/features-CD5i5I8V.js +1 -0
  302. package/dist/{format-BOYlanIZ.js → format-Df-bS4Ly.js} +1 -2
  303. package/dist/gateways/testing.d.ts +1 -0
  304. package/dist/gateways/testing.js +2 -0
  305. package/dist/github-login-W-vaahWP.js +6 -0
  306. package/dist/{host-CkL0jjBq.js → host-DeNPYIeV.js} +1 -2
  307. package/dist/{http-error-Bs6e8_-8.js → http-error-BorAxJYM.js} +1 -2
  308. package/dist/index.d.ts +2 -8
  309. package/dist/index.js +5 -6
  310. package/dist/inspect-CWwAuL-B.js +47 -0
  311. package/dist/internal/agent-invocations-libsql.js +1 -2
  312. package/dist/internal/disabled-redis-driver.d.ts +1 -3
  313. package/dist/internal/disabled-redis-driver.js +2 -3
  314. package/dist/internal/disabled-upstash-driver.d.ts +1 -3
  315. package/dist/internal/disabled-upstash-driver.js +2 -3
  316. package/dist/internal/test-loader.d.ts +1 -3
  317. package/dist/internal/test-loader.js +2 -3
  318. package/dist/internal/test-server.js +2 -3
  319. package/dist/{internal-BreyUsQ6.js → internal-0C_CC601.js} +1 -2
  320. package/dist/{internal-CO4OqqaS.d.ts → internal-CKocv79I.d.ts} +3 -7
  321. package/dist/{invariant-DolT9EEx.js → invariant-Dj2R1eMr.js} +1 -2
  322. package/dist/{invocation-page-undo-DIZ-s3xT.js → invocation-page-undo-BEi-rO0Q.js} +5 -6
  323. package/dist/{invocations-CK_-G540.js → invocations-8NThe8Bx.js} +5 -6
  324. package/dist/{limits-BUlwWYQE.js → limits-BLo31qDR.js} +1 -2
  325. package/dist/logs/client.d.ts +19 -0
  326. package/dist/logs/client.js +11 -0
  327. package/dist/logs/host.d.ts +2 -4
  328. package/dist/logs/host.js +1 -2
  329. package/dist/logs/memory.d.ts +1 -1
  330. package/dist/logs/memory.js +1 -2
  331. package/dist/logs/source.d.ts +1 -1
  332. package/dist/logs/source.js +1 -2
  333. package/dist/logs.d.ts +2 -2
  334. package/dist/logs.js +2 -2
  335. package/dist/{mcp-client-CTbTbn7d.js → mcp-client-Bkh-khvr.js} +1 -2
  336. package/dist/{mcp-client-By4zk0vU.js → mcp-client-DiObFpDS.js} +35 -22
  337. package/dist/{mcp-client-C_sEmyQw.d.ts → mcp-client-Q2XbUXuP.d.ts} +1 -4
  338. package/dist/{media-uKX4Wy-c.d.ts → media-C79RB1oH.d.ts} +0 -2
  339. package/dist/{media-BHpQ-4jw.js → media-CAKz9yrp.js} +8 -9
  340. package/dist/{media-library-NaOMBKWS.js → media-library-BDX89xXA.js} +5 -6
  341. package/dist/{media-library-D9ThbXqs.d.ts → media-library-DxGu6w9z.d.ts} +0 -2
  342. package/dist/{memory-DTmq-Z6x.js → memory-D3EJS_Bp.js} +21 -10
  343. package/dist/{memory-2bbl4hcV.d.ts → memory-GK5ZGWrp.d.ts} +1 -3
  344. package/dist/nuxt-server-auto-imports-4aT5BD4u.js +74 -0
  345. package/dist/{nuxt-server-imports-DH60Z7LA.js → nuxt-server-imports-BdJqiVhT.js} +10 -18
  346. package/dist/nuxt.d.ts +1 -3
  347. package/dist/nuxt.js +339 -189
  348. package/dist/{object-D8pRdprI.js → object-DRSmpe04.js} +1 -2
  349. package/dist/{operation-contributions-DpkO_iSU.d.ts → operation-contributions-BCcQVlGb.d.ts} +1 -3
  350. package/dist/{operation-contributions-BdS0z3tx.js → operation-contributions-D10pjkJF.js} +4 -5
  351. package/dist/operation-definition-DTpNvLd8.js +164 -0
  352. package/dist/{operation-registry-BogGwk_I.js → operation-registry-DfQbL7vE.js} +1 -2
  353. package/dist/{operation-rpc-DI9txNxK.js → operation-rpc-BMdfapja.js} +3 -4
  354. package/dist/{operations-EOdyctDc.js → operations-CD_mu_Ww.js} +86 -9
  355. package/dist/operations-D7ENc68Y.js +1 -0
  356. package/dist/{operations-B0689BG1.d.ts → operations-DgFhA1WE.d.ts} +8 -6
  357. package/dist/{operations-CWP9dF3i.js → operations-vRLiH7dh.js} +35 -46
  358. package/dist/optional-owners-DAfShdgV.js +353 -0
  359. package/dist/out-Cw5Tvr92.js +20989 -0
  360. package/dist/{owned-paths-BnjT0FhU.js → owned-paths-MjjDftBn.js} +1 -2
  361. package/dist/page/pill.iife.js +25 -27
  362. package/dist/{page-tool-CRCK1RHV.d.ts → page-tool-BUnUbuSy.d.ts} +6 -7
  363. package/dist/{page-tools-BkSSBFoi.js → page-tools-BQzwuAHD.js} +28 -12
  364. package/dist/{page-tools-sw4I-Nqx.d.ts → page-tools-UwsfvH-B.d.ts} +2 -4
  365. package/dist/{page-tools-shared-D3fFoEV2.js → page-tools-shared-hJcG_xk8.js} +8 -5
  366. package/dist/{inspect-CDw7e0vK.js → pathe.M-eThtNZ-D4EC7Wue.js} +2 -31
  367. package/dist/{plugins-BqAtIEX2.d.ts → plugins-BpiTVULl.d.ts} +252 -262
  368. package/dist/{plugins-B-DpgDPB.js → plugins-H6-MQrsn.js} +3483 -797
  369. package/dist/presets/workspace.js +1 -2
  370. package/dist/project-BxyyclTE.js +58 -0
  371. package/dist/{project-CufkVP1u.d.ts → project-DKBIHOf4.d.ts} +16 -4
  372. package/dist/{project-DlWTGB7h.js → project-DRC67Uiu.js} +1 -2
  373. package/dist/{project-link-D-6UefhA.js → project-link-CeS0T8Pr.js} +57 -9
  374. package/dist/{project-link-BuOzBH9f.d.ts → project-link-isfdRO3Q.d.ts} +42 -6
  375. package/dist/{project-root-v6ba4tn7.js → project-root-mAVQGZTX.js} +1 -2
  376. package/dist/project-session--GN7MduT.js +764 -0
  377. package/dist/{projects-CAcXztf4.js → projects-BRp0iseV.js} +1 -2
  378. package/dist/{projects-Ddvl9EJp.d.ts → projects-mgPxrKZr.d.ts} +0 -2
  379. package/dist/{registry-zw6aE2N9.js → registry-B8JE5NY-.js} +1 -2
  380. package/dist/{registry-CDKLACCZ.js → registry-CnPC-gNu.js} +1 -2
  381. package/dist/{request-D7h3SQ92.d.ts → request-BC_krbEr.d.ts} +2 -4
  382. package/dist/request-CJCPyu2B.d.ts +70 -0
  383. package/dist/{request-DbFfYmCu.js → request-CQ8TkHLh.js} +4 -5
  384. package/dist/{request-DE8w_cSM.js → request-Cl68STwT.js} +7 -8
  385. package/dist/request-origin-pzWr9UUu.js +37 -0
  386. package/dist/rolldown-runtime-DegdyBIC.js +25 -0
  387. package/dist/{route-query-CRVWXIrc.js → route-query-BWVl6ZO6.js} +4 -5
  388. package/dist/{rpc-DIUA61pv.js → rpc-D3tsx5lZ.js} +1 -2
  389. package/dist/{rpc-7nlHSv3y.d.ts → rpc-oijgKQtD.d.ts} +0 -2
  390. package/dist/{runtime-YLWfdrtO.js → runtime-CAbuQGMP.js} +3 -4
  391. package/dist/{runtime-DQuHg7OO.js → runtime-CRJsqVTa.js} +2 -3
  392. package/dist/{runtime-B_btezs1.d.ts → runtime-Cf8R1Ztr.d.ts} +0 -2
  393. package/dist/{runtime-DxfJOfCd.js → runtime-CyPZMiyK.js} +2 -3
  394. package/dist/{runtime-OsEDfbM9.js → runtime-F0CTqBFx.js} +5 -6
  395. package/dist/{runtime-feature-guard-B64MMW9I.js → runtime-feature-guard-DpUn4Oxc.js} +91 -10
  396. package/dist/scan-module-B1A24jqP.js +1 -0
  397. package/dist/{scan-module-Df58L_6T.js → scan-module-BfZvDBxb.js} +2 -4
  398. package/dist/{schema-form-C-fy3xaU.d.ts → schema-form-Bl79Bdm-.d.ts} +0 -2
  399. package/dist/{secret-Dy5uqvq9.js → secret-D2KL_o2h.js} +2 -3
  400. package/dist/{sections-Do7X4Nwt.d.ts → sections-0qrBvGbf.d.ts} +0 -4
  401. package/dist/{sections-C83x0slv.js → sections-BNTdIEJw.js} +2 -3
  402. package/dist/{sections-BogiCmtz.d.ts → sections-BTfWK14a.d.ts} +4 -6
  403. package/dist/{sections-DumoLKQN.js → sections-BiCOk9qP.js} +1 -2
  404. package/dist/sections-DAtgYMVz.d.ts +8 -0
  405. package/dist/{sections-et20h8w3.js → sections-HLxb9MrG.js} +14 -7
  406. package/dist/{sections.get-COiLcQ0P.d.ts → sections.get-CGmtYmfu.d.ts} +2 -4
  407. package/dist/seo/runtime.d.ts +2 -5
  408. package/dist/seo/runtime.js +3 -5
  409. package/dist/{seo-CtLywyRx.d.ts → seo-CgW5uI9L.d.ts} +0 -2
  410. package/dist/seo.d.ts +1 -1
  411. package/dist/seo.js +1 -2
  412. package/dist/{server-BRJE4t-W.js → server-DsOEa4_A.js} +5 -5
  413. package/dist/{setup-ZbA1by7W.d.ts → setup-Ca7jtBLS.d.ts} +8 -7
  414. package/dist/{setup-C-5nB7aY.js → setup-DQz_i-ee.js} +16 -5
  415. package/dist/{site-access-BmE8HGxs.js → site-access-1JIQjY11.js} +16 -16
  416. package/dist/{site-access-DxfdOel1.d.ts → site-access-CUXIbbbR.d.ts} +0 -2
  417. package/dist/{site-access-BycrwM2v.js → site-access-CmaZ-oaL.js} +1 -2
  418. package/dist/site-access-Cvmjb6aw.js +1 -0
  419. package/dist/{site-session-odJq1dYa.js → site-session-D36fr7Wf.js} +65 -40
  420. package/dist/skills/operations.d.ts +1 -5
  421. package/dist/skills/operations.js +4 -5
  422. package/dist/skills/vitehub/SKILL.md +142 -0
  423. package/dist/skills/vitehub/agents/openai.yaml +4 -0
  424. package/dist/skills/vitehub/references/agent-definitions.md +36 -0
  425. package/dist/skills/vitehub/references/bundle.md +57 -0
  426. package/dist/skills/vitehub/references/capabilities-authority.md +30 -0
  427. package/dist/skills/vitehub/references/channels-triggers.md +27 -0
  428. package/dist/skills/vitehub/references/framework-composition.md +29 -0
  429. package/dist/skills/vitehub/references/preview-contract.md +44 -0
  430. package/dist/skills/vitehub/references/primitives/auth.md +14 -0
  431. package/dist/skills/vitehub/references/primitives/blob.md +13 -0
  432. package/dist/skills/vitehub/references/primitives/browser.md +17 -0
  433. package/dist/skills/vitehub/references/primitives/cache.md +13 -0
  434. package/dist/skills/vitehub/references/primitives/channels.md +11 -0
  435. package/dist/skills/vitehub/references/primitives/connections.md +14 -0
  436. package/dist/skills/vitehub/references/primitives/content.md +13 -0
  437. package/dist/skills/vitehub/references/primitives/database.md +15 -0
  438. package/dist/skills/vitehub/references/primitives/email.md +11 -0
  439. package/dist/skills/vitehub/references/primitives/env.md +13 -0
  440. package/dist/skills/vitehub/references/primitives/kv.md +13 -0
  441. package/dist/skills/vitehub/references/primitives/markdown-template.md +13 -0
  442. package/dist/skills/vitehub/references/primitives/queue.md +14 -0
  443. package/dist/skills/vitehub/references/primitives/rate-limit.md +11 -0
  444. package/dist/skills/vitehub/references/primitives/realtime.md +19 -0
  445. package/dist/skills/vitehub/references/primitives/sandbox-task.md +11 -0
  446. package/dist/skills/vitehub/references/primitives/sandbox.md +13 -0
  447. package/dist/skills/vitehub/references/primitives/schedule.md +11 -0
  448. package/dist/skills/vitehub/references/primitives/shell.md +11 -0
  449. package/dist/skills/vitehub/references/primitives/source.md +11 -0
  450. package/dist/skills/vitehub/references/primitives/workflow.md +11 -0
  451. package/dist/skills/vitehub/references/primitives/workspace.md +11 -0
  452. package/dist/skills/vitehub/references/project-patterns.md +19 -0
  453. package/dist/skills/vitehub/references/project-shapes.md +81 -0
  454. package/dist/skills/vitehub/references/proof-recovery.md +31 -0
  455. package/dist/skills/vitehub/references/sandboxes-hosts.md +26 -0
  456. package/dist/skills/vitehub/references/schedules-workflows-invocations.md +28 -0
  457. package/dist/skills/vitehub/references/server-primitives.md +39 -0
  458. package/dist/skills/vitehub/references/workspaces-sources-access.md +26 -0
  459. package/dist/{skills-DdpSMiCI.js → skills-C1MaGEbO.js} +1 -2
  460. package/dist/skills.d.ts +1 -2
  461. package/dist/{skills.get-Bl8cBe8u.js → skills.get-DAooGWy5.js} +3 -4
  462. package/dist/skills.js +1 -2
  463. package/dist/{source-D4wWtoHh.js → source-DYFndd0W.js} +2 -3
  464. package/dist/{source-S-LChQvw.d.ts → source-DemBtwla.d.ts} +0 -2
  465. package/dist/{stored-Dhv2qsQv.js → stored-J3TetMKf.js} +1 -2
  466. package/dist/task/operations.d.ts +1 -5
  467. package/dist/task/operations.js +3 -4
  468. package/dist/test/register.js +2 -3
  469. package/dist/test.d.ts +0 -4
  470. package/dist/test.js +1 -2
  471. package/dist/{ticket-Pr_8ZtXW.d.ts → ticket-BFWwevWN.d.ts} +0 -2
  472. package/dist/{ticket-Cudn1dq3.js → ticket-BwsnryuU.js} +2 -3
  473. package/dist/{tickets-C_0Fhc00.js → tickets-Cj9_y3gw.js} +14 -16
  474. package/dist/ui/motion/core.d.ts +1 -0
  475. package/dist/ui/motion/core.js +2 -0
  476. package/dist/ui/motion.d.ts +1 -0
  477. package/dist/ui/motion.js +2 -0
  478. package/dist/ui/vite.js +1 -2
  479. package/dist/{usage-CoQXs5nW.d.ts → usage-BduF04ks.d.ts} +0 -2
  480. package/dist/{usage-B4taNt4a.js → usage-ZV3TBMzE.js} +6 -5
  481. package/dist/{usage-index-BsGAFzyq.js → usage-index-CR_xTrXO.js} +3 -4
  482. package/dist/{version-DNmSsk5r.js → version-CAhBr673.js} +59 -21
  483. package/dist/{vite-stage-mmtwQIMA.js → vite-stage-Dmo4RgnK.js} +32 -8
  484. package/dist/{vue-router-C68IU1jM.d.ts → vue-router-plZJLlpm.d.ts} +120 -182
  485. package/dist/workspace/blob-database/postgres.d.ts +1 -0
  486. package/dist/workspace/blob-database/postgres.js +2 -0
  487. package/dist/{workspace-history-CraoERnc.js → workspace-history-B52xib2J.js} +3 -4
  488. package/dist/{workspace-history-CeVwBB6Q.d.ts → workspace-history-WuxgLsi4.d.ts} +0 -2
  489. package/package.json +190 -149
  490. package/dist/agents-BoWau_ei.js +0 -2
  491. package/dist/cli-config-UAGTmuFa.js +0 -2
  492. package/dist/console/runtime/server/page-session.d.ts +0 -2
  493. package/dist/console/runtime/server/page-session.js +0 -5
  494. package/dist/console-lazy-views-DXnIkdyd.js +0 -2
  495. package/dist/operations-CAQmIxGK.js +0 -2
  496. package/dist/project-C4N_Zcjl.js +0 -30
  497. package/dist/request-origin-Bq7mDQG9.js +0 -23
  498. package/dist/scan-module-D_3X08mj.js +0 -2
  499. package/dist/sections-CyrXbbkG.d.ts +0 -10
  500. package/dist/site-access-BbJUe5QI.js +0 -2
  501. /package/dist/{agent/channels.d.ts → channels/adapters.d.ts} +0 -0
  502. /package/dist/{agent/channels.js → channels/adapters.js} +0 -0
@@ -1,9 +1,9 @@
1
- import { n as invariantError, t as invariant } from "./invariant-DolT9EEx.js";
2
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
3
- import { r as installOperationSectionResolver } from "./operation-registry-BogGwk_I.js";
4
- import { i as isConsoleDevelopmentBuild } from "./development-zLxOp-AO.js";
1
+ import { r as installOperationSectionResolver } from "./operation-registry-DfQbL7vE.js";
2
+ import { n as invariantError, t as invariant } from "./invariant-Dj2R1eMr.js";
3
+ import { i as isConsoleDevelopmentBuild } from "./development-DD567hhJ.js";
4
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
5
5
  import { isRuntimeResponse } from "@vite-hub/runtime/internal/runtime-type";
6
- //#region src/console/runtime/server/access-policy.ts
6
+ // src/console/runtime/server/access-policy.ts
7
7
  /**
8
8
  * The Console access policy store. Generated output installs the policy when the server starts, so this module holds
9
9
  * only the policy and its checks. The request checks in `access.ts` load with the first Console route.
@@ -69,5 +69,4 @@ function consoleAuthorizedGrants(result) {
69
69
  if (!grants.every((grant) => typeof grant === "string" && grant.length > 0)) return false;
70
70
  return Object.freeze([...new Set(grants)]);
71
71
  }
72
- //#endregion
73
72
  export { installedConsoleAccessPolicy as a, installConsoleAccess as i, consoleAuthorizedSections as n, consoleOpenAccessWarning as r, consoleAuthorizedGrants as t };
@@ -1,9 +1,8 @@
1
- import "./operations-B0689BG1.js";
2
- import { l as ConsoleUser, n as ConsoleAuthorize } from "./auth-types-CyqhWvYF.js";
3
- import { a as ConsoleSectionId } from "./sections-Do7X4Nwt.js";
4
- import "./request-D7h3SQ92.js";
1
+ import { a as ConsoleSectionId } from "./sections-0qrBvGbf.js";
2
+ import "./request-BC_krbEr.js";
3
+ import "./operations-DgFhA1WE.js";
4
+ import { l as ConsoleUser, n as ConsoleAuthorize } from "./auth-types-B4mq4YhK.js";
5
5
  import "@vite-hub/agent";
6
- //#region src/console/runtime/server/access.d.ts
7
6
  /**
8
7
  * How the Console checks each request. Generated host output installs one policy for each server process.
9
8
  * - `token`: a request signed with a key whose public key is in a `VITEHUB_CONSOLE_KEY_<NAME>` variable. See
@@ -92,8 +91,6 @@ interface ConsoleRealtimeAccess {
92
91
  * Console, and checks the same section access.
93
92
  */
94
93
  declare function consoleRealtimeAccess(section: ConsoleSectionId): ConsoleRealtimeAccess;
95
- //#endregion
96
- //#region src/console/runtime/server/access-policy.d.ts
97
94
  declare const consoleOpenAccessWarning = "[vitehub] console: { auth: false } takes Console calls without a signature. Anyone who can reach /_vitehub/rpc can use the Console. Remove console.auth so the app takes only signed calls.";
98
95
  /** Install the Console access policy. Generated Console output calls this before it serves a request. */
99
96
  declare function installConsoleAccess(policy: ConsoleAccessPolicy): void;
@@ -105,5 +102,4 @@ declare function consoleAuthorizedSections(result: unknown): readonly ConsoleSec
105
102
  * field, and `false` when the field is not a list of role ids.
106
103
  */
107
104
  declare function consoleAuthorizedGrants(result: unknown): readonly string[] | undefined | false;
108
- //#endregion
109
105
  export { installedConsoleAccessPolicy as a, ConsoleRealtimeAccess as c, installConsoleAccess as i, ConsoleRealtimeUser as l, consoleAuthorizedSections as n, ConsoleAccess as o, consoleOpenAccessWarning as r, ConsoleAccessRoute as s, consoleAuthorizedGrants as t, consoleRealtimeAccess as u };
@@ -1,14 +1,13 @@
1
- import { t as ConsoleProjectBuild } from "./project-link-BuOzBH9f.js";
2
- //#region src/console/runtime/client/account.d.ts
1
+ import { t as ConsoleProjectBuild } from "./project-link-isfdRO3Q.js";
3
2
  /** A project of the active team, as `GET /api/projects` returns it. The page never sees the private key. */
4
3
  interface ConsoleAccountProject {
5
4
  id: string;
6
5
  url: string;
7
6
  label: string | null;
8
7
  /** The Ed25519 public key of the link, base64url. */
9
- publicKey: string;
8
+ publicKey: string | null;
10
9
  /** The variable of the app that keeps `publicKey`, such as `VITEHUB_CONSOLE_KEY_CONSOLE_3F9A12BC`. */
11
- keyVariable: string;
10
+ keyVariable: string | null;
12
11
  }
13
12
  interface ConsoleAccountTeam {
14
13
  id: string;
@@ -131,7 +130,7 @@ declare function revokeConsoleApiKey(id: string): Promise<void>;
131
130
  * or old), it answers but not as a Console app (`unconfigured`: no `console: true`, or another error), or
132
131
  * the Console cannot reach it.
133
132
  */
134
- type ConsoleAccountAppStatus = "checking" | "connected" | "setup" | "unconfigured" | "unreachable";
133
+ type ConsoleAccountAppStatus = "checking" | "connected" | "setup" | "unconfigured" | "unreachable" | "site";
135
134
  /** What each status says, in the sidebar and on Home. */
136
135
  declare const accountAppStatusLabels: Record<ConsoleAccountAppStatus, string>;
137
136
  /** What a check of a linked app found. `setup` means the app refuses the signature, so its variable is missing or old. */
@@ -143,11 +142,15 @@ interface ConsoleAccountCheck {
143
142
  name?: string;
144
143
  /** The build that the connected app runs, from its `project.get` answer. */
145
144
  build?: ConsoleProjectBuild;
145
+ /** Whether the connected app allows Comments, with its open thread count when available. */
146
+ comments?: {
147
+ open?: number;
148
+ };
146
149
  }
147
150
  /** Whether the app keeps the public key of the link: the Console server calls the app with a signed request. */
148
151
  declare function checkConsoleAccountProject(id: string): Promise<ConsoleAccountCheck>;
149
152
  /** Link an app to the active team. The answer names the variable and the public key to set on the app. */
150
- declare function linkConsoleAccountProject(url: string, label?: string): Promise<ConsoleAccountProject>;
153
+ declare function linkConsoleAccountProject(url: string, label?: string, kind?: "site"): Promise<ConsoleAccountProject>;
151
154
  /** Rename an app of the active team. An empty name removes the label, so the Console shows the name that the app reports. */
152
155
  declare function renameConsoleAccountProject(id: string, label: string): Promise<ConsoleAccountProject>;
153
156
  declare function unlinkConsoleAccountProject(id: string): Promise<void>;
@@ -191,5 +194,4 @@ declare function setConsoleEnvValue(projectId: string, stage: string, name: stri
191
194
  declare function deleteConsoleEnvValue(projectId: string, stage: string, name: string): Promise<void>;
192
195
  /** Read one value. The Console writes who read it in the env activity first. */
193
196
  declare function revealConsoleEnvValue(projectId: string, stage: string, name: string): Promise<string | undefined>;
194
- //#endregion
195
197
  export { linkConsoleGitHub as A, renameConsoleAccountProject as B, deleteConsolePasskey as C, inviteConsoleMember as D, endConsoleSession as E, loadConsoleSignInMethods as F, signInWithGitHub as G, revealConsoleEnvValue as H, loadConsoleSignInState as I, switchConsoleTeam as J, signInWithPasskey as K, loadConsoleTeam as L, listConsolePasskeys as M, listConsoleSignInProviders as N, leaveConsoleTeam as O, loadConsoleEnvStage as P, removeConsoleMember as R, deleteConsoleEnvValue as S, earlyConsoleTeam as T, revokeConsoleApiKey as U, renameConsoleTeam as V, setConsoleEnvValue as W, unlinkConsoleAccountProject as Y, addConsolePasskey as _, ConsoleAccountTeam as a, createConsoleApiKey as b, ConsoleEnvVariable as c, ConsoleSignInState as d, ConsoleTeamDetails as f, accountAppStatusLabels as g, acceptConsoleInvitation as h, ConsoleAccountProject as i, listConsoleApiKeys as j, linkConsoleAccountProject as k, ConsolePasskey as l, ConsoleTeamMember as m, ConsoleAccountAppStatus as n, ConsoleApiKey as o, ConsoleTeamInvitation as p, signUpWithPasskey as q, ConsoleAccountCheck as r, ConsoleEnvStage as s, ConsoleAccount as t, ConsoleSignInMethods as u, cancelConsoleInvitation as v, earlyConsoleSignInState as w, createConsoleTeam as x, checkConsoleAccountProject as y, renameConsoleAccount as z };
@@ -0,0 +1 @@
1
+ export * from "@vite-hub/agent/invocations/postgres";
@@ -0,0 +1,2 @@
1
+ export * from "@vite-hub/agent/invocations/postgres";
2
+ export {};
@@ -1,19 +1,20 @@
1
- import { t as invariant } from "./invariant-DolT9EEx.js";
2
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
3
- import { d as consoleRequest, h as withConsoleAccess, i as consoleAccessInvoker } from "./access-BDST818p.js";
4
- import { t as consoleHttpError } from "./http-error-Bs6e8_-8.js";
5
- import { a as consoleRequestJSON, l as setConsoleResponseStatus, o as consoleRequestURL, t as assertConsoleRequest } from "./request-DbFfYmCu.js";
6
- import { t as getConsoleBlob } from "./blob-CpvlM8jp.js";
7
- import { t as consoleAttachmentRequestBytes } from "./limits-BUlwWYQE.js";
8
- import { a as decodeAgentRouteParam, o as encodeAgentRouteParam } from "./console-route-CBuqZ4wO.js";
9
- import { o as getConsoleAgentCapabilities, r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "./agents-BDeazoAW.js";
10
- import { t as agentConsole } from "./server-BRJE4t-W.js";
11
- import { n as vitehubOwnedPrefix } from "./owned-paths-BnjT0FhU.js";
1
+ import { t as getConsoleBlob } from "./blob-eH6j0AQj.js";
2
+ import { t as consoleHttpError } from "./http-error-BorAxJYM.js";
3
+ import { n as vitehubOwnedPrefix } from "./owned-paths-MjjDftBn.js";
4
+ import { t as invariant } from "./invariant-Dj2R1eMr.js";
5
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
6
+ import { a as decodeAgentRouteParam, o as encodeAgentRouteParam } from "./console-route-DbdnLkkF.js";
7
+ import { t as consoleAttachmentRequestBytes } from "./limits-BLo31qDR.js";
8
+ import { t as agentConsole } from "./server-DsOEa4_A.js";
9
+ import { o as getConsoleAgentCapabilities, r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "./agents-Cz_uhhov.js";
10
+ import { d as consoleRequest, h as withConsoleAccess, i as consoleAccessInvoker } from "./access-BBHk9b5P.js";
11
+ import { a as consoleRequestJSON, l as setConsoleResponseStatus, o as consoleRequestURL, t as assertConsoleRequest } from "./request-CQ8TkHLh.js";
12
12
  import { agentInvocationId, createMessage, deserializeMessages, isAttachmentPart, startAgentInvocation } from "@vite-hub/agent";
13
13
  import * as v from "valibot";
14
14
  import { getStandardContext } from "@vite-hub/runtime/internal/h3";
15
- import { createExecutionContext, createRuntimeWaitUntilController } from "@vite-hub/runtime";
16
- //#region src/console/runtime/server/attachment-cleanup.ts
15
+ import { createExecutionContext } from "@vite-hub/runtime";
16
+ import { createRuntimeWaitUntilController } from "@vite-hub/runtime/internal/context";
17
+ // src/console/runtime/server/attachment-cleanup.ts
17
18
  const consolePrefix = `${vitehubOwnedPrefix}console/`;
18
19
  const consoleAttachmentPrefix = `${consolePrefix}attachments/`;
19
20
  const consoleAttachmentCleanupPrefix = `${consolePrefix}cleanup/`;
@@ -156,8 +157,7 @@ async function isConsoleAttachmentPendingCleanup(storage, id) {
156
157
  }
157
158
  return false;
158
159
  }
159
- //#endregion
160
- //#region src/console/runtime/server/attachments.ts
160
+ // src/console/runtime/server/attachments.ts
161
161
  const uploadSchema = v.object({ files: v.pipe(v.array(v.object({
162
162
  url: v.string(),
163
163
  filename: v.optional(v.string(), "image")
@@ -278,8 +278,7 @@ async function inputMessage(prompt, attachments, fresh = /* @__PURE__ */ new Set
278
278
  }] : [], ...parts]
279
279
  });
280
280
  }
281
- //#endregion
282
- //#region src/console/runtime/server/agent-invocations.post.ts
281
+ // src/console/runtime/server/agent-invocations.post.ts
283
282
  const allowedInputKeys = /* @__PURE__ */ new Set([
284
283
  "prompt",
285
284
  "invokerProfileId",
@@ -419,5 +418,4 @@ const guardedHandler = withConsoleAccess(agentInvocationsHandler, {
419
418
  section: "agents",
420
419
  write: true
421
420
  });
422
- //#endregion
423
421
  export { guardedHandler as default };
@@ -0,0 +1 @@
1
+ export { s as getConsoleAgentDefinition, c as getConsoleAgents } from "./agents-Cz_uhhov.js";
@@ -1,10 +1,10 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
2
- import { a as resolveConsoleSuppliedInvocations, i as resolveConsoleInvocations, r as markConsoleSuppliedInvocations } from "./internal-BreyUsQ6.js";
3
- import { r as installConsoleInvocations } from "./invocations-CK_-G540.js";
1
+ import { a as resolveConsoleSuppliedInvocations, i as resolveConsoleInvocations, r as markConsoleSuppliedInvocations } from "./internal-0C_CC601.js";
2
+ import { r as installConsoleInvocations } from "./invocations-8NThe8Bx.js";
3
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
4
4
  import * as v from "valibot";
5
5
  import { agentInvocationsDisabledKey, agentInvocationsFallbackKey, installAgentInvocationsOverride, resolveDefaultAgentInvocations } from "@vite-hub/agent/invocations/app";
6
6
  import { markDiscoveredAgentName } from "@vite-hub/agent/server/internal";
7
- //#region src/console/runtime/server/agents.ts
7
+ // src/console/runtime/server/agents.ts
8
8
  const consoleAgentsKey = Symbol.for("vitehub.console.agents");
9
9
  const consoleAgentDefinitionsKey = Symbol.for("vitehub.console.agent-definitions");
10
10
  const consoleInvokeEnabledKey = Symbol.for("vitehub.console.invoke-enabled");
@@ -119,5 +119,4 @@ function consoleAgentInvokerProfiles(agent) {
119
119
  return [resolved];
120
120
  });
121
121
  }
122
- //#endregion
123
122
  export { consoleInvokeEnabledKey as a, getConsoleAgents as c, consoleAgentsKey as i, installConsoleAgentDefinitions as l, consoleAgentDefinitionsKey as n, getConsoleAgentCapabilities as o, consoleAgentInvokerProfiles as r, getConsoleAgentDefinition as s, consoleAgentCapabilitiesKey as t, installConsoleAgents as u };
@@ -1,6 +1,5 @@
1
1
  import { AgentInput, AgentInvocations } from "@vite-hub/agent";
2
2
  import { RuntimeCapabilities } from "@vite-hub/runtime";
3
- //#region src/console/runtime/server/agents.d.ts
4
3
  type ConsoleAgentDefinitionEntry = {
5
4
  definition: unknown;
6
5
  fallbackName: string;
@@ -25,5 +24,4 @@ interface ConsoleAgentInvokerProfile {
25
24
  label?: string;
26
25
  }
27
26
  declare function consoleAgentInvokerProfiles(agent: AgentInput): ConsoleAgentInvokerProfile[];
28
- //#endregion
29
27
  export { installConsoleAgents as i, getConsoleAgents as n, installConsoleAgentDefinitions as r, consoleAgentInvokerProfiles as t };
@@ -1,3 +1,2 @@
1
- import server_default from "@vite-hub/auth/server";
1
+ export { default } from "@vite-hub/auth/server";
2
2
  export * from "@vite-hub/auth/server";
3
- export { server_default as default };
@@ -1,10 +1,9 @@
1
- import { r as OperationContext } from "./operations-B0689BG1.js";
2
- import { n as ConsoleDiagnosticCode } from "./diagnostics-CjGiniKb.js";
3
- import { t as ConsoleRequestEvent } from "./request-D7h3SQ92.js";
4
- import { o as ConsoleAccess } from "./access-policy-CGXhO3Ee.js";
1
+ import { r as OperationContext } from "./operations-DgFhA1WE.js";
2
+ import { o as ConsoleAccess } from "./access-policy-CUbJLvlR.js";
3
+ import { n as ConsoleDiagnosticCode } from "./diagnostics-BXxPggRw.js";
4
+ import { t as ConsoleRequestEvent } from "./request-BC_krbEr.js";
5
5
  import { Result, ResultError } from "@vite-hub/runtime";
6
6
  import { AuthConsole, AuthConsoleErrorCode, AuthConsoleMutation } from "@vite-hub/auth/console-runtime";
7
- //#region src/console/runtime/server/tickets.d.ts
8
7
  /**
9
8
  * One-time tickets open a page of the app in the browser for the person who called the Console. Content preview and
10
9
  * impersonation need the app origin: a frame of the page, or the app session cookie. A signed operation, such as
@@ -95,8 +94,6 @@ declare function seeOther(location: string, headers?: Headers): Response;
95
94
  * redirect. The route takes the ticket out of the store first, so a ticket works once even when it fails later.
96
95
  */
97
96
  declare function redeemConsoleTicket(event: ConsoleRequestEvent): Promise<Response>;
98
- //#endregion
99
- //#region src/console/runtime/server/auth.d.ts
100
97
  /** An Auth Console failure as the error of an operation: its code, why, fix, and the HTTP status of the code. */
101
98
  declare function authConsoleFailure(error: ResultError<AuthConsoleErrorCode>): Error;
102
99
  type AuthOperationContext = Omit<OperationContext, "access"> & {
@@ -116,5 +113,4 @@ declare function runAuthConsoleAction(context: AuthOperationContext, mutation: A
116
113
  * to the person who asked. See `tickets.ts`.
117
114
  */
118
115
  declare function issueImpersonationTicket(context: AuthOperationContext, userId?: string): Promise<ConsoleTicket>;
119
- //#endregion
120
116
  export { setConsoleTicketStore as C, seeOther as S, consoleRecordStore as _, runAuthConsoleRead as a, issueConsoleTicket as b, ConsoleTicketPurpose as c, appBase as d, appOrigin as f, consoleInvitePrefix as g, base64url as h, runAuthConsoleAction as i, ConsoleTicketRecord as l, authFailure as m, authConsoleFailure as n, ConsoleRecordStore as o, authConsole as p, issueImpersonationTicket as r, ConsoleTicket as s, AuthOperationContext as t, ConsoleTicketStore as u, consoleTicketLifetime as v, ticketProblem as w, redeemConsoleTicket as x, consoleTicketParameter as y };
@@ -1,4 +1,4 @@
1
- //#region src/console/runtime/auth-operations.ts
1
+ // src/console/runtime/auth-operations.ts
2
2
  /**
3
3
  * The Auth management operations of the Console. Each read and each action of the Auth section is one operation on the
4
4
  * Console RPC. Impersonation sets the app session cookie, so its operations return a one-time link that the browser
@@ -30,5 +30,4 @@ const authConsoleImpersonationOperations = {
30
30
  start: "auth.impersonate",
31
31
  stop: "auth.stop-impersonating"
32
32
  };
33
- //#endregion
34
33
  export { authConsoleImpersonationOperations as n, authConsoleReadOperations as r, authConsoleActionOperations as t };
@@ -1,13 +1,11 @@
1
1
  import { AccessAuthorizationContext } from "@vite-hub/runtime";
2
- //#region ../internal/src/console-signature.d.ts
3
2
  /** The person that the Console signs for. The app gives it to `console.authorize` and to operations as the user. */
4
3
  interface ConsoleCallerUser {
5
4
  id: string;
6
5
  name?: string;
7
6
  email?: string;
7
+ emailVerified?: true;
8
8
  }
9
- //#endregion
10
- //#region src/console/auth-types.d.ts
11
9
  /** The signed-in user that the Console gives `console.authorize`. */
12
10
  type ConsoleUser = AccessAuthorizationContext<unknown, false>["user"];
13
11
  /** The request that `console.authorize` checks with `console: { auth: false }` in development. It has no signature and no user. */
@@ -86,5 +84,4 @@ type ConsoleAuthorizeResult = boolean | Response | {
86
84
  };
87
85
  /** Decides whether one Console request may continue, and which Console sections it may use. */
88
86
  type ConsoleAuthorize = (context: ConsoleAuthorizeContext) => ConsoleAuthorizeResult | Promise<ConsoleAuthorizeResult>;
89
- //#endregion
90
87
  export { ConsoleOpenAuthorizeContext as a, ConsoleSignedConsoleAuthorizeContext as c, ConsoleAuthorizeResult as i, ConsoleUser as l, ConsoleAuthorize as n, ConsolePageAuthorizeContext as o, ConsoleAuthorizeContext as r, ConsoleSignedCliAuthorizeContext as s, ConsoleAgentAuthorizeContext as t };
package/dist/bin.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import { i as importOptionalOwner, l as requireOptionalOwner, t as assertFeaturePackages } from "./optional-owners-BNA2OX6z.js";
3
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
4
- import { t as loadViteHubCliConfig } from "./cli-config-wxKjF2Y0.js";
2
+ import { i as importOptionalOwner, l as requireOptionalOwner, t as assertFeaturePackages } from "./optional-owners-DAfShdgV.js";
3
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
4
+ import { t as loadViteHubCliConfig } from "./cli-config-BX8H4ZCo.js";
5
5
  import { runViteHubCliEntrypoint } from "@vite-hub/cli";
6
6
  import { resolve } from "node:path";
7
7
  import { parseArgs } from "node:util";
8
8
  import { secretCliFeatures } from "@vite-hub/env/cli";
9
- //#region src/migrate-cli.ts
9
+ // src/migrate-cli.ts
10
10
  const usage = "vitehub migrate [dir] [--dry-run]";
11
11
  /** Silent Result failures are not syntax, so no codemod finds them. The Doctor rule does. */
12
12
  const resultCheck = "Run Vite Doctor. Rule VHUB0003 lists Result calls whose error the code drops, such as `await email.send(...)` as a statement.";
@@ -61,8 +61,7 @@ function createMigrateCliNamespace() {
61
61
  name: "migrate"
62
62
  };
63
63
  }
64
- //#endregion
65
- //#region src/sandbox-cli.ts
64
+ // src/sandbox-cli.ts
66
65
  const serveUsage = "vitehub sandbox serve --user <name> --host-key <file> --authorized-key <file> [--host <address>] [--port <port>] [--cwd <dir>] [--drain-timeout <ms>]";
67
66
  const checkUsage = "vitehub sandbox check --user <name> --identity-file <file> [--host-key-file <file> | --known-hosts-file <file>] [--host <address>] [--port <port>] [--driver <codex|claude-code>] [--timeout <ms>]";
68
67
  const maxTimeoutMs = 2147483647;
@@ -280,21 +279,33 @@ function createSandboxCliNamespace() {
280
279
  name: "sandbox"
281
280
  };
282
281
  }
283
- //#endregion
284
- //#region src/bin.ts
282
+ // src/bin.ts
285
283
  const agentRuntimeFeatures = {
286
- features: [{
287
- name: "invocations",
288
- run: async (args, context) => {
289
- const cli = requireOptionalOwner(await importOptionalOwner("@vite-hub/agent", () => import("@vite-hub/agent/internal/agent-invocations-cli")), "agent");
290
- const { readAgentJournalStateUrl } = await import("./runtime-feature-guard-B64MMW9I.js");
291
- const stateUrl = await readAgentJournalStateUrl(context.rootDir, context.env);
292
- return cli.runAgentInvocationsCli(args, {
293
- ...context,
294
- ...stateUrl ? { stateUrl } : {}
295
- });
284
+ features: [
285
+ {
286
+ name: "emulator",
287
+ run: async (args, context) => requireOptionalOwner(await importOptionalOwner("@vite-hub/agent", () => import("@vite-hub/agent/internal/agent-emulator-cli")), "agent").runAgentEmulatorCli(args, context)
288
+ },
289
+ {
290
+ name: "invocations",
291
+ run: async (args, context) => {
292
+ const cli = requireOptionalOwner(await importOptionalOwner("@vite-hub/agent", () => import("@vite-hub/agent/internal/agent-invocations-cli")), "agent");
293
+ const { readAgentJournalPostgres, readAgentJournalStateUrl } = await import("./runtime-feature-guard-DpUn4Oxc.js");
294
+ const stateUrl = await readAgentJournalStateUrl(context.rootDir, context.env);
295
+ return cli.runAgentInvocationsCli(args, {
296
+ ...context,
297
+ journalPostgres: async () => await readAgentJournalPostgres(context.rootDir, context.env),
298
+ ...stateUrl ? { stateUrl } : {}
299
+ });
300
+ }
301
+ },
302
+ {
303
+ name: "state",
304
+ run: async (args, context) => {
305
+ return requireOptionalOwner(await importOptionalOwner("@vite-hub/agent", () => import("@vite-hub/agent/internal/agent-state-cli")), "agent").runAgentStateCli(args, context);
306
+ }
296
307
  }
297
- }],
308
+ ],
298
309
  name: "agent"
299
310
  };
300
311
  const [connectionsCli, choicesCli] = await Promise.all([process.argv[2] === "connections" ? importOptionalOwner("@vite-hub/connections", () => import("@vite-hub/connections/cli")) : void 0, importOptionalOwner("@vite-hub/choices", () => import("@vite-hub/choices/cli"))]);
@@ -313,10 +324,11 @@ const secretRuntimeNamespace = {
313
324
  };
314
325
  runViteHubCliEntrypoint({
315
326
  helpNamespaces: { database: async () => (await importOptionalOwner("@vite-hub/database", () => import("@vite-hub/database/cli")))?.createDbCliContributor()?.namespaces[0] },
316
- loadConfig: loadViteHubCliConfig,
327
+ loadConfig: (root, command, mode) => loadViteHubCliConfig(root, command, mode, { prepareNuxtTypes: process.argv[2] === "email" && process.argv[3] === "preview" }),
317
328
  runtimeFeatureGuard: async (namespace, feature, cwd) => {
318
- if (namespace !== "agent" || feature !== "invocations") return true;
319
- const { isAgentCliEnabled } = await import("./runtime-feature-guard-B64MMW9I.js");
329
+ if (namespace !== "agent" || feature !== "emulator" && feature !== "invocations" && feature !== "state") return true;
330
+ const { isAgentCliEnabled, isAgentEmulatorStandalone } = await import("./runtime-feature-guard-DpUn4Oxc.js");
331
+ if (feature === "emulator") return isAgentEmulatorStandalone(process.argv.slice(4), process.env, cwd);
320
332
  return isAgentCliEnabled(cwd);
321
333
  },
322
334
  runtimeFeatures: [
@@ -333,5 +345,4 @@ runViteHubCliEntrypoint({
333
345
  secretRuntimeNamespace
334
346
  ]
335
347
  });
336
- //#endregion
337
348
  export {};
@@ -1,3 +1,2 @@
1
- import nuxt_image_default from "@vite-hub/blob/nuxt-image";
1
+ export { default } from "@vite-hub/blob/nuxt-image";
2
2
  export * from "@vite-hub/blob/nuxt-image";
3
- export { nuxt_image_default as default };
@@ -1,9 +1,7 @@
1
- import { i as ConsoleMediaLibrary, t as ConsoleBlobInspection } from "./internal-CO4OqqaS.js";
1
+ import { i as ConsoleMediaLibrary, t as ConsoleBlobInspection } from "./internal-CKocv79I.js";
2
2
  import { BlobStorage } from "@vite-hub/blob";
3
- //#region src/console/runtime/server/blob.d.ts
4
3
  declare function installConsoleBlob(projectRoot: string, storage: BlobStorage, stores?: readonly string[]): ConsoleBlobInspection;
5
4
  /** The media library of a build with Blob. Throws a 404 Console error in a build without it. */
6
5
  declare function loadConsoleMedia(): Promise<ConsoleMediaLibrary>;
7
6
  declare function getConsoleBlob(): ConsoleBlobInspection;
8
- //#endregion
9
7
  export { installConsoleBlob as n, loadConsoleMedia as r, getConsoleBlob as t };
@@ -1,12 +1,12 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
2
- import { n as consoleState } from "./internal-BreyUsQ6.js";
3
- import { i as consoleRequestError } from "./request-DbFfYmCu.js";
4
- //#region src/console/runtime/server/blob.ts
1
+ import { n as consoleState } from "./internal-0C_CC601.js";
2
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
3
+ import { i as consoleRequestError } from "./request-CQ8TkHLh.js";
4
+ // src/console/runtime/server/blob.ts
5
5
  function installConsoleBlob(projectRoot, storage, stores = ["default"]) {
6
6
  const installedStores = [...new Set(stores.filter((store) => store.length > 0))].filter((store) => store !== "default").sort();
7
7
  installedStores.unshift("default");
8
8
  return consoleState().blob = {
9
- ...import.meta.viteHubConsoleDocuments === false ? {} : { media: () => import("./media-BHpQ-4jw.js") },
9
+ ...import.meta.viteHubConsoleDocuments === false ? {} : { media: () => import("./media-CAKz9yrp.js") },
10
10
  storage,
11
11
  stores: installedStores
12
12
  };
@@ -22,5 +22,4 @@ function getConsoleBlob() {
22
22
  if (!inspection) throw viteHubErrorDiagnostics.VITE_HUB_R0049({ message: "[vitehub] Blob inspection has not been installed for this runtime." });
23
23
  return inspection;
24
24
  }
25
- //#endregion
26
25
  export { installConsoleBlob as n, loadConsoleMedia as r, getConsoleBlob as t };
@@ -0,0 +1,24 @@
1
+ // ../internal/src/runtime/request-log.ts
2
+ function isRequestLog(value) {
3
+ return value !== null && typeof value === "object" && typeof Reflect.get(value, "set") === "function" && typeof Reflect.get(value, "warn") === "function" && typeof Reflect.get(value, "error") === "function";
4
+ }
5
+ function contextLog(value) {
6
+ const context = value !== null && typeof value === "object" ? Reflect.get(value, "context") : void 0;
7
+ return context !== null && typeof context === "object" ? Reflect.get(context, "log") : void 0;
8
+ }
9
+ /**
10
+ * The evlog request logger of a request, or `undefined` when the app does not register evlog. Pass a Nitro v3 event
11
+ * (evlog sets `event.req.context.log`) or its `Request` (`request.context.log`).
12
+ */
13
+ function requestLog(input) {
14
+ const log = contextLog(input !== null && typeof input === "object" ? Reflect.get(input, "req") : void 0) ?? contextLog(input);
15
+ return isRequestLog(log) ? log : void 0;
16
+ }
17
+ /**
18
+ * The `Symbol.for()` key of the bridge on `globalThis`. Every bundled copy of this module and the Nitro plugin that
19
+ * `vitehub()` generates use the same key.
20
+ */
21
+ const evlogBridgeKey = "vitehub.evlog";
22
+ // src/_internal/browser-error-limits.ts
23
+ const browserErrorMaxBytes = 16384;
24
+ export { evlogBridgeKey as n, requestLog as r, browserErrorMaxBytes as t };
@@ -1,5 +1,3 @@
1
- import { n as AnyOperation } from "../operations-B0689BG1.js";
2
- //#region src/cache/operations.d.ts
1
+ import { n as AnyOperation } from "../operations-DgFhA1WE.js";
3
2
  /** The `cache.*` operations: list, get, and delete. The Console, `vitehub cache`, and agents run them. */
4
- export declare const cacheOperations: readonly AnyOperation[];
5
- //#endregion
3
+ export declare const cacheOperations: readonly AnyOperation[];
@@ -1,7 +1,7 @@
1
- import { t as defineOperation } from "../operation-definition-a5keEpCd.js";
1
+ import { t as defineOperation } from "../operation-definition-DTpNvLd8.js";
2
2
  import * as v from "valibot";
3
- //#region src/cache/operations.ts
4
- const runtime = () => import("../runtime-DQuHg7OO.js");
3
+ // src/cache/operations.ts
4
+ const runtime = () => import("../runtime-CRJsqVTa.js");
5
5
  function defineCacheOperation(definition) {
6
6
  return defineOperation({
7
7
  ...definition,
@@ -47,5 +47,4 @@ const cacheOperations = [
47
47
  run: async (input) => (await runtime()).deleteCache(input)
48
48
  })
49
49
  ];
50
- //#endregion
51
50
  export { cacheOperations };
package/dist/cache.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { EventHandler, H3Event } from "nitro/h3";
2
2
  import { CachedFunctionOptions as CachedFunctionOptions$1, CachedHandlerOptions as CachedHandlerOptions$1 } from "nitro/types";
3
3
  import { CachedFunction } from "ocache";
4
- //#region src/cache.d.ts
5
4
  /** Tags for one cache entry: a list, or a function of the cached function's arguments. */
6
5
  export type CacheTags<ArgsT extends unknown[]> = readonly string[] | ((...args: ArgsT) => readonly string[] | Promise<readonly string[]>);
7
6
  /** Nitro's cached function options, plus `tags` and `staleIfError`. */
@@ -24,5 +23,4 @@ export declare function defineCachedFunction<T, ArgsT extends unknown[] = unknow
24
23
  /** Like Nitro's `defineCachedHandler()`, with `tags`. */
25
24
  export declare function defineCachedHandler(handler: EventHandler, opts?: CachedHandlerOptions): EventHandler;
26
25
  /** Makes the next call of every cached function or handler with one of these tags run again. */
27
- export declare function invalidateTag(tags: string | readonly string[]): Promise<void>;
28
- //#endregion
26
+ export declare function invalidateTag(tags: string | readonly string[]): Promise<void>;
package/dist/cache.js CHANGED
@@ -1,7 +1,7 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
1
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
2
2
  import { defineCachedFunction as defineCachedFunction$1, defineCachedHandler as defineCachedHandler$1 } from "nitro/cache";
3
3
  import { defineHandler, toResponse } from "nitro/h3";
4
- //#region src/cache.ts
4
+ // src/cache.ts
5
5
  const tagHeader = "x-vitehub-cache-tags";
6
6
  /** Like Nitro's `defineCachedFunction()`, with `tags` and `staleIfError`. */
7
7
  function defineCachedFunction(fn, opts = {}) {
@@ -215,5 +215,4 @@ function tagGeneration(create) {
215
215
  return current;
216
216
  };
217
217
  }
218
- //#endregion
219
218
  export { defineCachedFunction, defineCachedHandler, invalidateTag };
@@ -0,0 +1 @@
1
+ export * from "@vite-hub/choices/testing";
@@ -0,0 +1,2 @@
1
+ export * from "@vite-hub/choices/testing";
2
+ export {};
@@ -1,9 +1,9 @@
1
- import { n as createCliDiscoveryNitroCloser, t as loadAllEnv } from "./vite-stage-mmtwQIMA.js";
1
+ import { a as viteCliProjectConfig, n as createCliDiscoveryNitroCloser, t as loadAllEnv } from "./vite-stage-Dmo4RgnK.js";
2
2
  import { createRequire } from "node:module";
3
3
  import { join, resolve } from "node:path";
4
4
  import { existsSync } from "node:fs";
5
5
  import { pathToFileURL } from "node:url";
6
- //#region src/internal/cli-config.ts
6
+ // src/internal/cli-config.ts
7
7
  const configExtensions = [
8
8
  "js",
9
9
  "mjs",
@@ -23,9 +23,16 @@ async function defaultResolveViteConfig(inlineConfig, command, mode) {
23
23
  const { resolveConfig } = await import("vite");
24
24
  const nitro = createCliDiscoveryNitroCloser();
25
25
  try {
26
+ const { root, ...rest } = inlineConfig;
27
+ const project = root && inlineConfig.configFile === void 0 ? viteCliProjectConfig(root) : void 0;
28
+ const config = project ? {
29
+ ...rest,
30
+ ...project,
31
+ plugins: [...rest.plugins ?? [], ...project.plugins]
32
+ } : inlineConfig;
26
33
  return await resolveConfig({
27
- ...inlineConfig,
28
- plugins: [...inlineConfig.plugins ?? [], nitro.plugin]
34
+ ...config,
35
+ plugins: [...config.plugins ?? [], nitro.plugin]
29
36
  }, command, mode);
30
37
  } finally {
31
38
  await nitro.close();
@@ -71,6 +78,7 @@ async function loadViteHubCliConfig(rootDir, command = "serve", mode, dependenci
71
78
  }
72
79
  const nuxt = await loadNuxt(options);
73
80
  try {
81
+ if (dependencies.prepareNuxtTypes) await (await resolveNuxtKit(rootDir)).writeTypes(nuxt);
74
82
  const nuxtRoot = nuxt.options.rootDir || rootDir;
75
83
  const viteRoot = resolve(nuxtRoot, typeof nuxt.options.vite?.root === "string" ? nuxt.options.vite.root : nuxtRoot);
76
84
  return {
@@ -86,5 +94,4 @@ async function loadViteHubCliConfig(rootDir, command = "serve", mode, dependenci
86
94
  await nuxt.close?.();
87
95
  }
88
96
  }
89
- //#endregion
90
97
  export { loadViteHubCliConfig as t };
@@ -0,0 +1 @@
1
+ export { t as loadViteHubCliConfig } from "./cli-config-BX8H4ZCo.js";
@@ -0,0 +1,18 @@
1
+ import { CloudflareWorkersModule } from "@cloudflare/workers-types/index"
2
+ import type { DurableObjectState as WorkerDurableObjectState } from "@cloudflare/workers-types/index"
3
+
4
+ declare global {
5
+ namespace Cloudflare {
6
+ interface Env {}
7
+ }
8
+
9
+ interface DurableObjectState<Props = unknown> extends WorkerDurableObjectState<Props> {}
10
+ }
11
+
12
+ declare module "@cloudflare/workers-types/index" {
13
+ namespace Cloudflare {
14
+ interface Env extends globalThis.Cloudflare.Env {}
15
+ }
16
+ }
17
+
18
+ export = CloudflareWorkersModule
@@ -1,4 +1,4 @@
1
- //#region ../internal/src/runtime/cloudflare-env-lookup.ts
1
+ // ../internal/src/runtime/cloudflare-env-lookup.ts
2
2
  /** The key of the AsyncLocalStorage store on `globalThis`. Every bundled copy of this module shares the store. */
3
3
  const activeEnvStorageKey = Symbol.for("vitehub.cloudflare.env-storage");
4
4
  let activeEnv;
@@ -12,5 +12,4 @@ function getActiveCloudflareEnv() {
12
12
  const host = globalThis;
13
13
  return Object.hasOwn(host, "__env__") && host.__env__ !== void 0 ? host.__env__ : activeEnv;
14
14
  }
15
- //#endregion
16
15
  export { getActiveCloudflareEnv as n, activeEnvStorageKey as t };
package/dist/cms.js CHANGED
@@ -1,3 +1,2 @@
1
- import cms_default from "@vite-hub/cms";
1
+ export { default } from "@vite-hub/cms";
2
2
  export * from "@vite-hub/cms";
3
- export { cms_default as default };
@@ -1,2 +1,2 @@
1
- import { a as ConsoleOpenAuthorizeContext, c as ConsoleSignedConsoleAuthorizeContext, i as ConsoleAuthorizeResult, l as ConsoleUser, n as ConsoleAuthorize, o as ConsolePageAuthorizeContext, r as ConsoleAuthorizeContext, s as ConsoleSignedCliAuthorizeContext, t as ConsoleAgentAuthorizeContext } from "../auth-types-CyqhWvYF.js";
1
+ import { a as ConsoleOpenAuthorizeContext, c as ConsoleSignedConsoleAuthorizeContext, i as ConsoleAuthorizeResult, l as ConsoleUser, n as ConsoleAuthorize, o as ConsolePageAuthorizeContext, r as ConsoleAuthorizeContext, s as ConsoleSignedCliAuthorizeContext, t as ConsoleAgentAuthorizeContext } from "../auth-types-B4mq4YhK.js";
2
2
  export { ConsoleAgentAuthorizeContext, ConsoleAuthorize, ConsoleAuthorizeContext, ConsoleAuthorizeResult, ConsoleOpenAuthorizeContext, ConsolePageAuthorizeContext, ConsoleSignedCliAuthorizeContext, ConsoleSignedConsoleAuthorizeContext, ConsoleUser };
@@ -1,6 +1,4 @@
1
- import { a as ConsoleOpenAuthorizeContext, c as ConsoleSignedConsoleAuthorizeContext, i as ConsoleAuthorizeResult, l as ConsoleUser, n as ConsoleAuthorize, o as ConsolePageAuthorizeContext, r as ConsoleAuthorizeContext, s as ConsoleSignedCliAuthorizeContext, t as ConsoleAgentAuthorizeContext } from "../auth-types-CyqhWvYF.js";
2
- //#region src/console/auth.d.ts
1
+ import { a as ConsoleOpenAuthorizeContext, c as ConsoleSignedConsoleAuthorizeContext, i as ConsoleAuthorizeResult, l as ConsoleUser, n as ConsoleAuthorize, o as ConsolePageAuthorizeContext, r as ConsoleAuthorizeContext, s as ConsoleSignedCliAuthorizeContext, t as ConsoleAgentAuthorizeContext } from "../auth-types-B4mq4YhK.js";
3
2
  /** Define the function that every Console call runs after the signature check. Set its file path as `console.authorize`. */
4
3
  export declare function defineConsoleAuthorize(authorize: ConsoleAuthorize): ConsoleAuthorize;
5
- //#endregion
6
4
  export type { ConsoleAgentAuthorizeContext, ConsoleAuthorize, ConsoleAuthorizeContext, ConsoleAuthorizeResult, ConsoleOpenAuthorizeContext, ConsolePageAuthorizeContext, ConsoleSignedCliAuthorizeContext, ConsoleSignedConsoleAuthorizeContext, ConsoleUser };