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
@@ -0,0 +1,47 @@
1
+ import { n as relative } from "./pathe.M-eThtNZ-D4EC7Wue.js";
2
+ // ../internal/src/inspect.ts
3
+ async function collectContributors(plugins) {
4
+ const contributors = [];
5
+ for (const plugin of plugins) {
6
+ if (!plugin || typeof plugin !== "object" || !Object.hasOwn(plugin, "vitehub")) continue;
7
+ const metadata = plugin.vitehub;
8
+ if (!metadata || typeof metadata !== "object" || !Object.hasOwn(metadata, "inspect")) continue;
9
+ const value = metadata.inspect;
10
+ const contributor = typeof value === "function" ? await value() : value;
11
+ if (contributor) contributors.push(contributor);
12
+ }
13
+ return contributors;
14
+ }
15
+ /** Collects host resources from active plugins in plugin order. */
16
+ async function collectViteHubResourceSummaries(plugins) {
17
+ const resources = [];
18
+ for (const contributor of await collectContributors(plugins)) resources.push(...await contributor.resources?.() ?? []);
19
+ return resources;
20
+ }
21
+ function relativeDefinitionFile(projectRoot, file) {
22
+ return relative(projectRoot, file).replaceAll("\\", "/");
23
+ }
24
+ /** Summarizes Definitions that have no owner-specific fields. */
25
+ function summarizeDefinitions(projectRoot, definitions, fallbackSource) {
26
+ return definitions.map((definition) => ({
27
+ fields: [],
28
+ file: relativeDefinitionFile(projectRoot, definition.handler),
29
+ name: definition.name,
30
+ source: definition.source || fallbackSource
31
+ }));
32
+ }
33
+ const redactedInspectionValue = "[redacted]";
34
+ const secretKeyPattern = /secret|token|passw(?:or)?d|credential|api[-_\s]?key|private[-_\s]?key|authorization|cookie|signature|dsn|connection[-_\s]?string/i;
35
+ const embeddedUrlCredentialPattern = /\b([a-z][a-z0-9+.-]*:\/\/)[^/\s?#]*@/gi;
36
+ const embeddedCookiePattern = /\b([\w-]*cookie[\w-]*["']?\s*[:=]\s*)(?:"(?:\\[^\r\n]|[^"\\\r\n])*"(?:\s*;\s*[\w.-]+\s*=[^;\r\n]*)*|'(?:\\[^\r\n]|[^'\\\r\n])*'(?:\s*;\s*[\w.-]+\s*=[^;\r\n]*)*|[^\r\n]+?(?=\s*(?:;\s*[^;=\r\n/]+\s*(?:\r?\n|$)|&|\r?\n|$)))/gi;
37
+ const embeddedBearerPattern = /\bbearer\s+[^\s,;]+/gi;
38
+ const embeddedAuthorizationPattern = new RegExp(String.raw`\b([\w-]*authorization[\w-]*["']?\s*[:=]\s*)(?!\[redacted\](?=$|[\s,;}&]))(?:"(?:\\[^\r\n]|[^"\\\r\n])*"|'(?:\\[^\r\n]|[^'\\\r\n])*'|[^\r\n]+?(?=\s*(?:[,;])?\s*(?:${secretKeyPattern.source})[\w-]*\s*[:=]|\s+rejected\b|$))`, "gi");
39
+ const embeddedSecretAssignmentPattern = new RegExp(String.raw`\b([\w-]*(?:${secretKeyPattern.source})[\w-]*["']?\s*[:=]\s*)(?!\[redacted\](?=$|[\s,;}&]))(?:"(?:\\[^\r\n]|[^"\\\r\n])*"|'(?:\\[^\r\n]|[^'\\\r\n])*'|[^\s,;&#&]+)`, "gi");
40
+ /**
41
+ * Removes credentials inside free text, for example an error message. URL credentials, bearer tokens, and
42
+ * `name=value` pairs with a secret name are replaced with `[redacted]`.
43
+ */
44
+ function redactInspectionText(value) {
45
+ return value.replace(embeddedUrlCredentialPattern, `$1${redactedInspectionValue}@`).replace(embeddedAuthorizationPattern, `$1${redactedInspectionValue}`).replace(embeddedCookiePattern, `$1${redactedInspectionValue}`).replace(embeddedBearerPattern, `Bearer ${redactedInspectionValue}`).replace(embeddedSecretAssignmentPattern, `$1${redactedInspectionValue}`);
46
+ }
47
+ export { redactInspectionText as n, summarizeDefinitions as r, collectViteHubResourceSummaries as t };
@@ -1,2 +1 @@
1
- import { openDefaultLibsqlJournal } from "@vite-hub/agent/internal/default-invocations-libsql";
2
- export { openDefaultLibsqlJournal };
1
+ export { openDefaultLibsqlJournal } from "@vite-hub/agent/internal/default-invocations-libsql";
@@ -1,3 +1 @@
1
- //#region src/internal/disabled-redis-driver.d.ts
2
- export default function disabledRedisDriver(): never;
3
- //#endregion
1
+ export default function disabledRedisDriver(): never;
@@ -1,7 +1,6 @@
1
- import { t as viteHubErrorDiagnostics } from "../error-diagnostics-Bm3JKYjz.js";
2
- //#region src/internal/disabled-redis-driver.ts
1
+ import { t as viteHubErrorDiagnostics } from "../error-diagnostics-CBtvqI30.js";
2
+ // src/internal/disabled-redis-driver.ts
3
3
  function disabledRedisDriver() {
4
4
  throw viteHubErrorDiagnostics.VITE_HUB_R0001({ message: "[vitehub] The Redis KV driver is unavailable because this ViteHub build does not configure a store that can use Redis." });
5
5
  }
6
- //#endregion
7
6
  export { disabledRedisDriver as default };
@@ -1,3 +1 @@
1
- //#region src/internal/disabled-upstash-driver.d.ts
2
- export default function disabledUpstashDriver(): never;
3
- //#endregion
1
+ export default function disabledUpstashDriver(): never;
@@ -1,7 +1,6 @@
1
- import { t as viteHubErrorDiagnostics } from "../error-diagnostics-Bm3JKYjz.js";
2
- //#region src/internal/disabled-upstash-driver.ts
1
+ import { t as viteHubErrorDiagnostics } from "../error-diagnostics-CBtvqI30.js";
2
+ // src/internal/disabled-upstash-driver.ts
3
3
  function disabledUpstashDriver() {
4
4
  throw viteHubErrorDiagnostics.VITE_HUB_R0001({ message: "[vitehub] The Upstash KV driver is unavailable because this ViteHub build does not configure an Upstash store." });
5
5
  }
6
- //#endregion
7
6
  export { disabledUpstashDriver as default };
@@ -1,8 +1,6 @@
1
1
  import { LoadHook, ResolveHook } from "node:module";
2
- //#region src/internal/test-loader.d.ts
3
2
  export declare function initialize(data: {
4
3
  server: string;
5
4
  }): void;
6
5
  export declare const resolve: ResolveHook;
7
- export declare const load: LoadHook;
8
- //#endregion
6
+ export declare const load: LoadHook;
@@ -1,8 +1,8 @@
1
- import { t as viteHubErrorDiagnostics } from "../error-diagnostics-Bm3JKYjz.js";
1
+ import { t as viteHubErrorDiagnostics } from "../error-diagnostics-CBtvqI30.js";
2
2
  import { isAbsolute } from "node:path";
3
3
  import { existsSync } from "node:fs";
4
4
  import { fileURLToPath, pathToFileURL } from "node:url";
5
- //#region src/internal/test-loader.ts
5
+ // src/internal/test-loader.ts
6
6
  /**
7
7
  * The module hooks of `vite-hub/test/register`. They ask the app's Vite server for the modules that `vitehub()`
8
8
  * generates, and for app imports that Node cannot resolve. Node resolves and loads every other module itself.
@@ -71,5 +71,4 @@ const load = async (url, context, nextLoad) => {
71
71
  source
72
72
  };
73
73
  };
74
- //#endregion
75
74
  export { initialize, load, resolve };
@@ -3,7 +3,7 @@ import { pathToFileURL } from "node:url";
3
3
  import { randomBytes } from "node:crypto";
4
4
  import { createServer } from "node:http";
5
5
  import { parentPort, workerData } from "node:worker_threads";
6
- //#region src/internal/test-server.ts
6
+ // src/internal/test-server.ts
7
7
  /**
8
8
  * The Vite server of `vite-hub/test/register`. It runs one Vite server of the app, as Vitest does, and answers the
9
9
  * module hooks of the test processes over a local port. It runs outside the test's main thread because Node blocks
@@ -20,7 +20,7 @@ const [root, addressFile, runner] = parentPort ? [workerData.root] : [
20
20
  ];
21
21
  async function startVite() {
22
22
  process.env.VITEST ??= "true";
23
- const [{ createServer }, { loadViteHubCliConfig }] = await Promise.all([import("vite"), import("../cli-config-UAGTmuFa.js")]);
23
+ const [{ createServer }, { loadViteHubCliConfig }] = await Promise.all([import("vite"), import("../cli-config-DgpmE_7z.js")]);
24
24
  let created;
25
25
  await loadViteHubCliConfig(root, "serve", "test", { async resolveViteConfig(inlineConfig, _command, mode) {
26
26
  created = await createServer({
@@ -80,5 +80,4 @@ http.listen(0, "127.0.0.1", () => {
80
80
  }
81
81
  }, 1e3);
82
82
  });
83
- //#endregion
84
83
  export {};
@@ -1,4 +1,4 @@
1
- //#region src/console/internal.ts
1
+ // src/console/internal.ts
2
2
  const consoleStateKey = Symbol.for("vitehub.console.state");
3
3
  /** `@vite-hub/schedule` reads the Schedules that the Console may run from this slot of the global object. */
4
4
  const consoleSchedulesKey = Symbol.for("vitehub.console.schedules");
@@ -27,5 +27,4 @@ function resolveConsoleSuppliedInvocations() {
27
27
  const invocations = resolveConsoleInvocations();
28
28
  return invocations && Reflect.get(invocations, consoleSuppliedInvocationsKey) === true ? invocations : void 0;
29
29
  }
30
- //#endregion
31
30
  export { resolveConsoleSuppliedInvocations as a, resolveConsoleInvocations as i, consoleState as n, markConsoleSuppliedInvocations as r, consoleSchedulesKey as t };
@@ -1,11 +1,10 @@
1
- import { o as ConsoleAccess } from "./access-policy-CGXhO3Ee.js";
2
- import "./documents-CboVhYFz.js";
3
- import "./project-CufkVP1u.js";
1
+ import { o as ConsoleAccess } from "./access-policy-CUbJLvlR.js";
2
+ import "./documents-LtkKCxtu.js";
3
+ import "./project-DKBIHOf4.js";
4
4
  import { AgentInvocations } from "@vite-hub/agent";
5
5
  import { BlobStorage, MediaRecord } from "@vite-hub/blob";
6
6
  import { RuntimeDatabaseEntry } from "@vite-hub/database";
7
7
  import { ServerEnvDescription } from "@vite-hub/env";
8
- //#region src/console/runtime/server/media.d.ts
9
8
  /** One file as the media library shows it. It mirrors `MediaRecord` without the provider ETag and hash. */
10
9
  interface ConsoleMediaFile extends Omit<MediaRecord, "etag" | "hash"> {
11
10
  /** File name without the folder. */
@@ -34,8 +33,6 @@ interface ConsoleMediaUploadInput {
34
33
  }
35
34
  /** Stores one uploaded file of the media library of a section. */
36
35
  declare function uploadConsoleMedia(input: ConsoleMediaUploadInput, access: ConsoleAccess): Promise<ConsoleMediaUpload>;
37
- //#endregion
38
- //#region src/console/internal.d.ts
39
36
  /** The Console reads each database with `db` and lists its tables from `schema`. A Definition is SQLite or Postgres. */
40
37
  type ConsoleDatabaseEntry = Pick<RuntimeDatabaseEntry<Record<string, unknown>>, "db" | "schema"> | {
41
38
  db: Omit<RuntimeDatabaseEntry<Record<string, unknown>, "postgresql">["db"], "$replica">;
@@ -55,5 +52,4 @@ interface ConsoleBlobInspection {
55
52
  /** Loads the media library. Only builds with Blob install it, so other builds ship without it. */
56
53
  media?: () => Promise<ConsoleMediaLibrary>;
57
54
  }
58
- //#endregion
59
55
  export { ConsoleMediaLibrary as i, ConsoleDatabaseEntry as n, ConsoleDatabaseInspection as r, ConsoleBlobInspection as t };
@@ -1,5 +1,5 @@
1
1
  import { defineDiagnostics } from "nostics";
2
- //#region ../internal/src/invariant.ts
2
+ // ../internal/src/invariant.ts
3
3
  const invariantDiagnostics = /*#__PURE__*/ defineDiagnostics({
4
4
  docsBase: "https://vitehub.dev/docs/development/diagnostics",
5
5
  codes: { INTERNAL_INVARIANT_FAILED: {
@@ -18,5 +18,4 @@ function invariantError(what) {
18
18
  function invariant(condition, what) {
19
19
  if (!condition) throw invariantError(what);
20
20
  }
21
- //#endregion
22
21
  export { invariantError as n, invariant as t };
@@ -1,8 +1,8 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
2
- import { t as consoleHttpError } from "./http-error-Bs6e8_-8.js";
3
- import { t as getConsoleInvocations } from "./invocations-CK_-G540.js";
1
+ import { t as consoleHttpError } from "./http-error-BorAxJYM.js";
2
+ import { t as getConsoleInvocations } from "./invocations-8NThe8Bx.js";
3
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
4
4
  import { invocationPageChanges } from "@vite-hub/agent";
5
- //#region src/console/runtime/server/invocation-page-undo.ts
5
+ // src/console/runtime/server/invocation-page-undo.ts
6
6
  function actionError(statusCode, message) {
7
7
  return consoleHttpError(statusCode, viteHubErrorDiagnostics.VITE_HUB_R0046({ message }));
8
8
  }
@@ -16,7 +16,7 @@ async function undoConsolePageChange(input, context) {
16
16
  const record = await invocations.get(input.id);
17
17
  if (!record) throw consoleHttpError(404, viteHubErrorDiagnostics.VITE_HUB_R0054({ message: "Invocation not found" }));
18
18
  const change = invocationPageChanges(record.observations).pageChanges.find((item) => item.id === input.change);
19
- if (!change) throw actionError(404, `This Invocation has no page change ${JSON.stringify(input.change)}. Read the change ids with \`vitehub agent invocations show ${input.id}\`.`);
19
+ if (!change) throw actionError(404, `This Invocation has no page change ${JSON.stringify(input.change)}. Read the change ids with \`vitehub agent invocations get ${input.id}\`.`);
20
20
  const { agentRealtime } = await import("@vite-hub/realtime/agent");
21
21
  if (!agentRealtime.available()) throw actionError(409, "This app has no Realtime, so it cannot reach the page.");
22
22
  const [error, answer] = await agentRealtime.request("agent-pages", change.page, {
@@ -50,5 +50,4 @@ async function undoConsolePageChange(input, context) {
50
50
  } : !restored && "error" in page && typeof page.error === "string" ? { error: page.error } : {}
51
51
  };
52
52
  }
53
- //#endregion
54
53
  export { undoConsolePageChange };
@@ -1,9 +1,9 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
2
- import { i as resolveConsoleInvocations, n as consoleState } from "./internal-BreyUsQ6.js";
1
+ import { i as resolveConsoleInvocations, n as consoleState } from "./internal-0C_CC601.js";
2
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
3
3
  import { createMemoryAgentInvocationStore, defineAgentInvocations } from "@vite-hub/agent/server";
4
4
  import { defaultAgentInvocationsDatabase } from "@vite-hub/agent/internal/default-invocations-core";
5
5
  import { resolveDefaultAgentInvocations } from "@vite-hub/agent/invocations/app";
6
- //#region src/console/runtime/server/invocations.ts
6
+ // src/console/runtime/server/invocations.ts
7
7
  const consoleUsageIndexes = /* @__PURE__ */ new WeakMap();
8
8
  function d1UsageClient(binding) {
9
9
  const prepare = (statement) => binding.prepare(statement.sql).bind(...statement.args ?? []);
@@ -22,7 +22,7 @@ function createUsageIndex(invocations) {
22
22
  if (!database) return void 0;
23
23
  if (database.driver === "libsql") {
24
24
  let index;
25
- const open = () => index ??= Promise.all([database.open(), import("./usage-index-BsGAFzyq.js")]).then(([client, { createConsoleUsageIndex }]) => createConsoleUsageIndex(client)).catch((error) => {
25
+ const open = () => index ??= Promise.all([database.open(), import("./usage-index-CR_xTrXO.js")]).then(([client, { createConsoleUsageIndex }]) => createConsoleUsageIndex(client)).catch((error) => {
26
26
  index = void 0;
27
27
  throw error;
28
28
  });
@@ -38,7 +38,7 @@ function createUsageIndex(invocations) {
38
38
  const indexes = /* @__PURE__ */ new WeakMap();
39
39
  const open = async () => {
40
40
  const binding = await database.open();
41
- const { createConsoleUsageIndex } = await import("./usage-index-BsGAFzyq.js");
41
+ const { createConsoleUsageIndex } = await import("./usage-index-CR_xTrXO.js");
42
42
  let index = indexes.get(binding);
43
43
  if (!index) {
44
44
  index = createConsoleUsageIndex(d1UsageClient(binding), { requestScoped: true });
@@ -82,5 +82,4 @@ function installConsoleInvocations(projectRoot, configuredInvocations) {
82
82
  }
83
83
  return state.invocations = invocations;
84
84
  }
85
- //#endregion
86
85
  export { getConsoleUsageIndex as n, installConsoleInvocations as r, getConsoleInvocations as t };
@@ -1,4 +1,4 @@
1
- //#region src/console/runtime/server/limits.ts
1
+ // src/console/runtime/server/limits.ts
2
2
  /** Request limits and action names that the Console operations declare without loading their handlers. */
3
3
  const maximumConsoleRpcRequestBytes = 65536;
4
4
  /** Bodies carry a whole Markdown document, so they may exceed the ordinary Console request limit. */
@@ -30,5 +30,4 @@ const consoleDocumentActionNames = [
30
30
  "sessions",
31
31
  "unschedule"
32
32
  ];
33
- //#endregion
34
33
  export { maximumConsoleMediaRequestBytes as a, maximumConsoleDocumentRequestBytes as i, consoleDocumentActionNames as n, maximumConsoleMediaUploadBytes as o, consoleMediaUploadRequestBytes as r, maximumConsoleRpcRequestBytes as s, consoleAttachmentRequestBytes as t };
@@ -0,0 +1,19 @@
1
+ /** A value in `fields`. An object or an array is dropped, and the event counts it in `browserError.droppedFields`. */
2
+ export type BrowserReportField = string | number | boolean | null;
3
+ export interface BrowserReportOptions {
4
+ /** What the page was doing, such as `"save-order"`. The server keeps 100 characters. */
5
+ action?: string;
6
+ /** `"warn"` logs a warning in place of an error. Defaults to `"error"`. */
7
+ level?: "error" | "warn";
8
+ /**
9
+ * At most 20 flat values, such as the HTTP status, the request id, or the id of the record that failed. Names start
10
+ * with a letter and have at most 40 letters, digits, `_`, `.`, or `-`. The server keeps 300 characters of a string.
11
+ */
12
+ fields?: Record<string, BrowserReportField>;
13
+ }
14
+ /**
15
+ * Send an error that the page caught, or a warning, to the server logs, with `observability.browserErrors`. It uses the
16
+ * route, the limit of 10 reports a page, and the one report a message rule of the uncaught errors. It never throws. On
17
+ * the server, or when `browserErrors` is off, it does nothing.
18
+ */
19
+ export declare function reportBrowserError(error: unknown, options?: BrowserReportOptions): void;
@@ -0,0 +1,11 @@
1
+ // src/logs/client.ts
2
+ /**
3
+ * Send an error that the page caught, or a warning, to the server logs, with `observability.browserErrors`. It uses the
4
+ * route, the limit of 10 reports a page, and the one report a message rule of the uncaught errors. It never throws. On
5
+ * the server, or when `browserErrors` is off, it does nothing.
6
+ */
7
+ function reportBrowserError(error, options = {}) {
8
+ const report = Reflect.get(globalThis, Symbol.for("vite-hub.browserErrors"));
9
+ if (typeof report === "function") report("handled", error, options);
10
+ }
11
+ export { reportBrowserError };
@@ -1,6 +1,4 @@
1
- import { a as LogSource } from "../source-S-LChQvw.js";
2
- //#region src/logs/host.d.ts
1
+ import { a as LogSource } from "../source-DemBtwla.js";
3
2
  /** The host connects a source. It remains the owner of capture and provider setup. */
4
3
  export declare function installLogSource(projectRoot: string, source: LogSource): void;
5
- export declare function getLogSource(): LogSource | undefined;
6
- //#endregion
4
+ export declare function getLogSource(): LogSource | undefined;
package/dist/logs/host.js CHANGED
@@ -1,2 +1 @@
1
- import { n as installLogSource, t as getLogSource } from "../host-CkL0jjBq.js";
2
- export { getLogSource, installLogSource };
1
+ export { t as getLogSource, n as installLogSource } from "../host-DeNPYIeV.js";
@@ -1,2 +1,2 @@
1
- import { n as createLogBuffer, t as LogBuffer } from "../memory-2bbl4hcV.js";
1
+ import { n as createLogBuffer, t as LogBuffer } from "../memory-GK5ZGWrp.js";
2
2
  export { LogBuffer, createLogBuffer };
@@ -1,2 +1 @@
1
- import { t as createLogBuffer } from "../memory-DTmq-Z6x.js";
2
- export { createLogBuffer };
1
+ export { t as createLogBuffer } from "../memory-D3EJS_Bp.js";
@@ -1,2 +1,2 @@
1
- import { a as LogSource, c as logCursorExpiredError, d as logPageSchema, f as logQuerySchema, i as LogQuery, l as logEntrySchema, m as parseLogQuery, n as LogLevel, o as LogSourceInfo, p as logSourceInfoSchema, r as LogPage, s as isLogCursorExpiredError, t as LogEntry, u as logLevelSchema } from "../source-S-LChQvw.js";
1
+ import { a as LogSource, c as logCursorExpiredError, d as logPageSchema, f as logQuerySchema, i as LogQuery, l as logEntrySchema, m as parseLogQuery, n as LogLevel, o as LogSourceInfo, p as logSourceInfoSchema, r as LogPage, s as isLogCursorExpiredError, t as LogEntry, u as logLevelSchema } from "../source-DemBtwla.js";
2
2
  export { LogEntry, LogLevel, LogPage, LogQuery, LogSource, LogSourceInfo, isLogCursorExpiredError, logCursorExpiredError, logEntrySchema, logLevelSchema, logPageSchema, logQuerySchema, logSourceInfoSchema, parseLogQuery };
@@ -1,2 +1 @@
1
- import { a as logPageSchema, c as parseLogQuery, i as logLevelSchema, n as logCursorExpiredError, o as logQuerySchema, r as logEntrySchema, s as logSourceInfoSchema, t as isLogCursorExpiredError } from "../source-D4wWtoHh.js";
2
- export { isLogCursorExpiredError, logCursorExpiredError, logEntrySchema, logLevelSchema, logPageSchema, logQuerySchema, logSourceInfoSchema, parseLogQuery };
1
+ export { t as isLogCursorExpiredError, n as logCursorExpiredError, r as logEntrySchema, i as logLevelSchema, a as logPageSchema, o as logQuerySchema, s as logSourceInfoSchema, c as parseLogQuery } from "../source-DYFndd0W.js";
package/dist/logs.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as LogSource, c as logCursorExpiredError, i as LogQuery, m as parseLogQuery, n as LogLevel, o as LogSourceInfo, r as LogPage, t as LogEntry } from "./source-S-LChQvw.js";
2
- import { n as createLogBuffer, t as LogBuffer } from "./memory-2bbl4hcV.js";
1
+ import { n as createLogBuffer, t as LogBuffer } from "./memory-GK5ZGWrp.js";
2
+ import { a as LogSource, c as logCursorExpiredError, i as LogQuery, m as parseLogQuery, n as LogLevel, o as LogSourceInfo, r as LogPage, t as LogEntry } from "./source-DemBtwla.js";
3
3
  export { type LogBuffer, type LogEntry, type LogLevel, type LogPage, type LogQuery, type LogSource, type LogSourceInfo, createLogBuffer, logCursorExpiredError, parseLogQuery };
package/dist/logs.js CHANGED
@@ -1,3 +1,3 @@
1
- import { c as parseLogQuery, n as logCursorExpiredError } from "./source-D4wWtoHh.js";
2
- import { t as createLogBuffer } from "./memory-DTmq-Z6x.js";
1
+ import { t as createLogBuffer } from "./memory-D3EJS_Bp.js";
2
+ import { c as parseLogQuery, n as logCursorExpiredError } from "./source-DYFndd0W.js";
3
3
  export { createLogBuffer, logCursorExpiredError, parseLogQuery };
@@ -1,4 +1,4 @@
1
- //#region src/console/runtime/mcp-client.ts
1
+ // src/console/runtime/mcp-client.ts
2
2
  /**
3
3
  * The MCP client section of the Console: an MCP client that runs on the server. It connects to MCP servers over Streamable
4
4
  * HTTP as the person who signed in to the Console, and keeps each grant, token, and MCP session on the server. The
@@ -6,5 +6,4 @@
6
6
  */
7
7
  /** Path of the OAuth callback page under the Console mount. Authorization servers redirect the browser here. */
8
8
  const consoleMcpCallbackPath = "/_vitehub/mcp-client/callback";
9
- //#endregion
10
9
  export { consoleMcpCallbackPath as t };
@@ -1,11 +1,11 @@
1
- import { n as isRecord } from "./object-D8pRdprI.js";
2
- import { t as consoleDiagnostic } from "./diagnostics-9U_fYxMy.js";
3
- import { m as readConsoleOperationUser } from "./access-BDST818p.js";
4
- import { i as consoleRequestError, r as consolePublicURL } from "./request-DbFfYmCu.js";
5
- import { r as consoleMountBase } from "./console-route-CBuqZ4wO.js";
6
- import { r as getConsoleSections } from "./sections-C83x0slv.js";
7
- import { t as consoleMcpCallbackPath } from "./mcp-client-CTbTbn7d.js";
8
- import { n as getActiveCloudflareEnv } from "./cloudflare-env-lookup-DKXdr4P_.js";
1
+ import { r as consoleMountBase } from "./console-route-DbdnLkkF.js";
2
+ import { t as consoleMcpCallbackPath } from "./mcp-client-Bkh-khvr.js";
3
+ import { m as readConsoleOperationUser } from "./access-BBHk9b5P.js";
4
+ import { n as getActiveCloudflareEnv } from "./cloudflare-env-lookup-DcN7pGlv.js";
5
+ import { n as isRecord } from "./object-DRSmpe04.js";
6
+ import { i as consoleRequestError, r as consolePublicURL } from "./request-CQ8TkHLh.js";
7
+ import { r as getConsoleSections } from "./sections-BNTdIEJw.js";
8
+ import { t as consoleDiagnostic } from "./diagnostics-B2cqlCSz.js";
9
9
  import * as v from "valibot";
10
10
  import { importSealKey, sealWithKey, unsealWithKey } from "@vite-hub/env/seal";
11
11
  import { UnauthorizedError, auth, discoverOAuthServerInfo, extractWWWAuthenticateParams } from "@modelcontextprotocol/sdk/client/auth.js";
@@ -13,7 +13,7 @@ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
13
13
  import { StreamableHTTPClientTransport, StreamableHTTPError } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
14
14
  import { McpError, ResultSchema } from "@modelcontextprotocol/sdk/types.js";
15
15
  import { OAuthClientInformationSchema, OAuthTokensSchema } from "@modelcontextprotocol/sdk/shared/auth.js";
16
- //#region src/console/runtime/server/mcp-client-store.ts
16
+ // src/console/runtime/server/mcp-client-store.ts
17
17
  const stateKey = Symbol.for("vitehub.console.mcp-client");
18
18
  const scope = globalThis;
19
19
  function memoryRecords() {
@@ -183,8 +183,7 @@ function resetConsoleMcpRecords() {
183
183
  delete scope[stateKey];
184
184
  durable = void 0;
185
185
  }
186
- //#endregion
187
- //#region src/console/runtime/server/mcp-client.ts
186
+ // src/console/runtime/server/mcp-client.ts
188
187
  /** The MCP servers that each origin announced, for a minute. */
189
188
  const discovered = /* @__PURE__ */ new Map();
190
189
  const connectionRuntimes = /* @__PURE__ */ new Map();
@@ -192,6 +191,7 @@ const completingAuthorizations = /* @__PURE__ */ new Set();
192
191
  const pendingLifetimeMs = 6e5;
193
192
  const discoveryLifetimeMs = 6e4;
194
193
  const requestTimeoutMs = 3e4;
194
+ const maximumPages = 20;
195
195
  const callTimeoutMs = 12e4;
196
196
  const maximumConnections = 20;
197
197
  const clientInfo = {
@@ -934,22 +934,36 @@ const listMethods = {
934
934
  method: "tools/list"
935
935
  }
936
936
  };
937
- /** One page of tools, resources, resource templates, or prompts. */
937
+ /**
938
+ * All tools, resources, resource templates, or prompts, read page by page in one MCP session. A list of more than 20
939
+ * pages fails with `CONSOLE_MCP_LIST_INCOMPLETE`.
940
+ */
938
941
  async function listConsoleMcpItems(caller, input) {
939
942
  return withConnection(caller, input.id, async (connection) => {
940
943
  const { field, method } = listMethods[input.kind];
941
944
  try {
942
- const result = await withClient(caller, connection, (client) => client.request({
943
- method,
944
- params: input.cursor ? { cursor: input.cursor } : {}
945
- }, ResultSchema, { timeout: requestTimeoutMs }));
946
- const values = Reflect.get(result, field);
947
- const items = Array.isArray(values) ? values.filter(isRecord) : [];
948
- const nextCursor = text(Reflect.get(result, "nextCursor"));
945
+ const { cursor, items } = await withClient(caller, connection, async (client) => {
946
+ const items = [];
947
+ let cursor;
948
+ for (let page = 0; page < maximumPages; page++) {
949
+ const result = await client.request({
950
+ method,
951
+ params: cursor ? { cursor } : {}
952
+ }, ResultSchema, { timeout: requestTimeoutMs });
953
+ const values = Reflect.get(result, field);
954
+ if (Array.isArray(values)) items.push(...values.filter(isRecord));
955
+ cursor = text(Reflect.get(result, "nextCursor"));
956
+ if (!cursor) break;
957
+ }
958
+ return {
959
+ cursor,
960
+ items
961
+ };
962
+ });
963
+ if (cursor) throw consoleRequestError(502, `The MCP server sent more than ${maximumPages} pages of ${input.kind}. The Console shows no part of a list that it cannot read fully.`, "CONSOLE_MCP_LIST_INCOMPLETE");
949
964
  return {
950
965
  connection: describe(connection),
951
- items,
952
- ...nextCursor ? { nextCursor } : {}
966
+ items
953
967
  };
954
968
  } catch (error) {
955
969
  if (error instanceof McpError && error.code === -32601) return {
@@ -1020,5 +1034,4 @@ function resetConsoleMcp() {
1020
1034
  resetConsoleMcpRecords();
1021
1035
  discovered.clear();
1022
1036
  }
1023
- //#endregion
1024
1037
  export { callConsoleMcpTool, completeConsoleMcp, connectConsoleMcp, disconnectConsoleMcp, getConsoleMcpPrompt, listConsoleMcp, listConsoleMcpItems, readConsoleMcpResource, reconnectConsoleMcp, resetConsoleMcp };
@@ -1,4 +1,3 @@
1
- //#region src/console/runtime/mcp-client.d.ts
2
1
  /**
3
2
  * The MCP client section of the Console: an MCP client that runs on the server. It connects to MCP servers over Streamable
4
3
  * HTTP as the person who signed in to the Console, and keeps each grant, token, and MCP session on the server. The
@@ -98,10 +97,9 @@ interface ConsoleMcpConnectResult {
98
97
  authorizationUrl?: string;
99
98
  connection: ConsoleMcpConnection;
100
99
  }
101
- /** One page of a list that an MCP server returns. The items are as the server sent them. */
100
+ /** All items of a list that an MCP server returns, from all its pages. The items are as the server sent them. */
102
101
  interface ConsoleMcpPage {
103
102
  items: Record<string, unknown>[];
104
- nextCursor?: string;
105
103
  }
106
104
  type ConsoleMcpListKind = "prompts" | "resource-templates" | "resources" | "tools";
107
105
  /** The answer of one request: the result, or the JSON-RPC error that the server returned instead. */
@@ -114,5 +112,4 @@ interface ConsoleMcpOutcome {
114
112
  };
115
113
  result?: Record<string, unknown>;
116
114
  }
117
- //#endregion
118
115
  export { ConsoleMcpGrant as a, ConsoleMcpOutcome as c, ConsoleMcpServerInfo as d, ConsoleMcpStatus as f, ConsoleMcpConnection as i, ConsoleMcpOverview as l, ConsoleMcpCandidate as n, ConsoleMcpIdentity as o, consoleMcpCallbackPath as p, ConsoleMcpConnectResult as r, ConsoleMcpListKind as s, ConsoleMcpAuth as t, ConsoleMcpPage as u };
@@ -1,4 +1,3 @@
1
- //#region src/console/runtime/client/media.d.ts
2
1
  /**
3
2
  * Media for the document editor. The editor asks a picker for media when someone chooses **Image…** in the `/` menu,
4
3
  * pastes or drops image files into the body, or chooses a file for a Blob reference field such as `image()`. Provide a
@@ -70,5 +69,4 @@ interface ConsoleMediaPicker {
70
69
  declare function provideConsoleMediaPicker(picker: ConsoleMediaPicker): void;
71
70
  /** The media picker that a parent provided, or undefined when the editor should use its own. */
72
71
  declare function useConsoleMediaPicker(): ConsoleMediaPicker | undefined;
73
- //#endregion
74
72
  export { ConsoleMediaRequest as a, ConsoleMediaReference as i, ConsoleMediaItem as n, provideConsoleMediaPicker as o, ConsoleMediaPicker as r, useConsoleMediaPicker as s, ConsoleMediaDetails as t };
@@ -1,11 +1,11 @@
1
- import { r as isRecordOrFunction } from "./object-D8pRdprI.js";
2
- import { r as consoleAccessAllows } from "./access-BDST818p.js";
3
- import { i as consoleRequestError } from "./request-DbFfYmCu.js";
4
- import { t as getConsoleBlob } from "./blob-CpvlM8jp.js";
5
- import { a as maximumConsoleMediaRequestBytes, o as maximumConsoleMediaUploadBytes } from "./limits-BUlwWYQE.js";
6
- import { r as getConsoleSections } from "./sections-C83x0slv.js";
7
- import { c as runConsoleDocumentAction, n as consoleDocumentActionContext, o as loadConsoleDocumentActions, t as consoleActionError } from "./documents-CjJTCrY8.js";
8
- //#region src/console/runtime/server/media.ts
1
+ import { r as consoleAccessAllows } from "./access-BBHk9b5P.js";
2
+ import { t as getConsoleBlob } from "./blob-eH6j0AQj.js";
3
+ import { c as runConsoleDocumentAction, n as consoleDocumentActionContext, o as loadConsoleDocumentActions, t as consoleActionError } from "./documents-BOYwZ5g4.js";
4
+ import { i as consoleRequestError } from "./request-CQ8TkHLh.js";
5
+ import { r as getConsoleSections } from "./sections-BNTdIEJw.js";
6
+ import { r as isRecordOrFunction } from "./object-DRSmpe04.js";
7
+ import { a as maximumConsoleMediaRequestBytes, o as maximumConsoleMediaUploadBytes } from "./limits-BLo31qDR.js";
8
+ // src/console/runtime/server/media.ts
9
9
  /** Largest JSON request of a media action, and largest file of one upload. */
10
10
  /**
11
11
  * The media library of a document editor section. Blob owns storage: every change runs through `blob.media` of the Blob
@@ -474,5 +474,4 @@ async function uploadConsoleMedia(input, access) {
474
474
  };
475
475
  });
476
476
  }
477
- //#endregion
478
477
  export { consoleMediaActionNames, consoleMediaName, consoleMediaType, maximumConsoleMediaRequestBytes, maximumConsoleMediaUploadBytes, runConsoleMediaAction, uploadConsoleMedia };
@@ -1,8 +1,8 @@
1
- import { n as callOperationRpc, r as operationRpcPath } from "./operation-rpc-DI9txNxK.js";
2
- import { t as consoleRpcHeader } from "./rpc-DIUA61pv.js";
3
- import { a as projectRequest, s as resolveProjectUrl } from "./project-DlWTGB7h.js";
4
- import { t as ConsoleRequestError, u as requestConsole } from "./request-DE8w_cSM.js";
5
- //#region src/console/runtime/client/media-library.ts
1
+ import { n as callOperationRpc, r as operationRpcPath } from "./operation-rpc-BMdfapja.js";
2
+ import { t as ConsoleRequestError, u as requestConsole } from "./request-Cl68STwT.js";
3
+ import { a as projectRequest, s as resolveProjectUrl } from "./project-DRC67Uiu.js";
4
+ import { t as consoleRpcHeader } from "./rpc-D3tsx5lZ.js";
5
+ // src/console/runtime/client/media-library.ts
6
6
  /** Every media type, for the type filter. */
7
7
  const consoleMediaTypes = [
8
8
  "image",
@@ -275,5 +275,4 @@ function rememberConsoleMediaFolder(section, folder) {
275
275
  globalThis.localStorage?.setItem(`${folderKey}:${section}`, folder);
276
276
  } catch {}
277
277
  }
278
- //#endregion
279
278
  export { rememberedConsoleMediaFolder as S, consoleMediaUrl as _, consoleFolderName as a, isConsoleMediaPathname as b, consoleMediaAspects as c, consoleMediaFileUrl as d, consoleMediaFormat as f, consoleMediaTypes as g, consoleMediaTypeIcons as h, consoleFocalPosition as i, consoleMediaBase as l, consoleMediaType as m, consoleCropName as n, consoleFolderTrail as o, consoleMediaTransformable as p, consoleFocalCropPosition as r, consoleMediaAccepts as s, consoleAspectRatio as t, consoleMediaDate as u, consoleMediaVariantUrl as v, rememberConsoleMediaFolder as x, createConsoleMediaClient as y };
@@ -1,4 +1,3 @@
1
- //#region src/console/runtime/client/media-library.d.ts
2
1
  interface ConsoleMediaFocal {
3
2
  x: number;
4
3
  y: number;
@@ -208,5 +207,4 @@ declare function consoleMediaAccepts(accept: readonly string[] | undefined, cont
208
207
  /** The folder that uploads from the editor go to: the last folder someone opened in the library. */
209
208
  declare function rememberedConsoleMediaFolder(section: string): string;
210
209
  declare function rememberConsoleMediaFolder(section: string, folder: string): void;
211
- //#endregion
212
210
  export { consoleMediaTypeIcons as A, consoleMediaAspects as C, consoleMediaFormat as D, consoleMediaFileUrl as E, isConsoleMediaPathname as F, rememberConsoleMediaFolder as I, rememberedConsoleMediaFolder as L, consoleMediaUrl as M, consoleMediaVariantUrl as N, consoleMediaTransformable as O, createConsoleMediaClient as P, consoleMediaAccepts as S, consoleMediaDate as T, consoleCropName as _, ConsoleMediaCropReplacement as a, consoleFolderName as b, ConsoleMediaInfo as c, ConsoleMediaReferenceDocument as d, ConsoleMediaType as f, consoleAspectRatio as g, ConsoleMediaVariant as h, ConsoleMediaCrop as i, consoleMediaTypes as j, consoleMediaType as k, ConsoleMediaListQuery as l, ConsoleMediaUploadResult as m, ConsoleMediaBulkResult as n, ConsoleMediaFile as o, ConsoleMediaUploadOptions as p, ConsoleMediaClient as r, ConsoleMediaFocal as s, ConsoleMediaAccess as t, ConsoleMediaListing as u, consoleFocalCropPosition as v, consoleMediaBase as w, consoleFolderTrail as x, consoleFocalPosition as y };