vite-hub 0.5.0 → 0.6.0

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 (553) hide show
  1. package/README.md +9 -8
  2. package/dist/_internal/runtime/browser-errors.d.ts +0 -2
  3. package/dist/_internal/runtime/browser-errors.js +3 -4
  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 +1 -2
  7. package/dist/_internal/runtime/request-policy.js +2 -3
  8. package/dist/_internal/runtime/security.d.ts +1 -2
  9. package/dist/_internal/runtime/security.js +1 -2
  10. package/dist/{access-BC9HtX_M.js → access-CUFHPi8T.js} +13 -140
  11. package/dist/{access-policy-DhsEACna.d.ts → access-DkBck8Vu.d.ts} +17 -21
  12. package/dist/{access-policy-CVZg9LPR.js → access-policy-BM48XstY.js} +5 -6
  13. package/dist/{account-Cjj-tYzo.d.ts → account-DNr8fHcQ.d.ts} +5 -7
  14. package/dist/{console/runtime/server → agent/console}/agents.get.d.ts +2 -3
  15. package/dist/{console/runtime/server → agent/console}/agents.get.js +3 -4
  16. package/dist/{console/runtime/server → agent/console}/channel-replay.d.ts +3 -5
  17. package/dist/{console/runtime/server → agent/console}/channel-replay.js +6 -7
  18. package/dist/{console/runtime/server → agent/console}/invocation-capabilities.get.d.ts +1 -3
  19. package/dist/{console/runtime/server → agent/console}/invocation-capabilities.get.js +4 -5
  20. package/dist/agent/console/invocation-workspace.get.d.ts +6 -0
  21. package/dist/{console/runtime/server → agent/console}/invocation-workspace.get.js +6 -7
  22. package/dist/{console/runtime/server → agent/console}/invocation.get.d.ts +4 -6
  23. package/dist/{console/runtime/server → agent/console}/invocation.get.js +8 -9
  24. package/dist/{console/runtime/server → agent/console}/invocations.get.d.ts +1 -2
  25. package/dist/{console/runtime/server → agent/console}/invocations.get.js +5 -6
  26. package/dist/agent/console/invocations.usage.d.ts +6 -0
  27. package/dist/agent/console/invocations.usage.js +51 -0
  28. package/dist/agent/console/operations.d.ts +6 -0
  29. package/dist/agent/console/operations.js +247 -0
  30. package/dist/{console/runtime/server → agent/console}/status.get.d.ts +2 -4
  31. package/dist/{console/runtime/server → agent/console}/status.get.js +6 -7
  32. package/dist/{server-W0c79AYZ.js → agent-console-CHsLxKk_.js} +4 -4
  33. package/dist/agent-console-FmaYpVv-.d.ts +14 -0
  34. package/dist/{agent-invocations.post-C3Onl2yH.js → agent-invocations.post-CF5anHY6.js} +14 -17
  35. package/dist/agents-DBm_PJie.js +1 -0
  36. package/dist/{agents-B76RICcy.js → agents-DXLHsE7x.js} +5 -6
  37. package/dist/{agents-C94A4N9u.d.ts → agents-Gyw4VKPt.d.ts} +0 -2
  38. package/dist/auth/console/auth.d.ts +25 -0
  39. package/dist/{console/runtime/server → auth/console}/auth.js +11 -13
  40. package/dist/auth/console/operations.d.ts +3 -0
  41. package/dist/auth/console/operations.js +135 -0
  42. package/dist/auth/server.js +1 -2
  43. package/dist/{auth-operations-GcQk0O0X.js → auth-operations-BKqoX8Ua.js} +4 -5
  44. package/dist/{auth-types-D3ugQ8xM.d.ts → auth-types-Cotn7406.d.ts} +4 -21
  45. package/dist/bin.js +8 -11
  46. package/dist/blob/console/operations.d.ts +3 -0
  47. package/dist/blob/console/operations.js +44 -0
  48. package/dist/blob/nuxt-image.js +1 -2
  49. package/dist/{blob-BcgsZtqM.js → blob-iw8pWQ6o.js} +5 -6
  50. package/dist/{blob-iVewd7KQ.d.ts → blob-uNin0_TV.d.ts} +1 -3
  51. package/dist/{browser-error-limits-CToqAD-O.js → browser-error-limits-B0yS95zt.js} +2 -4
  52. package/dist/cache/operations.d.ts +2 -4
  53. package/dist/cache/operations.js +3 -4
  54. package/dist/cache.d.ts +1 -3
  55. package/dist/cache.js +2 -3
  56. package/dist/{cli-config-FPHk1nbC.js → cli-config-BX8H4ZCo.js} +2 -3
  57. package/dist/cli-config-DgpmE_7z.js +1 -0
  58. package/dist/cms.js +1 -2
  59. package/dist/console/auth-types.d.ts +2 -2
  60. package/dist/console/auth.d.ts +2 -4
  61. package/dist/console/auth.js +2 -3
  62. package/dist/console/runtime/auth-operations.d.ts +4 -6
  63. package/dist/console/runtime/auth-operations.js +1 -2
  64. package/dist/console/runtime/client/account-views.d.ts +1 -3
  65. package/dist/console/runtime/client/account-views.js +1 -2
  66. package/dist/console/runtime/client/account.d.ts +1 -1
  67. package/dist/console/runtime/client/account.js +29 -45
  68. package/dist/console/runtime/client/appearance.d.ts +1 -2
  69. package/dist/console/runtime/client/appearance.js +1 -2
  70. package/dist/console/runtime/client/auth-management.ts +6 -6
  71. package/dist/console/runtime/client/blob-media.d.ts +2 -4
  72. package/dist/console/runtime/client/blob-media.js +5 -6
  73. package/dist/console/runtime/client/comment-thread.d.ts +1 -3
  74. package/dist/console/runtime/client/comment-thread.js +3 -4
  75. package/dist/console/runtime/client/content-heads.d.ts +1 -2
  76. package/dist/console/runtime/client/content-heads.js +2 -3
  77. package/dist/console/runtime/client/documents.d.ts +2 -2
  78. package/dist/console/runtime/client/documents.js +1 -2
  79. package/dist/console/runtime/client/editor.d.ts +3 -5
  80. package/dist/console/runtime/client/editor.js +1 -2
  81. package/dist/console/runtime/client/env-groups.d.ts +1 -3
  82. package/dist/console/runtime/client/env-groups.js +1 -2
  83. package/dist/console/runtime/client/env-status.d.ts +1 -3
  84. package/dist/console/runtime/client/env-status.js +1 -2
  85. package/dist/console/runtime/client/format.d.ts +1 -3
  86. package/dist/console/runtime/client/format.js +1 -2
  87. package/dist/console/runtime/client/invocation-deletion.d.ts +1 -2
  88. package/dist/console/runtime/client/invocation-deletion.js +1 -2
  89. package/dist/console/runtime/client/invocation.d.ts +1 -2
  90. package/dist/console/runtime/client/invocation.js +4 -5
  91. package/dist/console/runtime/client/live.d.ts +2 -4
  92. package/dist/console/runtime/client/live.js +1 -2
  93. package/dist/console/runtime/client/mcp-client.d.ts +7 -5
  94. package/dist/console/runtime/client/mcp-client.js +10 -5
  95. package/dist/console/runtime/client/media-library.d.ts +1 -1
  96. package/dist/console/runtime/client/media-library.js +1 -2
  97. package/dist/console/runtime/client/media-uploads.d.ts +2 -4
  98. package/dist/console/runtime/client/media-uploads.js +2 -3
  99. package/dist/console/runtime/client/media.d.ts +1 -1
  100. package/dist/console/runtime/client/media.js +1 -2
  101. package/dist/console/runtime/client/operation-view.d.ts +2 -4
  102. package/dist/console/runtime/client/operation-view.js +4 -5
  103. package/dist/console/runtime/client/presence.d.ts +2 -4
  104. package/dist/console/runtime/client/presence.js +1 -2
  105. package/dist/console/runtime/client/preview.d.ts +1 -3
  106. package/dist/console/runtime/client/preview.js +1 -2
  107. package/dist/console/runtime/client/problem.d.ts +2 -4
  108. package/dist/console/runtime/client/problem.js +3 -4
  109. package/dist/console/runtime/client/project-link.d.ts +1 -1
  110. package/dist/console/runtime/client/project-link.js +1 -2
  111. package/dist/console/runtime/client/project-session.d.ts +19 -10
  112. package/dist/console/runtime/client/project-session.js +1 -723
  113. package/dist/console/runtime/client/project.d.ts +1 -3
  114. package/dist/console/runtime/client/project.js +1 -2
  115. package/dist/console/runtime/client/projects.d.ts +1 -1
  116. package/dist/console/runtime/client/projects.js +1 -2
  117. package/dist/console/runtime/client/publish.d.ts +2 -4
  118. package/dist/console/runtime/client/publish.js +1 -2
  119. package/dist/console/runtime/client/rate-limit.d.ts +1 -3
  120. package/dist/console/runtime/client/rate-limit.js +3 -4
  121. package/dist/console/runtime/client/read-only.d.ts +2 -4
  122. package/dist/console/runtime/client/read-only.js +2 -3
  123. package/dist/console/runtime/client/request.d.ts +2 -2
  124. package/dist/console/runtime/client/request.js +1 -2
  125. package/dist/console/runtime/client/route-query.d.ts +4 -5
  126. package/dist/console/runtime/client/route-query.js +1 -2
  127. package/dist/console/runtime/client/schedule-run.d.ts +1 -3
  128. package/dist/console/runtime/client/schedule-run.js +3 -4
  129. package/dist/console/runtime/client/schema-form.d.ts +1 -1
  130. package/dist/console/runtime/client/schema-form.js +1 -2
  131. package/dist/console/runtime/client/sections.d.ts +1 -1
  132. package/dist/console/runtime/client/sections.js +1 -2
  133. package/dist/console/runtime/client/site-access.d.ts +83 -16
  134. package/dist/console/runtime/client/site-access.js +159 -32
  135. package/dist/console/runtime/client/site-link.d.ts +2 -0
  136. package/dist/console/runtime/client/site-link.js +1 -0
  137. package/dist/console/runtime/client/stored.d.ts +1 -3
  138. package/dist/console/runtime/client/stored.js +1 -2
  139. package/dist/console/runtime/client/toast.d.ts +1 -3
  140. package/dist/console/runtime/client/toast.js +1 -2
  141. package/dist/console/runtime/client/workflow.d.ts +1 -3
  142. package/dist/console/runtime/client/workflow.js +3 -4
  143. package/dist/console/runtime/components/console-account-home.vue +9 -7
  144. package/dist/console/runtime/components/console-account-link.vue +8 -5
  145. package/dist/console/runtime/components/console-account-setup.vue +10 -7
  146. package/dist/console/runtime/components/console-account-shell.vue +7 -2
  147. package/dist/console/runtime/components/console-account-unlink.vue +2 -3
  148. package/dist/console/runtime/components/console-app-settings.vue +8 -2
  149. package/dist/console/runtime/components/console-auth-detail.vue +1 -1
  150. package/dist/console/runtime/components/console-auth-event-list.vue +1 -0
  151. package/dist/console/runtime/components/console-document-editor.vue +3 -4
  152. package/dist/console/runtime/components/console-hosted-comments-embed.vue +106 -0
  153. package/dist/console/runtime/components/console-mcp-callback.vue +6 -1
  154. package/dist/console/runtime/components/console-mcp-items.vue +3 -16
  155. package/dist/console/runtime/components/console-site.vue +10 -8
  156. package/dist/console/runtime/components/console-usage.vue +2 -2
  157. package/dist/console/runtime/console-route.d.ts +1 -3
  158. package/dist/console/runtime/console-route.js +1 -2
  159. package/dist/console/runtime/definitions.d.ts +1 -1
  160. package/dist/console/runtime/definitions.js +1 -2
  161. package/dist/console/runtime/diagnostics.ts +14 -49
  162. package/dist/console/runtime/mcp-client.d.ts +2 -2
  163. package/dist/console/runtime/mcp-client.js +1 -2
  164. package/dist/console/runtime/operation-loader.d.ts +1 -0
  165. package/dist/console/runtime/operation-loader.js +10 -0
  166. package/dist/console/runtime/page-tool/account.js +26 -0
  167. package/dist/console/runtime/page-tool/page-tool.js +2 -2
  168. package/dist/console/runtime/rpc.d.ts +1 -1
  169. package/dist/console/runtime/rpc.js +1 -2
  170. package/dist/console/runtime/sections.d.ts +2 -2
  171. package/dist/console/runtime/sections.js +1 -2
  172. package/dist/console/runtime/server/access-policy.d.ts +1 -1
  173. package/dist/console/runtime/server/access-policy.js +1 -2
  174. package/dist/console/runtime/server/agent-console.d.ts +2 -0
  175. package/dist/console/runtime/server/agent-console.js +1 -0
  176. package/dist/console/runtime/server/blob.d.ts +1 -1
  177. package/dist/console/runtime/server/blob.js +1 -2
  178. package/dist/console/runtime/server/database.d.ts +1 -1
  179. package/dist/console/runtime/server/database.js +1 -2
  180. package/dist/console/runtime/server/definitions.d.ts +1 -1
  181. package/dist/console/runtime/server/definitions.get.d.ts +4 -6
  182. package/dist/console/runtime/server/definitions.get.js +5 -6
  183. package/dist/console/runtime/server/definitions.js +1 -2
  184. package/dist/console/runtime/server/development.d.ts +1 -1
  185. package/dist/console/runtime/server/development.js +1 -2
  186. package/dist/console/runtime/server/documents.d.ts +2 -2
  187. package/dist/console/runtime/server/documents.js +3 -3
  188. package/dist/console/runtime/server/entry-site-access.d.ts +3 -0
  189. package/dist/console/runtime/server/entry-site-access.js +4 -0
  190. package/dist/console/runtime/server/entry.d.ts +3 -0
  191. package/dist/console/runtime/server/entry.js +4 -0
  192. package/dist/console/runtime/server/env.d.ts +1 -3
  193. package/dist/console/runtime/server/env.js +1 -2
  194. package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
  195. package/dist/console/runtime/server/operation-contributions.js +1 -2
  196. package/dist/console/runtime/server/pill.d.ts +45 -0
  197. package/dist/console/runtime/server/pill.js +62 -0
  198. package/dist/console/runtime/server/rpc.d.ts +5 -10
  199. package/dist/console/runtime/server/rpc.js +19 -27
  200. package/dist/console/runtime/server/runtime.d.ts +1 -1
  201. package/dist/console/runtime/server/runtime.js +1 -2
  202. package/dist/console/runtime/server/sections.d.ts +5 -5
  203. package/dist/console/runtime/server/sections.get.d.ts +1 -1
  204. package/dist/console/runtime/server/sections.get.js +8 -9
  205. package/dist/console/runtime/server/sections.js +6 -6
  206. package/dist/console/runtime/server/setup.d.ts +5 -5
  207. package/dist/console/runtime/server/setup.js +5 -5
  208. package/dist/console/runtime/server/site-access-operation.d.ts +7 -0
  209. package/dist/console/runtime/server/site-access-operation.js +36 -0
  210. package/dist/console/runtime/server/site-actions.d.ts +73 -0
  211. package/dist/console/runtime/server/site-actions.js +105 -0
  212. package/dist/console/runtime/server/site-entry.d.ts +16 -9
  213. package/dist/console/runtime/server/site-entry.js +62 -46
  214. package/dist/console/runtime/server/site-visitor.d.ts +17 -0
  215. package/dist/console/runtime/server/site-visitor.js +1 -0
  216. package/dist/console/runtime/server/site.d.ts +27 -0
  217. package/dist/console/runtime/server/site.js +1 -0
  218. package/dist/console/runtime/skills.d.ts +1 -3
  219. package/dist/console/runtime/skills.js +1 -2
  220. package/dist/console/server.d.ts +9 -25
  221. package/dist/console/server.js +8 -8
  222. package/dist/console/ui.d.ts +0 -10
  223. package/dist/console/ui.js +14 -27
  224. package/dist/console-lazy-views-VEjcbL4Q.js +1 -0
  225. package/dist/{console-route-CM2G5hiC.js → console-route-DbdnLkkF.js} +2 -3
  226. package/dist/console-signature--55DIKf2.js +237 -0
  227. package/dist/console.d.ts +1 -3
  228. package/dist/console.js +1 -2
  229. package/dist/content/console/operations.d.ts +3 -0
  230. package/dist/content/console/operations.js +62 -0
  231. package/dist/{console/runtime/server → database/console}/database.get.d.ts +2 -3
  232. package/dist/{console/runtime/server → database/console}/database.get.js +4 -5
  233. package/dist/database/console/operations.d.ts +3 -0
  234. package/dist/database/console/operations.js +49 -0
  235. package/dist/{database-UMJgnU2z.js → database-CrgBUdIx.js} +3 -4
  236. package/dist/{database-DC67Ipm-.d.ts → database-yFezh5U1.d.ts} +1 -3
  237. package/dist/{definition-catalog-BUcclwSH.js → definition-catalog-1xPPtzOx.js} +3 -4
  238. package/dist/definition-catalog-M5ua7JRS.js +1 -0
  239. package/dist/{definitions-BW6SvmMM.js → definitions-BFYqXchw.js} +1 -2
  240. package/dist/{definitions-DB4LbZ7T.d.ts → definitions-ChvMnA1L.d.ts} +0 -2
  241. package/dist/{definitions-DTytrw42.js → definitions-DGo2rNQ9.js} +5 -6
  242. package/dist/{definitions-Dbgxfz3I.d.ts → definitions-DRkgHKmk.d.ts} +1 -3
  243. package/dist/{deployment-BUshgN5Q.js → deployment-CURATxjG.js} +2 -3
  244. package/dist/deployment-l7RuKdEp.js +1 -0
  245. package/dist/{dev-peer-CHjyHYG6.js → dev-peer-CRYp01PE.js} +2 -222
  246. package/dist/dev-peer-CX5C9243.js +1 -0
  247. package/dist/{development-zLxOp-AO.js → development-DD567hhJ.js} +2 -3
  248. package/dist/{development-RnopiRwK.d.ts → development-I40mfD7B.d.ts} +1 -3
  249. package/dist/{diagnostics-DtR0TAmq.js → diagnostics-DLHqjKGe.js} +3 -9
  250. package/dist/diagnostics-DgGKvWzF.d.ts +7 -0
  251. package/dist/docs/nuxt.js +1 -2
  252. package/dist/doctor.d.ts +0 -6
  253. package/dist/doctor.js +11492 -12152
  254. package/dist/{documents-BDR0AkYR.d.ts → documents-A-7Ho0g0.d.ts} +12 -16
  255. package/dist/{documents-B4R4JSfH.js → documents-BduuZjm3.js} +6 -6
  256. package/dist/{documents-BASIRZ91.d.ts → documents-CApMRd4o.d.ts} +4 -7
  257. package/dist/{documents-BewAPY61.js → documents-D6ueeoUR.js} +17 -21
  258. package/dist/durability/operations.d.ts +2 -4
  259. package/dist/durability/operations.js +3 -4
  260. package/dist/{entries-DbyNPLC9.js → entries-UFs9n1MB.js} +2 -3
  261. package/dist/{console/runtime/server → env/console}/env.get.d.ts +2 -4
  262. package/dist/env/console/env.get.js +15 -0
  263. package/dist/env/console/operations.d.ts +3 -0
  264. package/dist/env/console/operations.js +12 -0
  265. package/dist/env/vite.d.ts +1 -0
  266. package/dist/env/vite.js +2 -0
  267. package/dist/{env-Dg1I_DWr.js → env-D-wtSupz.js} +2 -3
  268. package/dist/{error-diagnostics-B1yAIaSn.js → error-diagnostics-CBtvqI30.js} +2 -7
  269. package/dist/{error-diagnostics-C0KyI408.js → error-diagnostics-kKXseq8d.js} +5 -2
  270. package/dist/error-diagnostics.ts +1 -7
  271. package/dist/{features-CC5OcZqJ.js → features-BXRKlmtN.js} +5 -6
  272. package/dist/features-CD5i5I8V.js +1 -0
  273. package/dist/{format-BOYlanIZ.js → format-Df-bS4Ly.js} +1 -2
  274. package/dist/{github-login-Bi3bfjRX.js → github-login-W-vaahWP.js} +1 -2
  275. package/dist/{host-CkL0jjBq.js → host-DeNPYIeV.js} +1 -2
  276. package/dist/{http-error-Bs6e8_-8.js → http-error-BorAxJYM.js} +1 -2
  277. package/dist/index.d.ts +1 -7
  278. package/dist/index.js +5 -7
  279. package/dist/{inspect-DbZuP_7b.js → inspect-CWwAuL-B.js} +2 -3
  280. package/dist/internal/agent-invocations-libsql.js +1 -2
  281. package/dist/internal/disabled-redis-driver.d.ts +1 -3
  282. package/dist/internal/disabled-redis-driver.js +2 -3
  283. package/dist/internal/disabled-upstash-driver.d.ts +1 -3
  284. package/dist/internal/disabled-upstash-driver.js +2 -3
  285. package/dist/internal/test-loader.d.ts +1 -3
  286. package/dist/internal/test-loader.js +2 -3
  287. package/dist/internal/test-server.js +2 -3
  288. package/dist/{internal-BreyUsQ6.js → internal-0C_CC601.js} +1 -2
  289. package/dist/{internal-Cc9N0shU.d.ts → internal-BRNf11h3.d.ts} +14 -8
  290. package/dist/{invariant-DolT9EEx.js → invariant-Dj2R1eMr.js} +1 -2
  291. package/dist/{invocation-page-undo-DqYcPlkQ.js → invocation-page-undo-DHbXczWY.js} +8 -7
  292. package/dist/invocations-B60XWNES.js +45 -0
  293. package/dist/{limits-BUlwWYQE.js → limits-BLo31qDR.js} +1 -2
  294. package/dist/logs/client.d.ts +1 -3
  295. package/dist/logs/client.js +1 -2
  296. package/dist/{console/runtime/server → logs/console}/logs.get.d.ts +3 -5
  297. package/dist/{console/runtime/server → logs/console}/logs.get.js +7 -8
  298. package/dist/logs/console/operations.d.ts +3 -0
  299. package/dist/logs/console/operations.js +23 -0
  300. package/dist/logs/host.d.ts +2 -4
  301. package/dist/logs/host.js +1 -2
  302. package/dist/logs/memory.d.ts +1 -1
  303. package/dist/logs/memory.js +1 -2
  304. package/dist/logs/source.d.ts +1 -1
  305. package/dist/logs/source.js +1 -2
  306. package/dist/logs.d.ts +2 -2
  307. package/dist/logs.js +2 -2
  308. package/dist/loopback-Bl9Cvj1k.js +139 -0
  309. package/dist/mcp/eval.d.ts +1 -0
  310. package/dist/mcp/eval.js +2 -0
  311. package/dist/{mcp-client-C_sEmyQw.d.ts → mcp-client-uXVvS7RL.d.ts} +5 -10
  312. package/dist/{media-uKX4Wy-c.d.ts → media-C79RB1oH.d.ts} +0 -2
  313. package/dist/{media-D3OfyKni.js → media-CNwnh6CG.js} +8 -9
  314. package/dist/{media-library-o8RRsnn_.js → media-library-DTC8TLsZ.js} +5 -6
  315. package/dist/{media-library-D9ThbXqs.d.ts → media-library-DxGu6w9z.d.ts} +0 -2
  316. package/dist/{memory-C54SDH_l.js → memory-D3EJS_Bp.js} +3 -4
  317. package/dist/{memory-2bbl4hcV.d.ts → memory-GK5ZGWrp.d.ts} +1 -3
  318. package/dist/{nuxt-server-auto-imports-cfTZYvgy.js → nuxt-server-auto-imports-4aT5BD4u.js} +1 -2
  319. package/dist/{nuxt-server-imports-75bWMeXc.js → nuxt-server-imports-BdJqiVhT.js} +1 -2
  320. package/dist/nuxt.d.ts +1 -3
  321. package/dist/nuxt.js +276 -182
  322. package/dist/{object-D8pRdprI.js → object-DRSmpe04.js} +1 -2
  323. package/dist/{operation-contributions-C3lwePQu.js → operation-contributions-BU10k2QS.js} +9 -9
  324. package/dist/{operation-contributions-CrdmqtJW.d.ts → operation-contributions-xwjDzj28.d.ts} +6 -7
  325. package/dist/{operation-definition-DxjKcCGm.js → operation-definition-D04Rdjbe.js} +7 -9
  326. package/dist/operation-modules-BUXlwjvd.js +1 -0
  327. package/dist/operation-modules-DHWkPcfS.js +139 -0
  328. package/dist/{operation-registry-BogGwk_I.js → operation-registry-DfQbL7vE.js} +1 -2
  329. package/dist/{operation-rpc-DI9txNxK.js → operation-rpc-BMdfapja.js} +3 -4
  330. package/dist/operations-D-7ljPqw.js +1 -0
  331. package/dist/{operations-TTjL_7Zc.d.ts → operations-DgFhA1WE.d.ts} +0 -4
  332. package/dist/{operations-CFYGXqLm.js → operations-DksTrRMb.js} +4 -5
  333. package/dist/operations-byxiZ2R2.js +113 -0
  334. package/dist/{optional-owners-O6sj4uoj.js → optional-owners-Cypch7V3.js} +4 -6
  335. package/dist/{out-fRNaVslw.js → out-Cw5Tvr92.js} +2933 -2301
  336. package/dist/{owned-paths-BnjT0FhU.js → owned-paths-MjjDftBn.js} +1 -2
  337. package/dist/page/pill.iife.js +2 -2
  338. package/dist/page-tools-BeZrtn4S.js +46 -0
  339. package/dist/page-tools-Chk8Gm9x.d.ts +23 -0
  340. package/dist/page-tools-shared-BLPidmCi.js +39 -0
  341. package/dist/{pathe.M-eThtNZ-J4gfe1m9.js → pathe.M-eThtNZ-D4EC7Wue.js} +1 -2
  342. package/dist/{plugins-DoXnU6-s.d.ts → plugins-BmkOoyIh.d.ts} +25 -110
  343. package/dist/{plugins-BTZQaFtZ.js → plugins-DfXcUnzN.js} +1779 -1384
  344. package/dist/presets/workspace.js +1 -2
  345. package/dist/{project-Dgyq1F1V.d.ts → project-B2qWt8on.d.ts} +3 -12
  346. package/dist/{project-DlWTGB7h.js → project-DRC67Uiu.js} +1 -2
  347. package/dist/{project-DXZRZEPX.js → project-_juMSuAS.js} +8 -11
  348. package/dist/{project-link-DT99MoyU.js → project-link-CJbCkOlC.js} +7 -8
  349. package/dist/{project-link-bNS-KROO.d.ts → project-link-Ck3vuq9w.d.ts} +2 -4
  350. package/dist/{project-root-v6ba4tn7.js → project-root-mAVQGZTX.js} +1 -2
  351. package/dist/project-session-8pN7pRo8.js +764 -0
  352. package/dist/{projects-CAcXztf4.js → projects-BRp0iseV.js} +1 -2
  353. package/dist/{projects-Ddvl9EJp.d.ts → projects-mgPxrKZr.d.ts} +0 -2
  354. package/dist/{registry-zw6aE2N9.js → registry-B8JE5NY-.js} +1 -2
  355. package/dist/{registry-CDKLACCZ.js → registry-CnPC-gNu.js} +1 -2
  356. package/dist/{request-CMA2UKKq.js → request-D769eiBL.js} +5 -6
  357. package/dist/{request-D7h3SQ92.d.ts → request-DYmjLTqP.d.ts} +2 -4
  358. package/dist/{request-SBLxvpyr.d.ts → request-DkoE0b2h.d.ts} +11 -4
  359. package/dist/{request-Cs0FqxEL.js → request-XFVx7CGC.js} +30 -9
  360. package/dist/{request-origin-COUkgHd6.js → request-origin-pzWr9UUu.js} +1 -2
  361. package/dist/{rolldown-runtime-CMFfr-1z.js → rolldown-runtime-DegdyBIC.js} +2 -3
  362. package/dist/{route-query-CRVWXIrc.js → route-query-BWVl6ZO6.js} +4 -5
  363. package/dist/routes-D02vxUSg.js +26 -0
  364. package/dist/{rpc-DIUA61pv.js → rpc-D3tsx5lZ.js} +1 -2
  365. package/dist/{rpc-7nlHSv3y.d.ts → rpc-oijgKQtD.d.ts} +0 -2
  366. package/dist/{runtime-YLWfdrtO.js → runtime-CAbuQGMP.js} +3 -4
  367. package/dist/{runtime-B-46Bawt.js → runtime-CRJsqVTa.js} +2 -3
  368. package/dist/{runtime-DxfJOfCd.js → runtime-DA7HJe10.js} +3 -4
  369. package/dist/runtime-DGvimtvc.d.ts +5 -0
  370. package/dist/{runtime-CX_l_78I.js → runtime-F0CTqBFx.js} +5 -6
  371. package/dist/{runtime-feature-guard-CuyPVGj9.js → runtime-feature-guard-BKAMRZzM.js} +6 -7
  372. package/dist/scan-module-B1A24jqP.js +1 -0
  373. package/dist/{scan-module-Df58L_6T.js → scan-module-BfZvDBxb.js} +2 -4
  374. package/dist/{schema-form-C-fy3xaU.d.ts → schema-form-Bl79Bdm-.d.ts} +0 -2
  375. package/dist/search-jgMrZJXR.js +84 -0
  376. package/dist/{sections-DumoLKQN.js → sections-AUGy9EkY.js} +2 -8
  377. package/dist/{sections-BogiCmtz.d.ts → sections-BMkFB3S-.d.ts} +4 -6
  378. package/dist/{sections-C83x0slv.js → sections-BNTdIEJw.js} +2 -3
  379. package/dist/{sections-Do7X4Nwt.d.ts → sections-DCoCa4nF.d.ts} +1 -8
  380. package/dist/sections-DjeAUX7o.d.ts +8 -0
  381. package/dist/{sections-BKUReack.js → sections-ZFAlI4JW.js} +14 -7
  382. package/dist/{sections.get-H46e2urg.d.ts → sections.get-BY5dClJY.d.ts} +2 -4
  383. package/dist/seo/runtime.d.ts +2 -5
  384. package/dist/seo/runtime.js +3 -5
  385. package/dist/{seo-CtLywyRx.d.ts → seo-CgW5uI9L.d.ts} +0 -2
  386. package/dist/seo.d.ts +1 -1
  387. package/dist/seo.js +1 -2
  388. package/dist/{setup-BC0P3eZy.d.ts → setup-BBnZPziq.d.ts} +5 -10
  389. package/dist/{setup-DNGzawFn.js → setup-yc3_WKNG.js} +4 -17
  390. package/dist/site-CZCIWsUQ.js +169 -0
  391. package/dist/site-link-Bvo2SxPo.js +58 -0
  392. package/dist/site-link-Dtw8MNVB.d.ts +18 -0
  393. package/dist/site-pages-B6J8U2Nq.js +66 -0
  394. package/dist/site-token-Wa7fhjwg.js +215 -0
  395. package/dist/site-visitor-BkhE2TA0.js +89 -0
  396. package/dist/skills/operations.d.ts +1 -5
  397. package/dist/skills/operations.js +4 -5
  398. package/dist/{skills-DdpSMiCI.js → skills-C1MaGEbO.js} +1 -2
  399. package/dist/skills.d.ts +1 -2
  400. package/dist/{skills.get-CRd06TTb.js → skills.get-CW8vc_Hf.js} +3 -4
  401. package/dist/skills.js +1 -2
  402. package/dist/{source-Cw3iYvJF.js → source-DYFndd0W.js} +2 -3
  403. package/dist/{source-S-LChQvw.d.ts → source-DemBtwla.d.ts} +0 -2
  404. package/dist/{stored-Dhv2qsQv.js → stored-J3TetMKf.js} +1 -2
  405. package/dist/task/operations.d.ts +1 -5
  406. package/dist/task/operations.js +3 -4
  407. package/dist/test/register.js +2 -3
  408. package/dist/test.d.ts +0 -4
  409. package/dist/test.js +1 -2
  410. package/dist/ui/vite.js +1 -2
  411. package/dist/usage-DBi7aOhx.js +33 -0
  412. package/dist/{version-dkga9imp.js → version-DUCd7Orc.js} +24 -21
  413. package/dist/{vite-stage-D7fe614I.js → vite-stage-Dmo4RgnK.js} +3 -5
  414. package/dist/{vue-router-C68IU1jM.d.ts → vue-router-plZJLlpm.d.ts} +120 -182
  415. package/dist/workspace/console/operations.d.ts +3 -0
  416. package/dist/workspace/console/operations.js +22 -0
  417. package/dist/{console/runtime/server → workspace/console}/workspace-files.get.d.ts +3 -5
  418. package/dist/{console/runtime/server → workspace/console}/workspace-files.get.js +4 -5
  419. package/dist/{workspace-history-B95Q-kGI.js → workspace-history-B52xib2J.js} +3 -4
  420. package/dist/{workspace-history-CeVwBB6Q.d.ts → workspace-history-WuxgLsi4.d.ts} +0 -2
  421. package/package.json +158 -149
  422. package/dist/agents-BhFggA26.js +0 -2
  423. package/dist/auth-GFIN6xSJ.d.ts +0 -120
  424. package/dist/cli-config-g_mbWdjT.js +0 -2
  425. package/dist/cloudflare-env-lookup-DKXdr4P_.js +0 -16
  426. package/dist/console/runtime/client/ticket.d.ts +0 -2
  427. package/dist/console/runtime/client/ticket.js +0 -2
  428. package/dist/console/runtime/page/loader.js +0 -134
  429. package/dist/console/runtime/server/auth.d.ts +0 -2
  430. package/dist/console/runtime/server/env.get.js +0 -16
  431. package/dist/console/runtime/server/invocation-workspace.get.d.ts +0 -8
  432. package/dist/console/runtime/server/mcp-client-operations.d.ts +0 -5
  433. package/dist/console/runtime/server/mcp-client-operations.js +0 -139
  434. package/dist/console/runtime/server/page-auth.d.ts +0 -18
  435. package/dist/console/runtime/server/page-auth.js +0 -44
  436. package/dist/console/runtime/server/page-tool.d.ts +0 -2
  437. package/dist/console/runtime/server/page-tool.js +0 -110
  438. package/dist/console/runtime/server/page-tools-route.d.ts +0 -2
  439. package/dist/console/runtime/server/page-tools-route.js +0 -5
  440. package/dist/console/runtime/server/search.get.d.ts +0 -4
  441. package/dist/console/runtime/server/search.get.js +0 -97
  442. package/dist/console/runtime/server/site-session.d.ts +0 -80
  443. package/dist/console/runtime/server/site-session.js +0 -2
  444. package/dist/console/runtime/server/tickets.d.ts +0 -2
  445. package/dist/console/runtime/server/tickets.js +0 -2
  446. package/dist/console/runtime/server/usage.get.d.ts +0 -10
  447. package/dist/console/runtime/server/usage.get.js +0 -92
  448. package/dist/console/runtime/site-access.d.ts +0 -2
  449. package/dist/console/runtime/site-access.js +0 -2
  450. package/dist/console-lazy-views-DXnIkdyd.js +0 -2
  451. package/dist/definition-catalog-og_1razf.js +0 -2
  452. package/dist/deployment-C2B0hBBj.js +0 -2
  453. package/dist/diagnostics-CjGiniKb.d.ts +0 -11
  454. package/dist/features-ujWsvlEH.js +0 -2
  455. package/dist/invocations-6jxqLkGY.js +0 -86
  456. package/dist/mcp-client-C91h8Taa.js +0 -1024
  457. package/dist/mcp-client-CTbTbn7d.js +0 -10
  458. package/dist/operations-5Lwd1xEI.js +0 -2
  459. package/dist/operations-ChEXk2ij.js +0 -853
  460. package/dist/page-tool-PmxH65gt.d.ts +0 -69
  461. package/dist/page-tools-ClgqElu-.js +0 -462
  462. package/dist/page-tools-DcCCtDKi.d.ts +0 -23
  463. package/dist/page-tools-shared-aNC9YtoI.js +0 -125
  464. package/dist/runtime-B_btezs1.d.ts +0 -7
  465. package/dist/scan-module-D_3X08mj.js +0 -2
  466. package/dist/secret-DELGKpCJ.js +0 -44
  467. package/dist/sections-CFiMNsqu.d.ts +0 -10
  468. package/dist/site-access-BycrwM2v.js +0 -18
  469. package/dist/site-access-CAiWyKOD.js +0 -2
  470. package/dist/site-access-DxfdOel1.d.ts +0 -55
  471. package/dist/site-access-L1qbvKt6.js +0 -293
  472. package/dist/site-session-CRwgKtTF.js +0 -300
  473. package/dist/skills/vitehub/SKILL.md +0 -142
  474. package/dist/skills/vitehub/agents/openai.yaml +0 -4
  475. package/dist/skills/vitehub/references/agent-definitions.md +0 -36
  476. package/dist/skills/vitehub/references/bundle.md +0 -57
  477. package/dist/skills/vitehub/references/capabilities-authority.md +0 -30
  478. package/dist/skills/vitehub/references/channels-triggers.md +0 -27
  479. package/dist/skills/vitehub/references/framework-composition.md +0 -29
  480. package/dist/skills/vitehub/references/preview-contract.md +0 -44
  481. package/dist/skills/vitehub/references/primitives/auth.md +0 -14
  482. package/dist/skills/vitehub/references/primitives/blob.md +0 -13
  483. package/dist/skills/vitehub/references/primitives/browser.md +0 -17
  484. package/dist/skills/vitehub/references/primitives/cache.md +0 -13
  485. package/dist/skills/vitehub/references/primitives/channels.md +0 -11
  486. package/dist/skills/vitehub/references/primitives/connections.md +0 -14
  487. package/dist/skills/vitehub/references/primitives/content.md +0 -13
  488. package/dist/skills/vitehub/references/primitives/database.md +0 -15
  489. package/dist/skills/vitehub/references/primitives/email.md +0 -11
  490. package/dist/skills/vitehub/references/primitives/env.md +0 -13
  491. package/dist/skills/vitehub/references/primitives/kv.md +0 -13
  492. package/dist/skills/vitehub/references/primitives/markdown-template.md +0 -13
  493. package/dist/skills/vitehub/references/primitives/queue.md +0 -14
  494. package/dist/skills/vitehub/references/primitives/rate-limit.md +0 -11
  495. package/dist/skills/vitehub/references/primitives/realtime.md +0 -19
  496. package/dist/skills/vitehub/references/primitives/sandbox-task.md +0 -11
  497. package/dist/skills/vitehub/references/primitives/sandbox.md +0 -13
  498. package/dist/skills/vitehub/references/primitives/schedule.md +0 -11
  499. package/dist/skills/vitehub/references/primitives/shell.md +0 -11
  500. package/dist/skills/vitehub/references/primitives/source.md +0 -11
  501. package/dist/skills/vitehub/references/primitives/workflow.md +0 -11
  502. package/dist/skills/vitehub/references/primitives/workspace.md +0 -11
  503. package/dist/skills/vitehub/references/project-patterns.md +0 -19
  504. package/dist/skills/vitehub/references/project-shapes.md +0 -81
  505. package/dist/skills/vitehub/references/proof-recovery.md +0 -31
  506. package/dist/skills/vitehub/references/sandboxes-hosts.md +0 -26
  507. package/dist/skills/vitehub/references/schedules-workflows-invocations.md +0 -28
  508. package/dist/skills/vitehub/references/server-primitives.md +0 -39
  509. package/dist/skills/vitehub/references/workspaces-sources-access.md +0 -26
  510. package/dist/ticket-DtBAstEU.js +0 -31
  511. package/dist/ticket-Pr_8ZtXW.d.ts +0 -14
  512. package/dist/tickets-DahBmKDT.js +0 -357
  513. package/dist/usage-CoQXs5nW.d.ts +0 -22
  514. package/dist/usage-index-VJAZ7a0p.js +0 -335
  515. package/dist/usage-jKtAgJZ0.js +0 -571
  516. /package/dist/{console/runtime/public/skills → console-skills}/index.json +0 -0
  517. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/SKILL.md +0 -0
  518. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/agents/openai.yaml +0 -0
  519. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/agent-definitions.md +0 -0
  520. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/bundle.md +0 -0
  521. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/capabilities-authority.md +0 -0
  522. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/channels-triggers.md +0 -0
  523. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/framework-composition.md +0 -0
  524. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/preview-contract.md +0 -0
  525. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/auth.md +0 -0
  526. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/blob.md +0 -0
  527. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/browser.md +0 -0
  528. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/cache.md +0 -0
  529. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/channels.md +0 -0
  530. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/connections.md +0 -0
  531. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/content.md +0 -0
  532. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/database.md +0 -0
  533. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/email.md +0 -0
  534. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/env.md +0 -0
  535. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/kv.md +0 -0
  536. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/markdown-template.md +0 -0
  537. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/queue.md +0 -0
  538. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/rate-limit.md +0 -0
  539. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/realtime.md +0 -0
  540. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/sandbox-task.md +0 -0
  541. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/sandbox.md +0 -0
  542. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/schedule.md +0 -0
  543. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/shell.md +0 -0
  544. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/source.md +0 -0
  545. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/workflow.md +0 -0
  546. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/workspace.md +0 -0
  547. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/project-patterns.md +0 -0
  548. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/project-shapes.md +0 -0
  549. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/proof-recovery.md +0 -0
  550. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/sandboxes-hosts.md +0 -0
  551. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/schedules-workflows-invocations.md +0 -0
  552. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/server-primitives.md +0 -0
  553. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/workspaces-sources-access.md +0 -0
package/README.md CHANGED
@@ -13,15 +13,15 @@ Use it for a Vite or Nuxt application that needs Server Primitives, Agents, or b
13
13
 
14
14
  ## Agent skill
15
15
 
16
- The package ships the `vitehub` agent skill at `node_modules/vite-hub/dist/skills/vitehub/`, written for the installed version. It lists the built-ins that apps often write by hand, such as migrations, SQLite backups, proxy sign-in, and deploys.
16
+ The package ships the `vitehub` agent skill at `node_modules/vite-hub/dist/console-skills/vitehub/`, written for the installed version. It lists the built-ins that apps often write by hand, such as migrations, SQLite backups, proxy sign-in, and deploys.
17
17
 
18
18
  Coding agents don't load skills from `node_modules`. Install it into the project once, and again after `vitehub update`:
19
19
 
20
20
  ```sh
21
- npx skills add ./node_modules/vite-hub/dist/skills/vitehub --agent claude-code codex
21
+ npx skills add ./node_modules/vite-hub/dist/console-skills/vitehub --agent claude-code codex
22
22
  ```
23
23
 
24
- The CLI copies it to `.agents/skills/vitehub/`, where Codex loads it, and links it from `.claude/skills/vitehub/` for Claude Code. For a single task without installing it, tell the agent to read `node_modules/vite-hub/dist/skills/vitehub/SKILL.md` first.
24
+ The CLI copies it to `.agents/skills/vitehub/`, where Codex loads it, and links it from `.claude/skills/vitehub/` for Claude Code. For a single task without installing it, tell the agent to read `node_modules/vite-hub/dist/console-skills/vitehub/SKILL.md` first.
25
25
 
26
26
  ## Install
27
27
 
@@ -58,7 +58,6 @@ pnpm add vite-hub
58
58
  | `server/comments.ts` | `@vite-hub/comments` |
59
59
  | `.template.md` imports | `@vite-hub/markdown-template` |
60
60
  | Console with Agents | `@libsql/client drizzle-orm@1.0.0-rc.5` |
61
- | Console MCP client (`console.mcpClient`) | `@modelcontextprotocol/sdk` |
62
61
  | `vite-hub/choices` | `@vite-hub/choices` |
63
62
  | `vite-hub/device` | `@vite-hub/device` |
64
63
  | `vite-hub/forge` | `@vite-hub/forge` |
@@ -330,19 +329,21 @@ The Console **Skills** page shows the bundled files of each discovered Agent Def
330
329
 
331
330
  The Console **Usage** page provides session history with date, Agent, status, and search filters. Open a row to inspect that session in the existing Agents view. History keeps completed, failed, and cancelled Agent Invocations visible even when token or cost evidence is unavailable. Totals use the same filters as the history table. See [Session history and usage](https://vitehub.dev/docs/console/agents#skills-and-usage) for the identity, coverage, and pagination contract.
332
331
 
333
- Apps do not serve a Console page, a Console MCP, or a Console sign-in. They serve one Console route, `POST /_vitehub/rpc`, which the ViteHub Console at console.vitehub.dev and the CLI call with signed requests. `console: true` takes only requests signed with an Ed25519 key whose public key is in a `VITEHUB_CONSOLE_KEY_<NAME>` runtime env var. A dev server without such a var also answers this machine without a signature, so the local `vitehub` CLI works. `console: { auth: false }` takes calls without a signature from this machine, for development; a production build with it fails with `VITE_HUB_B0022`, even with `authorize` set. `console.auth: "token"`, `console.auth: "app"`, `console.auth: { ... }` (Console Auth), `console.origins`, `console.mcp`, `console.signInPage`, and `console.embed` are removed, and fail the build with `VITE_HUB_B0020` and the fix. See [Move from auth: "app" or Console Auth](https://vitehub.dev/docs/console/migrate#move-from-auth-app-or-console-auth).
332
+ Apps do not serve the Console UI or its MCP server. The lazy `/_vitehub` routes open the Comments pill when it is enabled, or redirect to the configured Console otherwise. Apps with the pill also serve Site access at `/_vitehub/site`. At startup, the app registers a loader for Agent operations without loading the Console runtime. The runtime loads on the first Console request or when another feature first needs it.
333
+
334
+ The hosted Console and the CLI send signed requests to `POST /_vitehub/rpc`. `console: true` takes only requests signed with an Ed25519 key whose public key is in a `VITEHUB_CONSOLE_KEY_<NAME>` runtime env var. A dev server without such a var also answers this machine without a signature, so the local `vitehub` CLI works. `console: { auth: false }` takes calls without a signature from this machine, for development; a production build with it fails with `VITE_HUB_B0022`, even with `authorize` set. `console.auth: "token"`, `console.auth: "app"`, `console.auth: { ... }` (Console Auth), `console.origins`, `console.mcp`, `console.signInPage`, and `console.embed` are removed, and fail the build with `VITE_HUB_B0020` and the fix. See [Move from auth: "app" or Console Auth](https://vitehub.dev/docs/console/migrate#move-from-auth-app-or-console-auth).
334
335
 
335
336
  Without a `console` option, `vite dev` serves the operation RPC, so `vitehub <command>` works. `console: false` turns the Console endpoint off completely: no `/_vitehub` route in development or production.
336
337
 
337
338
  Add `authorize: "./server/console-authorize.ts"` to decide who may use the Console. The file default-exports `defineConsoleAuthorize()` from `vite-hub/console/auth`. It receives the `Request` and the signer and its `key` name: `via: "console"` with the `user` and `team` that the Console signed, or `via: "cli"` with no `user`. When the ViteHub MCP of the Console calls for the user, `surface` is `"mcp"`: the RPC then refuses operations with `mcp: false`, runs the others with the `mcp` surface, and refuses a destructive call that the person did not confirm. A caller with `readOnly: true` runs only operations that read. The app ignores caller fields that it does not know, so a newer Console can still call it. An Agent that calls Console operations as tools receives `via: "agent"`, never a signed `via`. With `auth: false`, it receives only the `Request`. It returns `true`, `false`, a `Response`, or `{ sections: ["content"] }` to allow only some Console sections. Every Console operation declares its section, and the server returns `403` outside the allowed sections. The navigation hides the other sections.
338
339
 
339
- Set `console.mcpClient: true` to add the MCP client section. It runs on the server. It connects to the app's own `/mcp` and to other MCP servers with OAuth or a bearer token, as the Console caller, and it can hold several accounts of one server at once. Tokens and MCP sessions stay on the server and never reach the browser: in memory, or sealed in the app's KV store with `VITEHUB_CONSOLE_MCP_KEY`. See [Connect to MCP servers](https://vitehub.dev/docs/console/mcp-client).
340
+ Set `console.url` to the origin of a self-hosted Console, such as `https://console.example.com`. `/_vitehub`, `hostedConsoleUrl()`, the Site access sign-in, and the Console segment of the Comments pill then go there. It defaults to `https://console.vitehub.dev`. The build refuses a value that is not an `https://` origin without a path, or `http://localhost`. The MCP client section runs on the Console server, so the app needs nothing for it. See [Connect to MCP servers](https://vitehub.dev/docs/console/mcp-client).
340
341
 
341
342
  `invoke` defaults to `true` on the development server and `false` in a production build. Invocation also enables the Schedules page **Run now** button and the `schedule.run` operation (`vitehub schedule run <name>`) for Static Schedule Definitions that set `manual: true`; see [Run Schedules on demand](https://vitehub.dev/docs/cli/primitives#run-a-schedule-on-demand).
342
343
 
343
- `impersonation: true` adds the `auth.impersonate` and `auth.stop-impersonating` operations. Each returns a one-time link, `GET /_vitehub/rpc?ticket=<ticket>`, that the browser opens on the app. The browser's app session must belong to the email of the signed Console person and have Better Auth's `impersonate` permission. It is off by default. It needs app Auth with Better Auth's admin plugin and `events.store`. The session lasts one hour by default and cannot create credentials.
344
+ `impersonation: true` adds the `auth.impersonate` and `auth.stop-impersonating` operations. The Console calls one as the person, then opens the app's `/_vitehub/site` with an `impersonate` token that it signs for 60 seconds. The browser's app session must belong to the email of the signed Console person and have Better Auth's `impersonate` permission. It is off by default. It needs app Auth with Better Auth's admin plugin and `events.store`. The session lasts one hour by default and cannot create credentials.
344
345
 
345
- One-time links also open Content previews (`documents.preview`). A link works once, for 60 seconds, on the app origin and mount that made it, for the person who asked. The app keeps the SHA-256 of each link in Better Auth's verification table, so every instance sees it. A development server without an Auth database keeps them in memory. A production app without one refuses links with `CONSOLE_TICKET_STORE_MISSING`. See [One-time links](https://vitehub.dev/docs/console/site-access#one-time-links).
346
+ Content previews (`documents.preview`) use the same route with a `preview` token. A token works for 60 seconds, for the app URL and the kind that it names, in the browser that started the visit. The app keeps no state and needs no store for it. See [Impersonation and Content preview](https://vitehub.dev/docs/console/site-access#impersonation-and-content-preview).
346
347
 
347
348
  Auth changes from the Console, such as `auth.ban`, run as the app user with the email of the signed Console person, with a live app session of that user. CLI calls name no person, so they cannot run Auth changes.
348
349
 
@@ -1,4 +1,3 @@
1
- //#region src/_internal/runtime/browser-errors.d.ts
2
1
  type BrowserReportField = string | number | boolean | null;
3
2
  /** One browser error or warning, as the server logs it. */
4
3
  export interface BrowserErrorReport {
@@ -28,5 +27,4 @@ export declare function createBrowserErrorsHandler(now?: () => number): {
28
27
  declare const handler: {
29
28
  fetch: (request: Request) => Promise<Response>;
30
29
  };
31
- //#endregion
32
30
  export { handler as default };
@@ -1,7 +1,7 @@
1
- import { r as requestLog } from "../../browser-error-limits-CToqAD-O.js";
2
- import { t as forwardedRequestOrigin } from "../../request-origin-COUkgHd6.js";
1
+ import { r as requestLog } from "../../browser-error-limits-B0yS95zt.js";
2
+ import { t as forwardedRequestOrigin } from "../../request-origin-pzWr9UUu.js";
3
3
  import { getStandardContext } from "@vite-hub/runtime";
4
- //#region src/_internal/runtime/browser-errors.ts
4
+ // src/_internal/runtime/browser-errors.ts
5
5
  /** Reports from one address in one minute, per server process. */
6
6
  const perMinute = 20;
7
7
  const kinds = /* @__PURE__ */ new Set([
@@ -195,5 +195,4 @@ function createBrowserErrorsHandler(now = Date.now) {
195
195
  } };
196
196
  }
197
197
  const handler = createBrowserErrorsHandler();
198
- //#endregion
199
198
  export { createBrowserErrorsHandler, handler as default, parseBrowserErrorReport };
@@ -1,4 +1,3 @@
1
- //#region src/_internal/runtime/redirects.d.ts
2
1
  /** The resolved `vitehub({ redirects })` options that the generated code passes. */
3
2
  export interface RedirectsPolicy {
4
3
  /** The canonical host name, in lower case. */
@@ -34,4 +33,4 @@ export declare function installRedirects(nitroApp: NitroAppLike, policy: Redirec
34
33
  * between the asset binding and dynamic routes. The binding itself may return an SPA fallback for missing files.
35
34
  */
36
35
  export declare function withCloudflareRedirects<Handler extends WorkerHandler>(handler: Handler, policy: RedirectsPolicy): Handler & WorkerHandler;
37
- //#endregion
36
+ export {};
@@ -1,5 +1,5 @@
1
- import { t as forwardedRequestOrigin } from "../../request-origin-COUkgHd6.js";
2
- //#region src/_internal/runtime/redirects.ts
1
+ import { t as forwardedRequestOrigin } from "../../request-origin-pzWr9UUu.js";
2
+ // src/_internal/runtime/redirects.ts
3
3
  const ipv4 = /^\d{1,3}(?:\.\d{1,3}){3}$/;
4
4
  /**
5
5
  * Tells if a request to `hostname` keeps its host and scheme: a local name (`localhost`, `*.localhost`, a name without a
@@ -67,5 +67,4 @@ function withCloudflareRedirects(handler, policy) {
67
67
  }
68
68
  };
69
69
  }
70
- //#endregion
71
70
  export { canonicalRedirect, installRedirects, withCloudflareRedirects };
@@ -1,4 +1,3 @@
1
- //#region src/_internal/runtime/request-policy.d.ts
2
1
  /** The request options of `vitehub({ trustProxy, sameOriginWrites })` that the generated Nitro plugin passes. */
3
2
  export interface RequestPolicyOptions {
4
3
  trustProxy?: boolean;
@@ -50,4 +49,4 @@ export declare function isCrossOriginWrite(request: Pick<Request, "headers" | "m
50
49
  * write gets 403 before any middleware or route runs.
51
50
  */
52
51
  export declare function installRequestPolicy(nitroApp: NitroAppLike, options: RequestPolicyOptions): void;
53
- //#endregion
52
+ export {};
@@ -1,5 +1,5 @@
1
- import { t as forwardedRequestOrigin } from "../../request-origin-COUkgHd6.js";
2
- //#region src/_internal/runtime/request-policy.ts
1
+ import { t as forwardedRequestOrigin } from "../../request-origin-pzWr9UUu.js";
2
+ // src/_internal/runtime/request-policy.ts
3
3
  const safeMethods = /* @__PURE__ */ new Set([
4
4
  "GET",
5
5
  "HEAD",
@@ -78,5 +78,4 @@ function installRequestPolicy(nitroApp, options) {
78
78
  if (!sameOriginWrites || !(fetch instanceof Function)) return;
79
79
  nitroApp.fetch = (request, ...rest) => isCrossOriginWrite(request, sameOriginWrites.exclude) ? crossOriginWriteResponse() : Reflect.apply(fetch, nitroApp, [request, ...rest]);
80
80
  }
81
- //#endregion
82
81
  export { installRequestPolicy, isCrossOriginWrite, trustForwardedFor, trustForwardedProto, trustProxyHeaders };
@@ -1,4 +1,3 @@
1
- //#region src/_internal/runtime/security.d.ts
2
1
  /** The resolved `vitehub({ security })` options that the generated Nitro plugin passes. */
3
2
  export interface SecurityPolicy {
4
3
  /** Header names and values to add to every response that does not set the header itself. */
@@ -24,4 +23,4 @@ export declare function addSecurityHeaders(response: Response, headers: Security
24
23
  * dispatch through the Fetch bridge, which also keeps native handlers behind these controls.
25
24
  */
26
25
  export declare function installSecurity(nitroApp: NitroAppLike, policy: SecurityPolicy): void;
27
- //#endregion
26
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { defineDiagnostics } from "nostics";
2
2
  import { HTTPError } from "nitro/h3";
3
3
  import { limitRequestBody } from "srvx/body-limit";
4
- //#region src/_internal/runtime/security.ts
4
+ // src/_internal/runtime/security.ts
5
5
  const securityDiagnostics = /*#__PURE__*/ defineDiagnostics({
6
6
  docsBase: "https://vitehub.dev/docs/development/diagnostics",
7
7
  codes: { VITE_HUB_REQUEST_BODY_TOO_LARGE: {
@@ -114,5 +114,4 @@ function installSecurity(nitroApp, policy) {
114
114
  return headers.length > 0 ? addSecurityHeaders(response, headers) : response;
115
115
  };
116
116
  }
117
- //#endregion
118
117
  export { addSecurityHeaders, bodyTooLargeResponse, installSecurity };
@@ -1,143 +1,16 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
2
- import { r as operationRpcPath } from "./operation-rpc-DI9txNxK.js";
3
- import { r as consoleDiagnosticBody, t as consoleDiagnostic } from "./diagnostics-DtR0TAmq.js";
4
- import { c as readConsolePublicKeys, i as isViteHubLoopbackPeer, l as verifyConsoleSignature } from "./dev-peer-CHjyHYG6.js";
5
- import { l as operationListed, o as operationAccessAllows } from "./operations-CFYGXqLm.js";
6
- import { i as isConsoleDevelopmentBuild } from "./development-zLxOp-AO.js";
7
- import { a as installedConsoleAccessPolicy, n as consoleAuthorizedSections, t as consoleAuthorizedGrants } from "./access-policy-CVZg9LPR.js";
8
- import { c as isConsoleDevelopmentRuntime, i as consoleRequestError } from "./request-CMA2UKKq.js";
9
- import { n as loadConsoleRuntime } from "./runtime-DxfJOfCd.js";
10
- import { formatDiagnostic } from "nostics";
1
+ import { l as operationListed, o as operationAccessAllows } from "./operations-DksTrRMb.js";
2
+ import { a as installedConsoleAccessPolicy, n as consoleAuthorizedSections, t as consoleAuthorizedGrants } from "./access-policy-BM48XstY.js";
3
+ import { r as consoleDiagnosticBody } from "./diagnostics-DLHqjKGe.js";
4
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
5
+ import "./console-signature--55DIKf2.js";
6
+ import { n as checkConsoleSignature, r as consoleKeysMissing, t as isConsoleLoopbackRequest } from "./loopback-Bl9Cvj1k.js";
7
+ import { i as isConsoleDevelopmentBuild } from "./development-DD567hhJ.js";
8
+ import { r as consoleRequestError, s as isConsoleDevelopmentRuntime } from "./request-D769eiBL.js";
9
+ import { n as loadConsoleRuntime } from "./runtime-DA7HJe10.js";
11
10
  import { getStandardContext } from "@vite-hub/runtime/internal/h3";
12
11
  import { defineGrant } from "@vite-hub/runtime/internal/grant";
13
12
  import { isRuntimeResponse } from "@vite-hub/runtime/internal/runtime-type";
14
- import { resolvePublicUrl } from "@vite-hub/runtime";
15
- //#region src/console/runtime/server/console-signature.ts
16
- /** The `401` or `500` of a refused signature, with the Console diagnostic fields. */
17
- function consoleSignatureRejection(status, code, message) {
18
- return Response.json({
19
- ...consoleDiagnosticBody(code, message),
20
- ok: false,
21
- status
22
- }, {
23
- headers: {
24
- "cache-control": "no-store",
25
- ...status === 401 ? { "www-authenticate": "VitehubSignature realm=\"vitehub-console\"" } : {},
26
- "x-content-type-options": "nosniff",
27
- "x-robots-tag": "noindex, nofollow"
28
- },
29
- status
30
- });
31
- }
32
- /**
33
- * Print a setup failure of the app, such as a malformed `VITEHUB_CONSOLE_KEY_<NAME>`, in the server log, as an
34
- * unhandled error prints. Only the caller gets the coded `500`, so without this line the host log shows nothing.
35
- */
36
- function logSetupFailure(code, message) {
37
- globalThis.console.error(formatDiagnostic(consoleDiagnostic(code, message)));
38
- }
39
- /** The host environment of this request: the Cloudflare `env`, then `process.env` for the names it does not set. */
40
- function requestEnv(event) {
41
- return {
42
- ...globalThis.process?.env,
43
- ...getStandardContext(event).runtime?.cloudflare?.env
44
- };
45
- }
46
- /**
47
- * Whether the host env of this request has no `VITEHUB_CONSOLE_KEY_<NAME>` variable, so no signature can pass. A
48
- * malformed key counts as a key: the check then answers `CONSOLE_KEY_MALFORMED`.
49
- */
50
- function consoleKeysMissing(event) {
51
- const keys = readConsolePublicKeys(requestEnv(event));
52
- return !(keys instanceof Map) && keys.code === "CONSOLE_KEY_NOT_CONFIGURED";
53
- }
54
- /** Whether a path is the Console RPC route, below any application mount. */
55
- function isConsoleRpcPath(pathname) {
56
- const route = pathname.indexOf(operationRpcPath);
57
- return route !== -1 && pathname.slice(route) === "/_vitehub/rpc";
58
- }
59
- /**
60
- * Check the signature of a request to an app with `console: true`, before its body is read. The public keys come from
61
- * the `VITEHUB_CONSOLE_KEY_<NAME>` variables of the host env on each request, so a deploy or a Worker secret change
62
- * takes effect without a build.
63
- *
64
- * The signed origin must be the origin of this app: `vitehub({ publicUrl })` when it is set, else the URL of the request
65
- * as the host routed it. Node adapters build that URL from the caller's Host header, so they require a configured
66
- * public URL. Forwarding headers never supply the deployment identity.
67
- *
68
- * A match carries the signed body digest. The RPC route compares it with the bytes that it reads before it runs a call.
69
- * Signed requests reach only `POST /_vitehub/rpc`.
70
- */
71
- async function checkConsoleSignature(request, event) {
72
- const keys = readConsolePublicKeys(requestEnv(event));
73
- if (!(keys instanceof Map)) {
74
- logSetupFailure(keys.code, keys.message);
75
- return {
76
- ok: false,
77
- response: consoleSignatureRejection(keys.status, keys.code, keys.message)
78
- };
79
- }
80
- const url = new URL(request.url);
81
- if (request.method !== "POST" || !isConsoleRpcPath(url.pathname)) return {
82
- ok: false,
83
- response: consoleSignatureRejection(401, "CONSOLE_SIGNATURE_INVALID", `Signed requests reach only POST ${operationRpcPath}.`)
84
- };
85
- const nodeRequest = "runtime" in request && typeof request.runtime === "object" && request.runtime !== null && "node" in request.runtime;
86
- const origin = resolvePublicUrl({
87
- configuredOnly: nodeRequest,
88
- request
89
- });
90
- if (!origin) {
91
- if (!request.headers.has("x-vitehub-signature")) return {
92
- ok: false,
93
- response: consoleSignatureRejection(401, "CONSOLE_SIGNATURE_MISSING", "This request is not signed.")
94
- };
95
- const message = "Signed requests on Node require vitehub({ publicUrl }) to identify this deployment. The request Host cannot supply its identity.";
96
- logSetupFailure("CONSOLE_SIGNATURE_ORIGIN", message);
97
- return {
98
- ok: false,
99
- response: consoleSignatureRejection(500, "CONSOLE_SIGNATURE_ORIGIN", message)
100
- };
101
- }
102
- const verified = await verifyConsoleSignature({
103
- headers: request.headers,
104
- keys,
105
- method: request.method,
106
- origin,
107
- url
108
- });
109
- if (!verified.ok) return {
110
- ok: false,
111
- response: consoleSignatureRejection(verified.status, verified.code, verified.message)
112
- };
113
- return verified;
114
- }
115
- //#endregion
116
- //#region src/console/runtime/server/loopback.ts
117
- const loopbackHosts = /* @__PURE__ */ new Set([
118
- "localhost",
119
- "127.0.0.1",
120
- "[::1]",
121
- "::1"
122
- ]);
123
- function isLoopbackHost(host) {
124
- if (!host) return false;
125
- const name = (host.startsWith("[") ? host.slice(0, host.indexOf("]") + 1) : host.replace(/:\d+$/, "")).toLowerCase();
126
- return loopbackHosts.has(name) || name.endsWith(".localhost");
127
- }
128
- /**
129
- * Whether a development Console without sign-in may serve this request. `vite dev` with no sign-in (the `local` or
130
- * `open` access) trusts anyone who can reach it, so it serves only this machine: a tunnel or a LAN address with a
131
- * forwarded Host would give the whole app to a stranger. Production builds and other access modes always pass.
132
- */
133
- async function isConsoleLoopbackRequest(request, context) {
134
- if (context.access !== "local" && context.access !== "open" || !isConsoleDevelopmentBuild()) return true;
135
- const hostHeader = request.headers.get("host") ?? new URL(request.url).host;
136
- const forwarded = request.headers.get("x-forwarded-host");
137
- return isLoopbackHost(hostHeader) && (!forwarded || isLoopbackHost(forwarded)) && await isViteHubLoopbackPeer(request, context.remoteAddress);
138
- }
139
- //#endregion
140
- //#region src/console/runtime/server/access.ts
13
+ // src/console/runtime/server/access.ts
141
14
  const consoleAccessGrant = defineGrant("vitehub.console.access", (mode) => mode);
142
15
  const checkedRequests = /* @__PURE__ */ new WeakMap();
143
16
  const routeScopes = /* @__PURE__ */ new WeakMap();
@@ -339,7 +212,8 @@ function consoleRealtimeAccess(section) {
339
212
  if (!(event instanceof Object)) return Promise.resolve(void 0);
340
213
  let pending = checked.get(event);
341
214
  if (!pending) {
342
- pending = checkConsoleAccess(event).then((result) => isRuntimeResponse(result) || !consoleAccessAllows(result, section) ? void 0 : result);
215
+ const consoleEvent = event;
216
+ pending = import("#vitehub/console/app").then(() => checkConsoleAccess(consoleEvent)).then((result) => isRuntimeResponse(result) || !consoleAccessAllows(result, section) ? void 0 : result);
343
217
  checked.set(event, pending);
344
218
  }
345
219
  return pending;
@@ -448,5 +322,4 @@ function bindConsoleAccess(access, event) {
448
322
  checkedRequests.set(request, access);
449
323
  return event;
450
324
  }
451
- //#endregion
452
- export { isConsoleRpcPath as _, consoleAccessWrites as a, consoleOperationGranted as c, consoleRequest as d, readConsoleAccessGrants as f, isConsoleLoopbackRequest as g, withConsoleAccess as h, consoleAccessInvoker as i, consolePerson as l, readConsoleOperationUser as m, bindConsoleAccess as n, consoleImpersonation as o, readConsoleAccessUser as p, consoleAccessAllows as r, consoleOperationAccess as s, allowedConsoleSections as t, consoleRealtimeAccess as u };
325
+ export { consoleAccessWrites as a, consoleOperationGranted as c, consoleRequest as d, readConsoleAccessGrants as f, withConsoleAccess as h, consoleAccessInvoker as i, consolePerson as l, readConsoleOperationUser as m, bindConsoleAccess as n, consoleImpersonation as o, readConsoleAccessUser as p, consoleAccessAllows as r, consoleOperationAccess as s, allowedConsoleSections as t, consoleRealtimeAccess as u };
@@ -1,9 +1,19 @@
1
- import "./operations-TTjL_7Zc.js";
2
- import { l as ConsoleUser, n as ConsoleAuthorize } from "./auth-types-D3ugQ8xM.js";
3
- import { a as ConsoleSectionId } from "./sections-Do7X4Nwt.js";
4
- import "./request-D7h3SQ92.js";
1
+ import "./request-DYmjLTqP.js";
2
+ import "./operations-DgFhA1WE.js";
3
+ import { c as ConsoleUser, n as ConsoleAuthorize } from "./auth-types-Cotn7406.js";
4
+ import { a as ConsoleSectionId } from "./sections-DCoCa4nF.js";
5
5
  import "@vite-hub/agent";
6
- //#region src/console/runtime/server/access.d.ts
6
+ declare const consoleOpenAccessWarning = "[vitehub] console: { auth: false } takes Console calls without a signature. Anyone who can reach /_vitehub/rpc can use the Console. Remove console.auth so the app takes only signed calls.";
7
+ /** Install the Console access policy. Generated Console output calls this before it serves a request. */
8
+ declare function installConsoleAccess(policy: ConsoleAccessPolicy): void;
9
+ declare function installedConsoleAccessPolicy(): ConsoleAccessPolicy | undefined;
10
+ /** The `sections` of a `console.authorize` result, or `undefined` when the result names no valid list. */
11
+ declare function consoleAuthorizedSections(result: unknown): readonly ConsoleSectionId[] | undefined;
12
+ /**
13
+ * The `grants` of a `console.authorize` result: the page tool roles that Site access gives. `undefined` without the
14
+ * field, and `false` when the field is not a list of role ids.
15
+ */
16
+ declare function consoleAuthorizedGrants(result: unknown): readonly string[] | undefined | false;
7
17
  /**
8
18
  * How the Console checks each request. Generated host output installs one policy for each server process.
9
19
  * - `token`: a request signed with a key whose public key is in a `VITEHUB_CONSOLE_KEY_<NAME>` variable. See
@@ -47,7 +57,7 @@ interface ConsoleAccess {
47
57
  * `"mcp"` when the ViteHub MCP of the Console signed the request for the user. The RPC then refuses operations with
48
58
  * `mcp: false`, runs the others with the `mcp` surface, and refuses a destructive call that is not `confirmed`.
49
59
  */
50
- readonly surface?: "mcp";
60
+ readonly surface?: "mcp" | "cli";
51
61
  /** The person agreed to this destructive MCP call. The signature covers it. */
52
62
  readonly confirmed?: boolean;
53
63
  /** The signed caller limits this request to operations that only read. The RPC refuses a write or destructive call. */
@@ -92,18 +102,4 @@ interface ConsoleRealtimeAccess {
92
102
  * Console, and checks the same section access.
93
103
  */
94
104
  declare function consoleRealtimeAccess(section: ConsoleSectionId): ConsoleRealtimeAccess;
95
- //#endregion
96
- //#region src/console/runtime/server/access-policy.d.ts
97
- declare const consoleOpenAccessWarning = "[vitehub] console: { auth: false } takes Console calls without a signature. Anyone who can reach /_vitehub/rpc can use the Console. Remove console.auth so the app takes only signed calls.";
98
- /** Install the Console access policy. Generated Console output calls this before it serves a request. */
99
- declare function installConsoleAccess(policy: ConsoleAccessPolicy): void;
100
- declare function installedConsoleAccessPolicy(): ConsoleAccessPolicy | undefined;
101
- /** The `sections` of a `console.authorize` result, or `undefined` when the result names no valid list. */
102
- declare function consoleAuthorizedSections(result: unknown): readonly ConsoleSectionId[] | undefined;
103
- /**
104
- * The `grants` of a `console.authorize` result: the page tool roles that Site access gives. `undefined` without the
105
- * field, and `false` when the field is not a list of role ids.
106
- */
107
- declare function consoleAuthorizedGrants(result: unknown): readonly string[] | undefined | false;
108
- //#endregion
109
- export { installedConsoleAccessPolicy as a, ConsoleRealtimeAccess as c, installConsoleAccess as i, ConsoleRealtimeUser as l, consoleAuthorizedSections as n, ConsoleAccess as o, consoleOpenAccessWarning as r, ConsoleAccessRoute as s, consoleAuthorizedGrants as t, consoleRealtimeAccess as u };
105
+ export { consoleRealtimeAccess as a, consoleOpenAccessWarning as c, ConsoleRealtimeUser as i, installConsoleAccess as l, ConsoleAccessRoute as n, consoleAuthorizedGrants as o, ConsoleRealtimeAccess as r, consoleAuthorizedSections as s, ConsoleAccess as t, installedConsoleAccessPolicy as u };
@@ -1,9 +1,9 @@
1
- import { n as invariantError, t as invariant } from "./invariant-DolT9EEx.js";
2
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
3
- import { r as installOperationSectionResolver } from "./operation-registry-BogGwk_I.js";
4
- import { i as isConsoleDevelopmentBuild } from "./development-zLxOp-AO.js";
1
+ import { r as installOperationSectionResolver } from "./operation-registry-DfQbL7vE.js";
2
+ import { n as invariantError, t as invariant } from "./invariant-Dj2R1eMr.js";
3
+ import { i as isConsoleDevelopmentBuild } from "./development-DD567hhJ.js";
4
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
5
5
  import { isRuntimeResponse } from "@vite-hub/runtime/internal/runtime-type";
6
- //#region src/console/runtime/server/access-policy.ts
6
+ // src/console/runtime/server/access-policy.ts
7
7
  /**
8
8
  * The Console access policy store. Generated output installs the policy when the server starts, so this module holds
9
9
  * only the policy and its checks. The request checks in `access.ts` load with the first Console route.
@@ -69,5 +69,4 @@ function consoleAuthorizedGrants(result) {
69
69
  if (!grants.every((grant) => typeof grant === "string" && grant.length > 0)) return false;
70
70
  return Object.freeze([...new Set(grants)]);
71
71
  }
72
- //#endregion
73
72
  export { installedConsoleAccessPolicy as a, installConsoleAccess as i, consoleAuthorizedSections as n, consoleOpenAccessWarning as r, consoleAuthorizedGrants as t };
@@ -1,14 +1,13 @@
1
- import { t as ConsoleProjectBuild } from "./project-link-bNS-KROO.js";
2
- //#region src/console/runtime/client/account.d.ts
1
+ import { t as ConsoleProjectBuild } from "./project-link-Ck3vuq9w.js";
3
2
  /** A project of the active team, as `GET /api/projects` returns it. The page never sees the private key. */
4
3
  interface ConsoleAccountProject {
5
4
  id: string;
6
5
  url: string;
7
6
  label: string | null;
8
7
  /** The Ed25519 public key of the link, base64url. */
9
- publicKey: string;
8
+ publicKey: string | null;
10
9
  /** The variable of the app that keeps `publicKey`, such as `VITEHUB_CONSOLE_KEY_CONSOLE_3F9A12BC`. */
11
- keyVariable: string;
10
+ keyVariable: string | null;
12
11
  }
13
12
  interface ConsoleAccountTeam {
14
13
  id: string;
@@ -131,7 +130,7 @@ declare function revokeConsoleApiKey(id: string): Promise<void>;
131
130
  * or old), it answers but not as a Console app (`unconfigured`: no `console: true`, or another error), or
132
131
  * the Console cannot reach it.
133
132
  */
134
- type ConsoleAccountAppStatus = "checking" | "connected" | "setup" | "unconfigured" | "unreachable";
133
+ type ConsoleAccountAppStatus = "checking" | "connected" | "setup" | "unconfigured" | "unreachable" | "site";
135
134
  /** What each status says, in the sidebar and on Home. */
136
135
  declare const accountAppStatusLabels: Record<ConsoleAccountAppStatus, string>;
137
136
  /** What a check of a linked app found. `setup` means the app refuses the signature, so its variable is missing or old. */
@@ -151,7 +150,7 @@ interface ConsoleAccountCheck {
151
150
  /** Whether the app keeps the public key of the link: the Console server calls the app with a signed request. */
152
151
  declare function checkConsoleAccountProject(id: string): Promise<ConsoleAccountCheck>;
153
152
  /** Link an app to the active team. The answer names the variable and the public key to set on the app. */
154
- declare function linkConsoleAccountProject(url: string, label?: string): Promise<ConsoleAccountProject>;
153
+ declare function linkConsoleAccountProject(url: string, label?: string, kind?: "site"): Promise<ConsoleAccountProject>;
155
154
  /** Rename an app of the active team. An empty name removes the label, so the Console shows the name that the app reports. */
156
155
  declare function renameConsoleAccountProject(id: string, label: string): Promise<ConsoleAccountProject>;
157
156
  declare function unlinkConsoleAccountProject(id: string): Promise<void>;
@@ -195,5 +194,4 @@ declare function setConsoleEnvValue(projectId: string, stage: string, name: stri
195
194
  declare function deleteConsoleEnvValue(projectId: string, stage: string, name: string): Promise<void>;
196
195
  /** Read one value. The Console writes who read it in the env activity first. */
197
196
  declare function revealConsoleEnvValue(projectId: string, stage: string, name: string): Promise<string | undefined>;
198
- //#endregion
199
197
  export { linkConsoleGitHub as A, renameConsoleAccountProject as B, deleteConsolePasskey as C, inviteConsoleMember as D, endConsoleSession as E, loadConsoleSignInMethods as F, signInWithGitHub as G, revealConsoleEnvValue as H, loadConsoleSignInState as I, switchConsoleTeam as J, signInWithPasskey as K, loadConsoleTeam as L, listConsolePasskeys as M, listConsoleSignInProviders as N, leaveConsoleTeam as O, loadConsoleEnvStage as P, removeConsoleMember as R, deleteConsoleEnvValue as S, earlyConsoleTeam as T, revokeConsoleApiKey as U, renameConsoleTeam as V, setConsoleEnvValue as W, unlinkConsoleAccountProject as Y, addConsolePasskey as _, ConsoleAccountTeam as a, createConsoleApiKey as b, ConsoleEnvVariable as c, ConsoleSignInState as d, ConsoleTeamDetails as f, accountAppStatusLabels as g, acceptConsoleInvitation as h, ConsoleAccountProject as i, listConsoleApiKeys as j, linkConsoleAccountProject as k, ConsolePasskey as l, ConsoleTeamMember as m, ConsoleAccountAppStatus as n, ConsoleApiKey as o, ConsoleTeamInvitation as p, signUpWithPasskey as q, ConsoleAccountCheck as r, ConsoleEnvStage as s, ConsoleAccount as t, ConsoleSignInMethods as u, cancelConsoleInvitation as v, earlyConsoleSignInState as w, createConsoleTeam as x, checkConsoleAccountProject as y, renameConsoleAccount as z };
@@ -1,5 +1,4 @@
1
- import { t as consoleAgentInvokerProfiles } from "../../../agents-C94A4N9u.js";
2
- //#region src/console/runtime/server/agents.get.d.ts
1
+ import { t as consoleAgentInvokerProfiles } from "../../agents-Gyw4VKPt.js";
3
2
  interface ConsoleAgentsResult {
4
3
  /** Agents registered in this application. */
5
4
  agents: readonly string[];
@@ -11,4 +10,4 @@ interface ConsoleAgentsResult {
11
10
  }
12
11
  /** The Agents of the `agents.list` operation. */
13
12
  export declare function listConsoleAgents(): Promise<ConsoleAgentsResult>;
14
- //#endregion
13
+ export {};
@@ -1,6 +1,6 @@
1
- import { t as getConsoleInvocations } from "../../../invocations-6jxqLkGY.js";
2
- import { c as getConsoleAgents, r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "../../../agents-B76RICcy.js";
3
- //#region src/console/runtime/server/agents.get.ts
1
+ import { c as getConsoleAgents, r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "../../agents-DXLHsE7x.js";
2
+ import { t as getConsoleInvocations } from "../../invocations-B60XWNES.js";
3
+ // src/agent/console/agents.get.ts
4
4
  /** The Agents of the `agents.list` operation. */
5
5
  async function listConsoleAgents() {
6
6
  const registeredNames = [...new Set(getConsoleAgents())].sort();
@@ -16,5 +16,4 @@ async function listConsoleAgents() {
16
16
  if (Object.keys(invocation).length) result.invocation = invocation;
17
17
  return result;
18
18
  }
19
- //#endregion
20
19
  export { listConsoleAgents };
@@ -1,6 +1,5 @@
1
- import { r as OperationContext } from "../../../operations-TTjL_7Zc.js";
2
- import { o as ConsoleAccess } from "../../../access-policy-DhsEACna.js";
3
- //#region src/console/runtime/server/channel-replay.d.ts
1
+ import { t as ConsoleAccess } from "../../access-DkBck8Vu.js";
2
+ import { r as OperationContext } from "../../operations-DgFhA1WE.js";
4
3
  /** The input of `channels.replay`: the Agent, then the replay fields of `handleChannelReplayRequest()`. */
5
4
  export interface ConsoleChannelReplayInput {
6
5
  agent: string;
@@ -19,5 +18,4 @@ export interface ConsoleChannelReplayInput {
19
18
  */
20
19
  export declare function replayConsoleChannel({ agent: name, ...replay }: ConsoleChannelReplayInput, context: Omit<OperationContext, "access"> & {
21
20
  access: ConsoleAccess;
22
- }): Promise<unknown>;
23
- //#endregion
21
+ }): Promise<unknown>;
@@ -1,11 +1,11 @@
1
- import { i as consoleAccessInvoker, p as readConsoleAccessUser } from "../../../access-BC9HtX_M.js";
2
- import { i as consoleRequestError } from "../../../request-CMA2UKKq.js";
3
- import { o as getConsoleAgentCapabilities, s as getConsoleAgentDefinition } from "../../../agents-B76RICcy.js";
4
- import { t as agentConsole } from "../../../server-W0c79AYZ.js";
5
- import { createExecutionContext } from "@vite-hub/runtime";
1
+ import { t as agentConsole } from "../../agent-console-CHsLxKk_.js";
2
+ import { o as getConsoleAgentCapabilities, s as getConsoleAgentDefinition } from "../../agents-DXLHsE7x.js";
3
+ import { i as consoleAccessInvoker, p as readConsoleAccessUser } from "../../access-CUFHPi8T.js";
4
+ import { r as consoleRequestError } from "../../request-D769eiBL.js";
6
5
  import { handleChannelReplayRequest } from "@vite-hub/agent/server/internal";
6
+ import { createExecutionContext } from "@vite-hub/runtime";
7
7
  import { createRuntimeWaitUntilController } from "@vite-hub/runtime/internal/context";
8
- //#region src/console/runtime/server/channel-replay.ts
8
+ // src/agent/console/channel-replay.ts
9
9
  /** Items per call. The CLI continues with the returned cursor. */
10
10
  const maximumReplayItemsPerRequest = 100;
11
11
  function memo() {
@@ -49,5 +49,4 @@ async function replayConsoleChannel({ agent: name, ...replay }, context) {
49
49
  const error = consoleRequestError(response.status, typeof message === "string" ? message : "Channel replay failed.");
50
50
  throw typeof code === "string" ? Object.assign(error, { consoleCode: code }) : error;
51
51
  }
52
- //#endregion
53
52
  export { replayConsoleChannel };
@@ -1,9 +1,7 @@
1
- //#region src/console/runtime/server/invocation-capabilities.get.d.ts
2
1
  /** The capabilities and the triggering people of the recorded invocations, for the `invocations.capabilities` operation. */
3
2
  export declare function listConsoleInvocationCapabilities(input: {
4
3
  agent?: string;
5
4
  }): Promise<{
6
5
  capabilities: readonly string[];
7
6
  triggeredBy: readonly string[];
8
- }>;
9
- //#endregion
7
+ }>;
@@ -1,7 +1,7 @@
1
- import { t as viteHubErrorDiagnostics } from "../../../error-diagnostics-B1yAIaSn.js";
2
- import { t as consoleHttpError } from "../../../http-error-Bs6e8_-8.js";
3
- import { t as getConsoleInvocations } from "../../../invocations-6jxqLkGY.js";
4
- //#region src/console/runtime/server/invocation-capabilities.get.ts
1
+ import { t as getConsoleInvocations } from "../../invocations-B60XWNES.js";
2
+ import { t as consoleHttpError } from "../../http-error-BorAxJYM.js";
3
+ import { t as viteHubErrorDiagnostics } from "../../error-diagnostics-CBtvqI30.js";
4
+ // src/agent/console/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) {
7
7
  const agentName = input.agent?.trim() || void 0;
@@ -13,5 +13,4 @@ async function listConsoleInvocationCapabilities(input) {
13
13
  triggeredBy
14
14
  };
15
15
  }
16
- //#endregion
17
16
  export { listConsoleInvocationCapabilities };
@@ -0,0 +1,6 @@
1
+ import { n as ConsoleAccessRoute } from "../../access-DkBck8Vu.js";
2
+ import { n as WorkspaceFileResponse, t as WorkspaceDescriptor } from "../../workspace-history-WuxgLsi4.js";
3
+ import { t as ConsoleRequestEvent } from "../../request-DYmjLTqP.js";
4
+ declare function consoleInvocationWorkspaceHandler(event: ConsoleRequestEvent): Promise<WorkspaceDescriptor | WorkspaceFileResponse>;
5
+ declare const guardedHandler: ConsoleAccessRoute<typeof consoleInvocationWorkspaceHandler>;
6
+ export { guardedHandler as default };
@@ -1,12 +1,12 @@
1
- import { h as withConsoleAccess } from "../../../access-BC9HtX_M.js";
2
- import { o as consoleRequestURL, t as assertConsoleRequest } from "../../../request-CMA2UKKq.js";
3
- import { t as getConsoleInvocations } from "../../../invocations-6jxqLkGY.js";
4
- import { s as getConsoleAgentDefinition } from "../../../agents-B76RICcy.js";
5
- import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../../workspace-history-B95Q-kGI.js";
1
+ import { s as getConsoleAgentDefinition } from "../../agents-DXLHsE7x.js";
2
+ import { t as getConsoleInvocations } from "../../invocations-B60XWNES.js";
3
+ import { h as withConsoleAccess } from "../../access-CUFHPi8T.js";
4
+ import { a as consoleRequestURL, t as assertConsoleRequest } from "../../request-D769eiBL.js";
5
+ import { a as readWorkspaceRevision, i as readMountedWorkspace, n as historyMetadata, o as stringValue, r as historyReader, t as failure } from "../../workspace-history-B52xib2J.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";
9
- //#region src/console/runtime/server/invocation-workspace.get.ts
9
+ // src/agent/console/invocation-workspace.get.ts
10
10
  const configurationSchema = v.object({ workspace: v.object({
11
11
  name: v.string(),
12
12
  ref: v.optional(v.string()),
@@ -73,5 +73,4 @@ async function consoleInvocationWorkspaceHandler(event) {
73
73
  return await readMountedWorkspace(workspace, name, path, historyPageValue);
74
74
  }
75
75
  const guardedHandler = withConsoleAccess(consoleInvocationWorkspaceHandler, { section: "agents" });
76
- //#endregion
77
76
  export { guardedHandler as default };