vite-hub 0.3.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/README.md +34 -36
  2. package/dist/_internal/runtime/browser-errors.d.ts +1 -1
  3. package/dist/_internal/runtime/browser-errors.js +1 -1
  4. package/dist/{access-F0YP5D5E.js → access-BDST818p.js} +6 -6
  5. package/dist/{access-policy-BsB3QVe5.d.ts → access-policy-CGXhO3Ee.d.ts} +3 -3
  6. package/dist/{access-policy-B_DCpZUt.js → access-policy-DjBKLo3c.js} +2 -2
  7. package/dist/{account-Bsu-LBOF.d.ts → account-BnOAU055.d.ts} +1 -1
  8. package/dist/{agent-invocations.post-DIm8tJV2.js → agent-invocations.post-CcPvfA0n.js} +7 -7
  9. package/dist/{agents-DnHexzTJ.js → agents-BDeazoAW.js} +2 -2
  10. package/dist/{agents-y5hBFHUQ.js → agents-BoWau_ei.js} +1 -1
  11. package/dist/{auth-BFVHYizM.d.ts → auth-BZOy7obk.d.ts} +2 -2
  12. package/dist/{auth-types-DWpTBZvp.d.ts → auth-types-CyqhWvYF.d.ts} +1 -1
  13. package/dist/bin.js +15 -7
  14. package/dist/{blob-CiUmptIp.d.ts → blob-CFLwMsjH.d.ts} +1 -1
  15. package/dist/{blob-BRV6_wZa.js → blob-CpvlM8jp.js} +3 -3
  16. package/dist/cache/operations.d.ts +1 -1
  17. package/dist/cache/operations.js +2 -2
  18. package/dist/cache.js +1 -1
  19. package/dist/choices/vue.d.ts +1 -0
  20. package/dist/choices/vue.js +2 -0
  21. package/dist/choices.d.ts +1 -0
  22. package/dist/choices.js +2 -0
  23. package/dist/cli-config-UAGTmuFa.js +2 -0
  24. package/dist/{cli-config-Bpjjfz5j.js → cli-config-wxKjF2Y0.js} +1 -16
  25. package/dist/console/auth-types.d.ts +1 -1
  26. package/dist/console/auth.d.ts +1 -1
  27. package/dist/console/auth.js +1 -1
  28. package/dist/console/runtime/client/account.d.ts +1 -1
  29. package/dist/console/runtime/client/account.js +2 -2
  30. package/dist/console/runtime/client/blob-media.d.ts +1 -1
  31. package/dist/console/runtime/client/blob-media.js +3 -3
  32. package/dist/console/runtime/client/comment-thread.js +1 -1
  33. package/dist/console/runtime/client/content-heads.d.ts +45 -0
  34. package/dist/console/runtime/client/content-heads.js +58 -0
  35. package/dist/console/runtime/client/documents.d.ts +2 -2
  36. package/dist/console/runtime/client/documents.js +1 -1
  37. package/dist/console/runtime/client/editor.d.ts +1 -1
  38. package/dist/console/runtime/client/invocation.js +3 -3
  39. package/dist/console/runtime/client/live.d.ts +1 -1
  40. package/dist/console/runtime/client/mcp-client.js +1 -1
  41. package/dist/console/runtime/client/media-library.d.ts +1 -1
  42. package/dist/console/runtime/client/media-library.js +1 -1
  43. package/dist/console/runtime/client/media-uploads.d.ts +1 -1
  44. package/dist/console/runtime/client/media-uploads.js +1 -1
  45. package/dist/console/runtime/client/operation-view.d.ts +1 -1
  46. package/dist/console/runtime/client/operation-view.js +2 -2
  47. package/dist/console/runtime/client/presence.d.ts +1 -1
  48. package/dist/console/runtime/client/problem.js +2 -2
  49. package/dist/console/runtime/client/project-link.d.ts +1 -1
  50. package/dist/console/runtime/client/project-link.js +1 -1
  51. package/dist/console/runtime/client/project-session.d.ts +2 -2
  52. package/dist/console/runtime/client/project-session.js +4 -4
  53. package/dist/console/runtime/client/project.d.ts +1 -1
  54. package/dist/console/runtime/client/project.js +1 -1
  55. package/dist/console/runtime/client/publish.d.ts +1 -1
  56. package/dist/console/runtime/client/rate-limit.js +2 -2
  57. package/dist/console/runtime/client/read-only.d.ts +1 -1
  58. package/dist/console/runtime/client/read-only.js +1 -1
  59. package/dist/console/runtime/client/request.js +1 -1
  60. package/dist/console/runtime/client/schedule-run.js +2 -2
  61. package/dist/console/runtime/client/sections.d.ts +1 -1
  62. package/dist/console/runtime/client/sections.js +1 -1
  63. package/dist/console/runtime/client/sidebar.ts +1 -1
  64. package/dist/console/runtime/client/site-access.js +2 -2
  65. package/dist/console/runtime/client/ticket.js +1 -1
  66. package/dist/console/runtime/client/workflow.js +2 -2
  67. package/dist/console/runtime/components/console-content-heads.vue +72 -0
  68. package/dist/console/runtime/components/console-document-dashboard.vue +43 -35
  69. package/dist/console/runtime/components/console-documents.vue +1 -0
  70. package/dist/console/runtime/components/console-markdown-editor.vue +4 -1
  71. package/dist/console/runtime/components/invocation/agent-invocation.ts +18 -5
  72. package/dist/console/runtime/components/invocation/internal/input-attachments.ts +69 -0
  73. package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +67 -12
  74. package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +12 -4
  75. package/dist/console/runtime/components/invocation/invocation.css +16 -0
  76. package/dist/console/runtime/console-route.js +1 -1
  77. package/dist/console/runtime/definitions.d.ts +1 -1
  78. package/dist/console/runtime/definitions.js +1 -1
  79. package/dist/console/runtime/diagnostics.ts +30 -30
  80. package/dist/console/runtime/page-tool/page-tool.js +1 -1
  81. package/dist/console/runtime/public/skills/vitehub/SKILL.md +3 -3
  82. package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +1 -1
  83. package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +9 -1
  84. package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +1 -1
  85. package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +1 -1
  86. package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +3 -3
  87. package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +2 -2
  88. package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +4 -4
  89. package/dist/console/runtime/sections.d.ts +1 -1
  90. package/dist/console/runtime/sections.js +1 -1
  91. package/dist/console/runtime/server/access-policy.d.ts +1 -1
  92. package/dist/console/runtime/server/access-policy.js +1 -1
  93. package/dist/console/runtime/server/agents.get.js +2 -2
  94. package/dist/console/runtime/server/auth.d.ts +1 -1
  95. package/dist/console/runtime/server/auth.js +2 -2
  96. package/dist/console/runtime/server/blob.d.ts +1 -1
  97. package/dist/console/runtime/server/blob.js +1 -1
  98. package/dist/console/runtime/server/channel-replay.d.ts +2 -2
  99. package/dist/console/runtime/server/channel-replay.js +4 -4
  100. package/dist/console/runtime/server/database.d.ts +1 -1
  101. package/dist/console/runtime/server/database.get.d.ts +1 -1
  102. package/dist/console/runtime/server/database.get.js +2 -2
  103. package/dist/console/runtime/server/database.js +1 -1
  104. package/dist/console/runtime/server/definitions.d.ts +1 -1
  105. package/dist/console/runtime/server/definitions.get.d.ts +3 -3
  106. package/dist/console/runtime/server/definitions.get.js +3 -3
  107. package/dist/console/runtime/server/definitions.js +1 -1
  108. package/dist/console/runtime/server/development.d.ts +2 -2
  109. package/dist/console/runtime/server/development.js +2 -2
  110. package/dist/console/runtime/server/documents.d.ts +1 -1
  111. package/dist/console/runtime/server/documents.js +1 -1
  112. package/dist/console/runtime/server/env.get.d.ts +1 -1
  113. package/dist/console/runtime/server/env.get.js +3 -3
  114. package/dist/console/runtime/server/invocation-capabilities.get.js +2 -2
  115. package/dist/console/runtime/server/invocation-workspace.get.d.ts +1 -1
  116. package/dist/console/runtime/server/invocation-workspace.get.js +5 -5
  117. package/dist/console/runtime/server/invocation.get.d.ts +1 -1
  118. package/dist/console/runtime/server/invocation.get.js +6 -6
  119. package/dist/console/runtime/server/invocations.get.js +3 -3
  120. package/dist/console/runtime/server/logs.get.d.ts +2 -2
  121. package/dist/console/runtime/server/logs.get.js +5 -5
  122. package/dist/console/runtime/server/mcp-client-operations.d.ts +1 -1
  123. package/dist/console/runtime/server/mcp-client-operations.js +3 -3
  124. package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
  125. package/dist/console/runtime/server/operation-contributions.js +1 -1
  126. package/dist/console/runtime/server/page-auth.d.ts +1 -1
  127. package/dist/console/runtime/server/page-tool.d.ts +1 -1
  128. package/dist/console/runtime/server/page-tool.js +2 -2
  129. package/dist/console/runtime/server/rpc.d.ts +2 -2
  130. package/dist/console/runtime/server/rpc.js +7 -7
  131. package/dist/console/runtime/server/search.get.js +1 -1
  132. package/dist/console/runtime/server/sections.d.ts +4 -4
  133. package/dist/console/runtime/server/sections.get.d.ts +1 -1
  134. package/dist/console/runtime/server/sections.get.js +5 -5
  135. package/dist/console/runtime/server/sections.js +3 -3
  136. package/dist/console/runtime/server/setup.d.ts +3 -3
  137. package/dist/console/runtime/server/setup.js +2 -2
  138. package/dist/console/runtime/server/site-entry.d.ts +1 -1
  139. package/dist/console/runtime/server/site-entry.js +9 -6
  140. package/dist/console/runtime/server/site-session.d.ts +5 -1
  141. package/dist/console/runtime/server/site-session.js +1 -1
  142. package/dist/console/runtime/server/status.get.d.ts +2 -2
  143. package/dist/console/runtime/server/status.get.js +5 -5
  144. package/dist/console/runtime/server/tickets.d.ts +1 -1
  145. package/dist/console/runtime/server/tickets.js +1 -1
  146. package/dist/console/runtime/server/usage.get.d.ts +2 -2
  147. package/dist/console/runtime/server/usage.get.js +7 -7
  148. package/dist/console/runtime/server/workspace-files.get.d.ts +1 -1
  149. package/dist/console/runtime/server/workspace-files.get.js +3 -3
  150. package/dist/console/server.d.ts +5 -5
  151. package/dist/console/server.js +6 -6
  152. package/dist/console/ui.js +121 -20
  153. package/dist/{console-route-COvNB_Xj.js → console-route-CBuqZ4wO.js} +1 -1
  154. package/dist/{database-J7M0B3ED.js → database-BdOBjPkS.js} +1 -1
  155. package/dist/{database-BVyhAxq-.d.ts → database-DyPVMjp_.d.ts} +1 -1
  156. package/dist/{definitions-BDRkT5-f.js → definitions-BW6SvmMM.js} +1 -0
  157. package/dist/{definitions-bepsXY5G.js → definitions-CNq_Shkh.js} +3 -3
  158. package/dist/{definitions-CxDT8D8Y.d.ts → definitions-DB4LbZ7T.d.ts} +2 -0
  159. package/dist/{definitions-CGTWTj67.d.ts → definitions-Dbgxfz3I.d.ts} +1 -1
  160. package/dist/development-W5EwONyL.d.ts +12 -0
  161. package/dist/{development-BzeSHZGH.js → development-zLxOp-AO.js} +12 -2
  162. package/dist/{diagnostics-D0DefmQj.js → diagnostics-9U_fYxMy.js} +30 -30
  163. package/dist/doctor.js +88 -107
  164. package/dist/{documents-C97WMaJZ.d.ts → documents-BASIRZ91.d.ts} +1 -1
  165. package/dist/{documents-RVHsQKFw.d.ts → documents-CboVhYFz.d.ts} +3 -3
  166. package/dist/{documents-DwPfR-fz.js → documents-CjJTCrY8.js} +3 -3
  167. package/dist/{documents-8US1nUgK.js → documents-qrHHqlNU.js} +1 -1
  168. package/dist/durability/operations.d.ts +1 -1
  169. package/dist/durability/operations.js +2 -2
  170. package/dist/{entries-D48wVEaS.js → entries-Bj-jPs_J.js} +1 -1
  171. package/dist/{error-diagnostics-C2rjmOlX.js → error-diagnostics-Bm3JKYjz.js} +19 -11
  172. package/dist/error-diagnostics.ts +19 -11
  173. package/dist/index.d.ts +15 -2
  174. package/dist/index.js +8 -4
  175. package/dist/internal/disabled-redis-driver.js +1 -1
  176. package/dist/internal/disabled-upstash-driver.js +1 -1
  177. package/dist/internal/test-loader.js +1 -1
  178. package/dist/internal/test-server.js +1 -1
  179. package/dist/{internal-BP_O70ic.d.ts → internal-CO4OqqaS.d.ts} +3 -3
  180. package/dist/{invocation-page-undo-BkUau8X7.js → invocation-page-undo-DIZ-s3xT.js} +2 -2
  181. package/dist/{invocations-CsucCJuq.js → invocations-CK_-G540.js} +3 -3
  182. package/dist/logs/memory.js +1 -1
  183. package/dist/logs/source.js +1 -1
  184. package/dist/logs.js +2 -2
  185. package/dist/{mcp-client-D0mUt18v.js → mcp-client-By4zk0vU.js} +6 -6
  186. package/dist/{media-wZMY6f2M.js → media-BHpQ-4jw.js} +4 -4
  187. package/dist/{media-library-CEo-Ye2B.d.ts → media-library-D9ThbXqs.d.ts} +1 -1
  188. package/dist/{media-library-BChf8XOd.js → media-library-NaOMBKWS.js} +2 -2
  189. package/dist/{memory-DhirB6SA.js → memory-DTmq-Z6x.js} +2 -2
  190. package/dist/{nuxt-server-imports-Lnaf5Fe-.js → nuxt-server-imports-DH60Z7LA.js} +3 -2
  191. package/dist/nuxt.d.ts +1 -1
  192. package/dist/nuxt.js +94 -67
  193. package/dist/{operation-contributions-DflAv5AC.js → operation-contributions-BdS0z3tx.js} +2 -2
  194. package/dist/{operation-contributions-fZyVo662.d.ts → operation-contributions-DpkO_iSU.d.ts} +1 -1
  195. package/dist/{operation-definition-Bn8V2hab.js → operation-definition-a5keEpCd.js} +6 -1
  196. package/dist/{operations-DX9EkHwb.d.ts → operations-B0689BG1.d.ts} +5 -0
  197. package/dist/operations-CAQmIxGK.js +2 -0
  198. package/dist/{operations-B6N-ja8x.js → operations-CWP9dF3i.js} +11 -11
  199. package/dist/{operations-Dj_cp-UK.js → operations-EOdyctDc.js} +1 -1
  200. package/dist/{optional-owners-Crm6kVS5.js → optional-owners-BNA2OX6z.js} +37 -23
  201. package/dist/{page-tool-BCRyx3pM.d.ts → page-tool-CRCK1RHV.d.ts} +1 -1
  202. package/dist/{plugins-DQ8pF-38.js → plugins-B-DpgDPB.js} +1459 -714
  203. package/dist/{plugins-5uDXr9Km.d.ts → plugins-BqAtIEX2.d.ts} +75 -56
  204. package/dist/{project-C2dnB9Kf.js → project-C4N_Zcjl.js} +3 -3
  205. package/dist/{project-5EN7JaXI.d.ts → project-CufkVP1u.d.ts} +2 -2
  206. package/dist/{project-DOeM0zg3.js → project-DlWTGB7h.js} +1 -1
  207. package/dist/{project-link-D_XQvBOC.d.ts → project-link-BuOzBH9f.d.ts} +1 -1
  208. package/dist/{project-link-Qi7nltHM.js → project-link-D-6UefhA.js} +2 -2
  209. package/dist/{request-yCybBeqT.js → request-DE8w_cSM.js} +8 -3
  210. package/dist/{request-BUYAlAJl.js → request-DbFfYmCu.js} +2 -2
  211. package/dist/{runtime-DM8Z6KLT.js → runtime-DQuHg7OO.js} +1 -1
  212. package/dist/{runtime-DG34DLXc.js → runtime-OsEDfbM9.js} +1 -1
  213. package/dist/runtime-feature-guard-B64MMW9I.js +140 -0
  214. package/dist/scan-module-D_3X08mj.js +2 -0
  215. package/dist/scan-module-Df58L_6T.js +311 -0
  216. package/dist/{secret-AZLhaNyr.js → secret-Dy5uqvq9.js} +1 -1
  217. package/dist/{sections-BriKrBgN.d.ts → sections-BogiCmtz.d.ts} +2 -2
  218. package/dist/{sections-ACHVTCWn.d.ts → sections-CyrXbbkG.d.ts} +4 -4
  219. package/dist/{sections-4xyBoiar.d.ts → sections-Do7X4Nwt.d.ts} +1 -2
  220. package/dist/{sections-D6AM5Gy5.js → sections-DumoLKQN.js} +2 -3
  221. package/dist/{sections-CUJyQA9d.js → sections-et20h8w3.js} +3 -3
  222. package/dist/{sections.get-1lHjyKCI.d.ts → sections.get-COiLcQ0P.d.ts} +2 -2
  223. package/dist/seo/runtime.js +1 -1
  224. package/dist/{server-DbjFYSeU.js → server-BRJE4t-W.js} +2 -2
  225. package/dist/{setup-DLZFzuLv.d.ts → setup-ZbA1by7W.d.ts} +4 -3
  226. package/dist/{site-access-Bhsty_v4.js → site-access-BbJUe5QI.js} +1 -1
  227. package/dist/{site-access-CyRtc0gZ.js → site-access-BmE8HGxs.js} +4 -4
  228. package/dist/{site-session-Jf21TVw8.js → site-session-odJq1dYa.js} +5 -5
  229. package/dist/skills/operations.d.ts +1 -1
  230. package/dist/skills/operations.js +2 -2
  231. package/dist/skills.d.ts +1 -1
  232. package/dist/{skills.get-CHQMzSD_.js → skills.get-Bl8cBe8u.js} +2 -2
  233. package/dist/{source-w9BHUwyO.js → source-D4wWtoHh.js} +1 -1
  234. package/dist/task/operations.d.ts +1 -1
  235. package/dist/task/operations.js +2 -2
  236. package/dist/test/register.js +1 -1
  237. package/dist/{ticket-RKQF6Wy9.js → ticket-Cudn1dq3.js} +1 -1
  238. package/dist/{tickets-CfJhT7d0.js → tickets-C_0Fhc00.js} +6 -6
  239. package/dist/{usage-Bc0YY_ka.js → usage-B4taNt4a.js} +1 -1
  240. package/dist/{usage-index-CMMT4cXQ.js → usage-index-BsGAFzyq.js} +1 -1
  241. package/dist/{version-DDRL_OYz.js → version-DNmSsk5r.js} +22 -19
  242. package/dist/{cli-DjoDGgT4.js → vite-stage-mmtwQIMA.js} +32 -2
  243. package/dist/{workspace-history-l47NPVSy.js → workspace-history-CraoERnc.js} +1 -1
  244. package/package.json +93 -93
  245. package/dist/cli-config--rAg6V-a.js +0 -2
  246. package/dist/decisions/vue.d.ts +0 -1
  247. package/dist/decisions/vue.js +0 -2
  248. package/dist/decisions.d.ts +0 -1
  249. package/dist/decisions.js +0 -2
  250. package/dist/development-DgaQ05jw.d.ts +0 -9
  251. package/dist/operations-H9q0QB2C.js +0 -2
  252. package/dist/runtime-feature-guard-rpZz1eMF.js +0 -55
  253. package/dist/scan-module-BTeOuZsp.js +0 -2
  254. package/dist/scan-module-DlHQ8a0X.js +0 -148
@@ -1,5 +1,5 @@
1
1
  import { t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
2
- import { s as ConsoleAccessRoute } from "../../../access-policy-BsB3QVe5.js";
2
+ import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
3
3
  import { ServerEnvDescription } from "@vite-hub/env";
4
4
  //#region src/console/runtime/server/env.get.d.ts
5
5
  /** Returns declaration metadata. The `env.inspect` operation of Env returns the status of each value. */
@@ -1,7 +1,7 @@
1
- import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-C2rjmOlX.js";
2
- import { h as withConsoleAccess } from "../../../access-F0YP5D5E.js";
1
+ import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
2
+ import { h as withConsoleAccess } from "../../../access-BDST818p.js";
3
3
  import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
4
- import { t as assertConsoleRequest } from "../../../request-BUYAlAJl.js";
4
+ import { t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
5
5
  import { r as getConsoleSections } from "../../../sections-C83x0slv.js";
6
6
  import { t as getConsoleEnv } from "../../../env-Dg1I_DWr.js";
7
7
  //#region src/console/runtime/server/env.get.ts
@@ -1,6 +1,6 @@
1
- import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-C2rjmOlX.js";
1
+ import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
2
2
  import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
3
- import { t as getConsoleInvocations } from "../../../invocations-CsucCJuq.js";
3
+ import { t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
4
4
  //#region src/console/runtime/server/invocation-capabilities.get.ts
5
5
  /** The capabilities and the triggering people of the recorded invocations, for the `invocations.capabilities` operation. */
6
6
  async function listConsoleInvocationCapabilities(input) {
@@ -1,5 +1,5 @@
1
1
  import { t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
2
- import { s as ConsoleAccessRoute } from "../../../access-policy-BsB3QVe5.js";
2
+ import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
3
3
  import { n as WorkspaceFileResponse, t as WorkspaceDescriptor } from "../../../workspace-history-CeVwBB6Q.js";
4
4
  //#region src/console/runtime/server/invocation-workspace.get.d.ts
5
5
  declare function consoleInvocationWorkspaceHandler(event: ConsoleRequestEvent): Promise<WorkspaceDescriptor | WorkspaceFileResponse>;
@@ -1,8 +1,8 @@
1
- import { h as withConsoleAccess } from "../../../access-F0YP5D5E.js";
2
- import { o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-BUYAlAJl.js";
3
- import { t as getConsoleInvocations } from "../../../invocations-CsucCJuq.js";
4
- import { s as getConsoleAgentDefinition } from "../../../agents-DnHexzTJ.js";
5
- import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../../workspace-history-l47NPVSy.js";
1
+ import { h as withConsoleAccess } from "../../../access-BDST818p.js";
2
+ import { o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
3
+ import { t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
4
+ import { s as getConsoleAgentDefinition } from "../../../agents-BDeazoAW.js";
5
+ import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../../workspace-history-CraoERnc.js";
6
6
  import { agentHostWorkspaceRoute, getAgentHostWorkspaceInspector } from "@vite-hub/agent/server";
7
7
  import * as v from "valibot";
8
8
  import { useWorkspaceFiles } from "@vite-hub/workspace/files";
@@ -1,5 +1,5 @@
1
1
  import { t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
2
- import { s as ConsoleAccessRoute } from "../../../access-policy-BsB3QVe5.js";
2
+ import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
3
3
  import { t as invocationUsage } from "../../../usage-CoQXs5nW.js";
4
4
  import { AgentInvocationCancelResult, AgentInvocationDeleteOutcome, AgentInvocationRerunUnavailableReason, AgentInvocationSummary } from "@vite-hub/agent";
5
5
  import { TraceEventLogEntry } from "@vite-hub/runtime";
@@ -1,10 +1,10 @@
1
- import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-C2rjmOlX.js";
2
- import { h as withConsoleAccess } from "../../../access-F0YP5D5E.js";
1
+ import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
2
+ import { h as withConsoleAccess } from "../../../access-BDST818p.js";
3
3
  import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
4
- import { a as consoleRequestJSON, i as consoleRequestError, o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-BUYAlAJl.js";
5
- import { t as getConsoleInvocations } from "../../../invocations-CsucCJuq.js";
6
- import { r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "../../../agents-DnHexzTJ.js";
7
- import { c as invocationUsage } from "../../../usage-Bc0YY_ka.js";
4
+ import { a as consoleRequestJSON, i as consoleRequestError, o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
5
+ import { t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
6
+ import { r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "../../../agents-BDeazoAW.js";
7
+ import { c as invocationUsage } from "../../../usage-B4taNt4a.js";
8
8
  import { agentInvocationRerunInput } from "@vite-hub/agent";
9
9
  import * as v from "valibot";
10
10
  import { getStandardContext } from "@vite-hub/runtime/internal/h3";
@@ -1,7 +1,7 @@
1
- import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-C2rjmOlX.js";
1
+ import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
2
2
  import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
3
- import { t as getConsoleInvocations } from "../../../invocations-CsucCJuq.js";
4
- import { c as invocationUsage } from "../../../usage-Bc0YY_ka.js";
3
+ import { t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
4
+ import { c as invocationUsage } from "../../../usage-B4taNt4a.js";
5
5
  //#region src/console/runtime/server/invocations.get.ts
6
6
  const defaultListLimit = 50;
7
7
  const maximumListLimit = 100;
@@ -1,5 +1,5 @@
1
1
  import { n as ConsoleRoute, t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
2
- import { s as ConsoleAccessRoute } from "../../../access-policy-BsB3QVe5.js";
2
+ import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
3
3
  import { o as LogSourceInfo, r as LogPage } from "../../../source-S-LChQvw.js";
4
4
  //#region src/console/runtime/server/logs.get.d.ts
5
5
  export declare function consoleLogsHandler(event: ConsoleRequestEvent): Promise<{
@@ -10,7 +10,7 @@ export declare function consoleLogsHandler(event: ConsoleRequestEvent): Promise<
10
10
  }>;
11
11
  /** The log page, for the `logs.list` operation. */
12
12
  export declare const readConsoleLogs: ConsoleAccessRoute<typeof consoleLogsHandler>;
13
- /** `GET <base>/api/_vitehub/console/logs` */
13
+ /** `GET <base>/_vitehub/console/logs` */
14
14
  declare const consoleLogsRoute: ConsoleRoute;
15
15
  //#endregion
16
16
  export { consoleLogsRoute as default };
@@ -1,8 +1,8 @@
1
- import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-C2rjmOlX.js";
2
- import { h as withConsoleAccess } from "../../../access-F0YP5D5E.js";
1
+ import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
2
+ import { h as withConsoleAccess } from "../../../access-BDST818p.js";
3
3
  import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
4
- import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-BUYAlAJl.js";
5
- import { a as logPageSchema, c as parseLogQuery, s as logSourceInfoSchema, t as isLogCursorExpiredError } from "../../../source-w9BHUwyO.js";
4
+ import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
5
+ import { a as logPageSchema, c as parseLogQuery, s as logSourceInfoSchema, t as isLogCursorExpiredError } from "../../../source-D4wWtoHh.js";
6
6
  import { t as getLogSource } from "../../../host-CkL0jjBq.js";
7
7
  import * as v from "valibot";
8
8
  import { getStandardContext } from "@vite-hub/runtime/internal/h3";
@@ -50,7 +50,7 @@ async function consoleLogsHandler(event) {
50
50
  }
51
51
  /** The log page, for the `logs.list` operation. */
52
52
  const readConsoleLogs = withConsoleAccess(consoleLogsHandler, { section: "logs" });
53
- /** `GET <base>/api/_vitehub/console/logs` */
53
+ /** `GET <base>/_vitehub/console/logs` */
54
54
  const consoleLogsRoute = consoleRoute(readConsoleLogs);
55
55
  //#endregion
56
56
  export { consoleLogsHandler, consoleLogsRoute as default, readConsoleLogs };
@@ -1,4 +1,4 @@
1
- import { n as AnyOperation } from "../../../operations-DX9EkHwb.js";
1
+ import { n as AnyOperation } from "../../../operations-B0689BG1.js";
2
2
  //#region src/console/runtime/server/mcp-client-operations.d.ts
3
3
  /** The operations of the MCP client section. The Console contributes them only when `console.mcpClient` is on. */
4
4
  export declare const consoleMcpClientOperations: readonly AnyOperation[];
@@ -1,5 +1,5 @@
1
- import { i as consoleRequestError } from "../../../request-BUYAlAJl.js";
2
- import { r as defineConsoleOperation } from "../../../operations-B6N-ja8x.js";
1
+ import { i as consoleRequestError } from "../../../request-DbFfYmCu.js";
2
+ import { r as defineConsoleOperation } from "../../../operations-CWP9dF3i.js";
3
3
  import * as v from "valibot";
4
4
  //#region src/console/runtime/server/mcp-client-operations.ts
5
5
  const id = v.pipe(v.string(), v.minLength(1), v.maxLength(64));
@@ -22,7 +22,7 @@ function caller(context) {
22
22
  ...context.request ? { request: context.request } : {}
23
23
  };
24
24
  }
25
- const server = () => import("../../../mcp-client-D0mUt18v.js");
25
+ const server = () => import("../../../mcp-client-By4zk0vU.js");
26
26
  /** The operations of the MCP client section. The Console contributes them only when `console.mcpClient` is on. */
27
27
  const consoleMcpClientOperations = [
28
28
  defineConsoleOperation({
@@ -1,2 +1,2 @@
1
- import { i as isHeldBackConsoleOperation, n as consoleOperationRegistry, r as installConsoleOperations, t as ConsoleOperationContribution } from "../../../operation-contributions-fZyVo662.js";
1
+ import { i as isHeldBackConsoleOperation, n as consoleOperationRegistry, r as installConsoleOperations, t as ConsoleOperationContribution } from "../../../operation-contributions-DpkO_iSU.js";
2
2
  export { ConsoleOperationContribution, consoleOperationRegistry, installConsoleOperations, isHeldBackConsoleOperation };
@@ -1,2 +1,2 @@
1
- import { n as installConsoleOperations, r as isHeldBackConsoleOperation, t as consoleOperationRegistry } from "../../../operation-contributions-DflAv5AC.js";
1
+ import { n as installConsoleOperations, r as isHeldBackConsoleOperation, t as consoleOperationRegistry } from "../../../operation-contributions-BdS0z3tx.js";
2
2
  export { consoleOperationRegistry, installConsoleOperations, isHeldBackConsoleOperation };
@@ -1,4 +1,4 @@
1
- import { n as ConsolePageUser } from "../../../page-tool-BCRyx3pM.js";
1
+ import { n as ConsolePageUser } from "../../../page-tool-CRCK1RHV.js";
2
2
  //#region src/console/runtime/server/page-auth.d.ts
3
3
  /**
4
4
  * Whether Better Auth's `admin()` plugin counts a user as an admin: one of the comma-separated roles in `user.role` is
@@ -1,2 +1,2 @@
1
- import { a as installConsolePageTool, i as consolePageToolAllowed, n as ConsolePageUser, r as consolePageAccount, t as ConsolePageToolOptions } from "../../../page-tool-BCRyx3pM.js";
1
+ import { a as installConsolePageTool, i as consolePageToolAllowed, n as ConsolePageUser, r as consolePageAccount, t as ConsolePageToolOptions } from "../../../page-tool-CRCK1RHV.js";
2
2
  export { ConsolePageToolOptions, ConsolePageUser, consolePageAccount, consolePageToolAllowed, installConsolePageTool };
@@ -1,5 +1,5 @@
1
- import { r as isConsoleDevelopmentBuild } from "../../../development-BzeSHZGH.js";
2
- import { a as installedConsoleAccessPolicy, n as consoleAuthorizedSections } from "../../../access-policy-B_DCpZUt.js";
1
+ import { i as isConsoleDevelopmentBuild } from "../../../development-zLxOp-AO.js";
2
+ import { a as installedConsoleAccessPolicy, n as consoleAuthorizedSections } from "../../../access-policy-DjBKLo3c.js";
3
3
  import { i as registerViteHubPageTool, n as installViteHubSiteVisitor, r as registerViteHubPageAccount, t as installViteHubPageTools } from "../../../page-tools-BkSSBFoi.js";
4
4
  import { installRequestStandardContext } from "@vite-hub/runtime/internal/h3";
5
5
  import { isRuntimeResponse } from "@vite-hub/runtime/internal/runtime-type";
@@ -1,6 +1,6 @@
1
1
  import { n as ConsoleRoute } from "../../../request-D7h3SQ92.js";
2
- import { o as ConsoleAccess } from "../../../access-policy-BsB3QVe5.js";
3
- import { n as consoleOperationRegistry } from "../../../operation-contributions-fZyVo662.js";
2
+ import { o as ConsoleAccess } from "../../../access-policy-CGXhO3Ee.js";
3
+ import { n as consoleOperationRegistry } from "../../../operation-contributions-DpkO_iSU.js";
4
4
  //#region src/console/runtime/server/rpc.d.ts
5
5
  interface ConsoleRpcContext {
6
6
  /** The checked access of the RPC request. Each operation runs with it. */
@@ -1,14 +1,14 @@
1
1
  import { a as readOperationRpcCall, i as operationRpcRefusal, t as answerOperationRpc } from "../../../operation-rpc-DI9txNxK.js";
2
2
  import { t as consoleRpcHeader } from "../../../rpc-DIUA61pv.js";
3
- import { t as consoleDiagnostic } from "../../../diagnostics-D0DefmQj.js";
3
+ import { t as consoleDiagnostic } from "../../../diagnostics-9U_fYxMy.js";
4
4
  import { a as consoleBodySha256 } from "../../../dev-peer-am78OsHH.js";
5
- import { c as operationCall, d as operationSection, h as projectRootHash, m as parseOperationInput, n as assertOperationConfirmed, o as operationAccessAllows, r as assertOperationProject, s as operationAccessDenial, t as assertOperationConfirmation, u as operationRootHeader } from "../../../operations-Dj_cp-UK.js";
6
- import { r as isConsoleDevelopmentBuild } from "../../../development-BzeSHZGH.js";
7
- import { _ as isConsoleRpcPath, h as withConsoleAccess, m as readConsoleOperationUser, r as consoleAccessAllows } from "../../../access-F0YP5D5E.js";
5
+ import { c as operationCall, d as operationSection, h as projectRootHash, m as parseOperationInput, n as assertOperationConfirmed, o as operationAccessAllows, r as assertOperationProject, s as operationAccessDenial, t as assertOperationConfirmation, u as operationRootHeader } from "../../../operations-EOdyctDc.js";
6
+ import { t as consoleDevelopmentContext } from "../../../development-zLxOp-AO.js";
7
+ import { _ as isConsoleRpcPath, h as withConsoleAccess, m as readConsoleOperationUser, r as consoleAccessAllows } from "../../../access-BDST818p.js";
8
8
  import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
9
- import { i as consoleRequestError, n as consoleErrorResult, s as consoleRoute } from "../../../request-BUYAlAJl.js";
9
+ import { i as consoleRequestError, n as consoleErrorResult, s as consoleRoute } from "../../../request-DbFfYmCu.js";
10
10
  import { n as installedConsoleProjectRoot } from "../../../project-root-v6ba4tn7.js";
11
- import { r as isHeldBackConsoleOperation, t as consoleOperationRegistry } from "../../../operation-contributions-DflAv5AC.js";
11
+ import { r as isHeldBackConsoleOperation, t as consoleOperationRegistry } from "../../../operation-contributions-BdS0z3tx.js";
12
12
  import * as v from "valibot";
13
13
  import { getStandardContext } from "@vite-hub/runtime/internal/h3";
14
14
  //#region src/console/runtime/server/rpc.ts
@@ -150,7 +150,7 @@ async function runConsoleOperation(operation, rawInput, request, context) {
150
150
  const user = operation.user === false ? void 0 : await readConsoleOperationUser(context.access);
151
151
  const operationContext = {
152
152
  access: context.access,
153
- development: isConsoleDevelopmentBuild(),
153
+ ...consoleDevelopmentContext(),
154
154
  request,
155
155
  response: context.response,
156
156
  surface: mcp ? "mcp" : context.access.via === "cli" || context.access.via === "console" ? context.access.via : request.headers.get("x-vitehub-surface") === "cli" ? "cli" : "console",
@@ -1,4 +1,4 @@
1
- import { t as getConsoleInvocations } from "../../../invocations-CsucCJuq.js";
1
+ import { t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
2
2
  import { defineCollection } from "@vite-hub/source";
3
3
  import { defineCollectionHandler } from "@vite-hub/source/server";
4
4
  //#region src/console/runtime/server/search.ts
@@ -1,6 +1,6 @@
1
- import { c as ConsoleRealtimeAccess, i as installConsoleAccess, l as ConsoleRealtimeUser, u as consoleRealtimeAccess } from "../../../access-policy-BsB3QVe5.js";
2
- import { n as installConsoleDevelopment } from "../../../development-DgaQ05jw.js";
1
+ import { c as ConsoleRealtimeAccess, i as installConsoleAccess, l as ConsoleRealtimeUser, u as consoleRealtimeAccess } from "../../../access-policy-CGXhO3Ee.js";
2
+ import { r as installConsoleDevelopment } from "../../../development-W5EwONyL.js";
3
3
  import { t as installConsoleRuntime } from "../../../runtime-B_btezs1.js";
4
- import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-DLZFzuLv.js";
5
- import { n as getConsoleProjectName, r as getConsoleSections, t as getConsoleBuild } from "../../../sections-ACHVTCWn.js";
4
+ import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-ZbA1by7W.js";
5
+ import { n as getConsoleProjectName, r as getConsoleSections, t as getConsoleBuild } from "../../../sections-CyrXbbkG.js";
6
6
  export { type ConsoleRealtimeAccess, type ConsoleRealtimeUser, consoleRealtimeAccess, getConsoleBuild, getConsoleProjectName, getConsoleSections, installConsoleAccess, installConsoleBuild, installConsoleDevelopment, installConsoleProjectName, installConsoleRuntime, installConsoleSections, installConsoleVersion };
@@ -1,2 +1,2 @@
1
- import { n as listConsoleSections, t as ConsoleSectionsResponse } from "../../../sections.get-1lHjyKCI.js";
1
+ import { n as listConsoleSections, t as ConsoleSectionsResponse } from "../../../sections.get-COiLcQ0P.js";
2
2
  export { ConsoleSectionsResponse, listConsoleSections };
@@ -1,9 +1,9 @@
1
1
  import { n as consoleState } from "../../../internal-BreyUsQ6.js";
2
- import { t as consoleSetupRoute } from "../../../development-BzeSHZGH.js";
3
- import { a as consoleAccessWrites, t as allowedConsoleSections } from "../../../access-F0YP5D5E.js";
2
+ import { n as consoleSetupRoute } from "../../../development-zLxOp-AO.js";
3
+ import { a as consoleAccessWrites, t as allowedConsoleSections } from "../../../access-BDST818p.js";
4
4
  import { n as getConsoleProjectName, r as getConsoleSections } from "../../../sections-C83x0slv.js";
5
- import { n as getConsoleContributedSections } from "../../../definitions-bepsXY5G.js";
6
- import { t as consoleOperationRegistry } from "../../../operation-contributions-DflAv5AC.js";
5
+ import { n as getConsoleContributedSections } from "../../../definitions-CNq_Shkh.js";
6
+ import { t as consoleOperationRegistry } from "../../../operation-contributions-BdS0z3tx.js";
7
7
  //#region src/console/runtime/server/sections.get.ts
8
8
  /** Whether an Agent field such as `channels` lists at least one entry, as an array or a record. */
9
9
  function hasEntries(value) {
@@ -18,7 +18,7 @@ async function emptySections(sections) {
18
18
  const empty = /* @__PURE__ */ new Set();
19
19
  if (sections.includes("env") && !(await import("./env.js")).getConsoleEnv().entries.length) empty.add("env");
20
20
  if (import.meta.viteHubConsoleAgents !== false && (sections.includes("skills") || sections.includes("channels"))) {
21
- const { getConsoleAgentDefinition, getConsoleAgents } = await import("../../../agents-y5hBFHUQ.js");
21
+ const { getConsoleAgentDefinition, getConsoleAgents } = await import("../../../agents-BoWau_ei.js");
22
22
  const definitions = getConsoleAgents().map((name) => getConsoleAgentDefinition(name, "inspect"));
23
23
  if (sections.includes("channels") && !definitions.some((definition) => hasEntries(definition?.channels))) empty.add("channels");
24
24
  if (sections.includes("skills")) {
@@ -1,6 +1,6 @@
1
- import { n as installConsoleDevelopment } from "../../../development-BzeSHZGH.js";
2
- import { i as installConsoleAccess } from "../../../access-policy-B_DCpZUt.js";
3
- import { u as consoleRealtimeAccess } from "../../../access-F0YP5D5E.js";
1
+ import { r as installConsoleDevelopment } from "../../../development-zLxOp-AO.js";
2
+ import { i as installConsoleAccess } from "../../../access-policy-DjBKLo3c.js";
3
+ import { u as consoleRealtimeAccess } from "../../../access-BDST818p.js";
4
4
  import { t as installConsoleRuntime } from "../../../runtime-DxfJOfCd.js";
5
5
  import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-C-5nB7aY.js";
6
6
  import { n as getConsoleProjectName, r as getConsoleSections, t as getConsoleBuild } from "../../../sections-C83x0slv.js";
@@ -1,5 +1,5 @@
1
- import { i as installConsoleAccess } from "../../../access-policy-BsB3QVe5.js";
2
- import { n as installConsoleDevelopment } from "../../../development-DgaQ05jw.js";
1
+ import { i as installConsoleAccess } from "../../../access-policy-CGXhO3Ee.js";
2
+ import { r as installConsoleDevelopment } from "../../../development-W5EwONyL.js";
3
3
  import { t as installConsoleRuntime } from "../../../runtime-B_btezs1.js";
4
- import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-DLZFzuLv.js";
4
+ import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-ZbA1by7W.js";
5
5
  export { installConsoleAccess, installConsoleBuild, installConsoleDevelopment, installConsoleProjectName, installConsoleRuntime, installConsoleSections, installConsoleVersion };
@@ -1,5 +1,5 @@
1
- import { n as installConsoleDevelopment } from "../../../development-BzeSHZGH.js";
2
- import { i as installConsoleAccess } from "../../../access-policy-B_DCpZUt.js";
1
+ import { r as installConsoleDevelopment } from "../../../development-zLxOp-AO.js";
2
+ import { i as installConsoleAccess } from "../../../access-policy-DjBKLo3c.js";
3
3
  import { t as installConsoleRuntime } from "../../../runtime-DxfJOfCd.js";
4
4
  import { i as installConsoleVersion, n as installConsoleProjectName, r as installConsoleSections, t as installConsoleBuild } from "../../../setup-C-5nB7aY.js";
5
5
  export { installConsoleAccess, installConsoleBuild, installConsoleDevelopment, installConsoleProjectName, installConsoleRuntime, installConsoleSections, installConsoleVersion };
@@ -2,7 +2,7 @@ import { n as ConsoleRoute } from "../../../request-D7h3SQ92.js";
2
2
  //#region src/console/runtime/server/site-entry.d.ts
3
3
  /**
4
4
  * The first path segments below `/_vitehub` that ViteHub serves itself, such as `/_vitehub/rpc` of the Console and
5
- * `/_vitehub/blob/signed` of Blob. `/_vitehub/<name>/...` never goes back to a page: the route answers 404 for a path
5
+ * `/_vitehub/blob-signed` of Blob. `/_vitehub/<name>/...` never goes back to a page: the route answers 404 for a path
6
6
  * that no ViteHub route served. Open such a page and follow a link to `/_vitehub` from it.
7
7
  */
8
8
  export declare const siteEntryReservedNames: ReadonlySet<string>;
@@ -1,10 +1,10 @@
1
- import { a as installedConsoleAccessPolicy } from "../../../access-policy-B_DCpZUt.js";
2
- import { g as isConsoleLoopbackRequest } from "../../../access-F0YP5D5E.js";
3
- import { c as isConsoleDevelopmentRuntime, i as consoleRequestError, s as consoleRoute } from "../../../request-BUYAlAJl.js";
1
+ import { a as installedConsoleAccessPolicy } from "../../../access-policy-DjBKLo3c.js";
2
+ import { g as isConsoleLoopbackRequest } from "../../../access-BDST818p.js";
3
+ import { c as isConsoleDevelopmentRuntime, i as consoleRequestError, s as consoleRoute } from "../../../request-DbFfYmCu.js";
4
4
  import { n as siteStateCookie } from "../../../site-access-BycrwM2v.js";
5
5
  import { s as viteHubPageToolAllows } from "../../../page-tools-BkSSBFoi.js";
6
- import { a as base64url, f as seeOther, n as appOrigin } from "../../../tickets-CfJhT7d0.js";
7
- import { l as withPageTools } from "../../../site-access-CyRtc0gZ.js";
6
+ import { a as base64url, f as seeOther, n as appOrigin } from "../../../tickets-C_0Fhc00.js";
7
+ import { l as withPageTools } from "../../../site-access-BmE8HGxs.js";
8
8
  import { getStandardContext } from "@vite-hub/runtime/internal/h3";
9
9
  import { hostedConsoleOrigin } from "@vite-hub/runtime";
10
10
  //#region src/console/runtime/server/site-entry.ts
@@ -29,7 +29,7 @@ const siteStateLifetime = 600;
29
29
  const entrySegment = /\/_vitehub(?=\/|$)/;
30
30
  /**
31
31
  * The first path segments below `/_vitehub` that ViteHub serves itself, such as `/_vitehub/rpc` of the Console and
32
- * `/_vitehub/blob/signed` of Blob. `/_vitehub/<name>/...` never goes back to a page: the route answers 404 for a path
32
+ * `/_vitehub/blob-signed` of Blob. `/_vitehub/<name>/...` never goes back to a page: the route answers 404 for a path
33
33
  * that no ViteHub route served. Open such a page and follow a link to `/_vitehub` from it.
34
34
  */
35
35
  const siteEntryReservedNames = /* @__PURE__ */ new Set([
@@ -39,6 +39,8 @@ const siteEntryReservedNames = /* @__PURE__ */ new Set([
39
39
  "agents",
40
40
  "api",
41
41
  "blob",
42
+ "blob-signed",
43
+ "browser-errors",
42
44
  "channel-task",
43
45
  "channels",
44
46
  "comments",
@@ -56,6 +58,7 @@ const siteEntryReservedNames = /* @__PURE__ */ new Set([
56
58
  "realtime",
57
59
  "rpc",
58
60
  "schedule",
61
+ "sync",
59
62
  "warm",
60
63
  "webhook-queue"
61
64
  ]);
@@ -29,7 +29,11 @@ export interface ConsoleSiteKV {
29
29
  getAndDelete: (key: string, options: {
30
30
  type: "text";
31
31
  }) => Promise<readonly [unknown, string | null | undefined]>;
32
- keys: (base: string) => Promise<readonly [unknown, string[] | undefined]>;
32
+ list: (options: {
33
+ prefix: string;
34
+ }) => Promise<readonly [unknown, {
35
+ keys: string[];
36
+ } | undefined]>;
33
37
  delete: (key: string) => Promise<readonly [unknown, unknown]>;
34
38
  }
35
39
  /** The keys of a KV store below a prefix. Some drivers list keys with `/` where the key had `:`. */
@@ -1,2 +1,2 @@
1
- import { a as listConsoleSiteSessions, c as requireConsoleSiteKey, i as consoleSiteLifetime, l as revokeConsoleSiteSession, n as consoleSiteKV, o as openConsoleSiteSession, r as consoleSiteKeys, s as readConsoleSiteVisitor, t as consoleSiteCookie, u as setConsoleSiteKV } from "../../../site-session-Jf21TVw8.js";
1
+ import { a as listConsoleSiteSessions, c as requireConsoleSiteKey, i as consoleSiteLifetime, l as revokeConsoleSiteSession, n as consoleSiteKV, o as openConsoleSiteSession, r as consoleSiteKeys, s as readConsoleSiteVisitor, t as consoleSiteCookie, u as setConsoleSiteKV } from "../../../site-session-odJq1dYa.js";
2
2
  export { consoleSiteCookie, consoleSiteKV, consoleSiteKeys, consoleSiteLifetime, listConsoleSiteSessions, openConsoleSiteSession, readConsoleSiteVisitor, requireConsoleSiteKey, revokeConsoleSiteSession, setConsoleSiteKV };
@@ -1,5 +1,5 @@
1
1
  import { n as ConsoleRoute, t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
2
- import { s as ConsoleAccessRoute } from "../../../access-policy-BsB3QVe5.js";
2
+ import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
3
3
  import { AgentProviderStatus } from "@vite-hub/agent";
4
4
  import { ObservabilityStatus } from "@vite-hub/agent/observability";
5
5
  //#region src/console/runtime/server/status.get.d.ts
@@ -10,7 +10,7 @@ declare function statusHandler(event: ConsoleRequestEvent): Promise<{
10
10
  }>;
11
11
  /** The status of the Agents, for the `status.get` operation. */
12
12
  export declare const readConsoleStatus: ConsoleAccessRoute<typeof statusHandler>;
13
- /** `GET <base>/api/_vitehub/console/status` */
13
+ /** `GET <base>/_vitehub/console/status` */
14
14
  declare const consoleStatusRoute: ConsoleRoute;
15
15
  //#endregion
16
16
  export { consoleStatusRoute as default };
@@ -1,8 +1,8 @@
1
- import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-C2rjmOlX.js";
2
- import { h as withConsoleAccess } from "../../../access-F0YP5D5E.js";
1
+ import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
2
+ import { h as withConsoleAccess } from "../../../access-BDST818p.js";
3
3
  import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
4
- import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-BUYAlAJl.js";
5
- import { c as getConsoleAgents, s as getConsoleAgentDefinition } from "../../../agents-DnHexzTJ.js";
4
+ import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
5
+ import { c as getConsoleAgents, s as getConsoleAgentDefinition } from "../../../agents-BDeazoAW.js";
6
6
  import { createAgentStatusReader } from "@vite-hub/agent/server";
7
7
  import { observabilityStatus } from "@vite-hub/agent/server/internal";
8
8
  //#region src/console/runtime/server/status.get.ts
@@ -24,7 +24,7 @@ async function statusHandler(event) {
24
24
  }
25
25
  /** The status of the Agents, for the `status.get` operation. */
26
26
  const readConsoleStatus = withConsoleAccess(statusHandler, { section: "agents" });
27
- /** `GET <base>/api/_vitehub/console/status` */
27
+ /** `GET <base>/_vitehub/console/status` */
28
28
  const consoleStatusRoute = consoleRoute(readConsoleStatus);
29
29
  //#endregion
30
30
  export { consoleStatusRoute as default, readConsoleStatus };
@@ -1,2 +1,2 @@
1
- import { C as setConsoleTicketStore, S as seeOther, _ as consoleRecordStore, b as issueConsoleTicket, c as ConsoleTicketPurpose, d as appBase, f as appOrigin, g as consoleInvitePrefix, h as base64url, l as ConsoleTicketRecord, m as authFailure, o as ConsoleRecordStore, p as authConsole, s as ConsoleTicket, u as ConsoleTicketStore, v as consoleTicketLifetime, w as ticketProblem, x as redeemConsoleTicket, y as consoleTicketParameter } from "../../../auth-BFVHYizM.js";
1
+ import { C as setConsoleTicketStore, S as seeOther, _ as consoleRecordStore, b as issueConsoleTicket, c as ConsoleTicketPurpose, d as appBase, f as appOrigin, g as consoleInvitePrefix, h as base64url, l as ConsoleTicketRecord, m as authFailure, o as ConsoleRecordStore, p as authConsole, s as ConsoleTicket, u as ConsoleTicketStore, v as consoleTicketLifetime, w as ticketProblem, x as redeemConsoleTicket, y as consoleTicketParameter } from "../../../auth-BZOy7obk.js";
2
2
  export { ConsoleRecordStore, ConsoleTicket, ConsoleTicketPurpose, ConsoleTicketRecord, ConsoleTicketStore, appBase, appOrigin, authConsole, authFailure, base64url, consoleInvitePrefix, consoleRecordStore, consoleTicketLifetime, consoleTicketParameter, issueConsoleTicket, redeemConsoleTicket, seeOther, setConsoleTicketStore, ticketProblem };
@@ -1,2 +1,2 @@
1
- import { a as base64url, c as consoleTicketLifetime, d as redeemConsoleTicket, f as seeOther, i as authFailure, l as consoleTicketParameter, m as ticketProblem, n as appOrigin, o as consoleInvitePrefix, p as setConsoleTicketStore, r as authConsole, s as consoleRecordStore, t as appBase, u as issueConsoleTicket } from "../../../tickets-CfJhT7d0.js";
1
+ import { a as base64url, c as consoleTicketLifetime, d as redeemConsoleTicket, f as seeOther, i as authFailure, l as consoleTicketParameter, m as ticketProblem, n as appOrigin, o as consoleInvitePrefix, p as setConsoleTicketStore, r as authConsole, s as consoleRecordStore, t as appBase, u as issueConsoleTicket } from "../../../tickets-C_0Fhc00.js";
2
2
  export { appBase, appOrigin, authConsole, authFailure, base64url, consoleInvitePrefix, consoleRecordStore, consoleTicketLifetime, consoleTicketParameter, issueConsoleTicket, redeemConsoleTicket, seeOther, setConsoleTicketStore, ticketProblem };
@@ -1,10 +1,10 @@
1
1
  import { n as ConsoleRoute, t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
2
- import { s as ConsoleAccessRoute } from "../../../access-policy-BsB3QVe5.js";
2
+ import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
3
3
  //#region src/console/runtime/server/usage.get.d.ts
4
4
  declare const usageHandler: (event: ConsoleRequestEvent) => Promise<Record<string, unknown>>;
5
5
  /** The usage summary, for the `usage.get` operation. */
6
6
  export declare const readConsoleUsage: ConsoleAccessRoute<typeof usageHandler>;
7
- /** `GET <base>/api/_vitehub/console/usage` */
7
+ /** `GET <base>/_vitehub/console/usage` */
8
8
  declare const consoleUsageRoute: ConsoleRoute;
9
9
  //#endregion
10
10
  export { consoleUsageRoute as default };
@@ -1,10 +1,10 @@
1
- import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-C2rjmOlX.js";
2
- import { h as withConsoleAccess } from "../../../access-F0YP5D5E.js";
1
+ import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-Bm3JKYjz.js";
2
+ import { h as withConsoleAccess } from "../../../access-BDST818p.js";
3
3
  import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
4
- import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-BUYAlAJl.js";
5
- import { n as getConsoleUsageIndex, t as getConsoleInvocations } from "../../../invocations-CsucCJuq.js";
6
- import { c as getConsoleAgents, s as getConsoleAgentDefinition } from "../../../agents-DnHexzTJ.js";
7
- import { d as parseConsoleUsageWindow, r as createUsageSummary, u as parseConsoleUsageStatus } from "../../../usage-Bc0YY_ka.js";
4
+ import { o as consoleRequestURL, s as consoleRoute, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
5
+ import { n as getConsoleUsageIndex, t as getConsoleInvocations } from "../../../invocations-CK_-G540.js";
6
+ import { c as getConsoleAgents, s as getConsoleAgentDefinition } from "../../../agents-BDeazoAW.js";
7
+ import { d as parseConsoleUsageWindow, r as createUsageSummary, u as parseConsoleUsageStatus } from "../../../usage-B4taNt4a.js";
8
8
  //#region src/console/runtime/server/usage.get.ts
9
9
  const caches = /* @__PURE__ */ new WeakMap();
10
10
  const requests = /* @__PURE__ */ new WeakMap();
@@ -86,7 +86,7 @@ const usageHandler = async (event) => {
86
86
  };
87
87
  /** The usage summary, for the `usage.get` operation. */
88
88
  const readConsoleUsage = withConsoleAccess(usageHandler, { section: "usage" });
89
- /** `GET <base>/api/_vitehub/console/usage` */
89
+ /** `GET <base>/_vitehub/console/usage` */
90
90
  const consoleUsageRoute = consoleRoute(readConsoleUsage);
91
91
  //#endregion
92
92
  export { consoleUsageRoute as default, readConsoleUsage };
@@ -1,5 +1,5 @@
1
1
  import { t as ConsoleRequestEvent } from "../../../request-D7h3SQ92.js";
2
- import { s as ConsoleAccessRoute } from "../../../access-policy-BsB3QVe5.js";
2
+ import { s as ConsoleAccessRoute } from "../../../access-policy-CGXhO3Ee.js";
3
3
  import { n as WorkspaceFileResponse, t as WorkspaceDescriptor } from "../../../workspace-history-CeVwBB6Q.js";
4
4
  //#region src/console/runtime/server/workspace-files.get.d.ts
5
5
  /**
@@ -1,6 +1,6 @@
1
- import { h as withConsoleAccess } from "../../../access-F0YP5D5E.js";
2
- import { o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-BUYAlAJl.js";
3
- import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../../workspace-history-l47NPVSy.js";
1
+ import { h as withConsoleAccess } from "../../../access-BDST818p.js";
2
+ import { o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-DbFfYmCu.js";
3
+ import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../../workspace-history-CraoERnc.js";
4
4
  import { useWorkspaceFiles } from "@vite-hub/workspace/files";
5
5
  //#region src/console/runtime/server/workspace-files.get.ts
6
6
  /** The ref that other refs are compared with. */
@@ -1,10 +1,10 @@
1
1
  import { i as installConsoleAgents, n as getConsoleAgents, r as installConsoleAgentDefinitions } from "../agents-C94A4N9u.js";
2
- import { n as installConsoleBlob, t as getConsoleBlob } from "../blob-CiUmptIp.js";
3
- import { n as installConsoleDatabase, t as getConsoleDatabase } from "../database-BVyhAxq-.js";
4
- import { a as installConsoleDefinitions, r as getConsoleDefinitions } from "../definitions-CGTWTj67.js";
2
+ import { n as installConsoleBlob, t as getConsoleBlob } from "../blob-CFLwMsjH.js";
3
+ import { n as installConsoleDatabase, t as getConsoleDatabase } from "../database-DyPVMjp_.js";
4
+ import { a as installConsoleDefinitions, r as getConsoleDefinitions } from "../definitions-Dbgxfz3I.js";
5
5
  import "../usage-CoQXs5nW.js";
6
- import { n as installConsoleProjectName, r as installConsoleSections } from "../setup-DLZFzuLv.js";
7
- import { n as getConsoleProjectName, r as getConsoleSections } from "../sections-ACHVTCWn.js";
6
+ import { n as installConsoleProjectName, r as installConsoleSections } from "../setup-ZbA1by7W.js";
7
+ import { n as getConsoleProjectName, r as getConsoleSections } from "../sections-CyrXbbkG.js";
8
8
  import { AgentInvocations } from "@vite-hub/agent";
9
9
  import { RuntimeHostContext } from "@vite-hub/runtime";
10
10
  import "@libsql/client";
@@ -1,9 +1,9 @@
1
- import { n as installConsoleBlob, t as getConsoleBlob } from "../blob-BRV6_wZa.js";
2
- import { r as installConsoleInvocations, t as getConsoleInvocations } from "../invocations-CsucCJuq.js";
3
- import { c as getConsoleAgents, l as installConsoleAgentDefinitions, u as installConsoleAgents } from "../agents-DnHexzTJ.js";
1
+ import { n as installConsoleBlob, t as getConsoleBlob } from "../blob-CpvlM8jp.js";
2
+ import { r as installConsoleInvocations, t as getConsoleInvocations } from "../invocations-CK_-G540.js";
3
+ import { c as getConsoleAgents, l as installConsoleAgentDefinitions, u as installConsoleAgents } from "../agents-BDeazoAW.js";
4
4
  import { n as installConsoleProjectName, r as installConsoleSections } from "../setup-C-5nB7aY.js";
5
5
  import { n as getConsoleProjectName, r as getConsoleSections } from "../sections-C83x0slv.js";
6
- import { a as installConsoleDefinitions, r as getConsoleDefinitions } from "../definitions-bepsXY5G.js";
7
- import { n as installConsoleDatabase, t as getConsoleDatabase } from "../database-J7M0B3ED.js";
8
- import { t as agentConsole } from "../server-DbjFYSeU.js";
6
+ import { a as installConsoleDefinitions, r as getConsoleDefinitions } from "../definitions-CNq_Shkh.js";
7
+ import { n as installConsoleDatabase, t as getConsoleDatabase } from "../database-BdOBjPkS.js";
8
+ import { t as agentConsole } from "../server-BRJE4t-W.js";
9
9
  export { agentConsole, getConsoleAgents, getConsoleBlob, getConsoleDatabase, getConsoleDefinitions, getConsoleInvocations, getConsoleProjectName, getConsoleSections, installConsoleAgentDefinitions, installConsoleAgents, installConsoleBlob, installConsoleDatabase, installConsoleDefinitions, installConsoleInvocations, installConsoleProjectName, installConsoleSections };