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
@@ -0,0 +1,237 @@
1
+ import { n as isRecord } from "./object-DRSmpe04.js";
2
+ // ../internal/src/console-signature.ts
3
+ /** The signature header: `key=<NAME>, t=<seconds>, origin=<app origin>, body=<SHA-256>, v1=<signature>`. */
4
+ const consoleSignatureHeader = "x-vitehub-signature";
5
+ /** Who calls, as base64url JSON. The signature covers it. See {@link ConsoleCaller}. */
6
+ const consoleCallerHeader = "x-vitehub-caller";
7
+ /** The first line of the signed text. A new format gets a new tag. */
8
+ const consoleSignatureVersion = "vitehub-signature-v1";
9
+ /** The app reads the public key of the caller `<NAME>` from `VITEHUB_CONSOLE_KEY_<NAME>`. */
10
+ const consolePublicKeyPrefix = "VITEHUB_CONSOLE_KEY_";
11
+ const keyNamePattern = /^[A-Z0-9_]{1,64}$/;
12
+ const timestampPattern = /^\d{1,12}$/;
13
+ const maximumCallerLength = 4096;
14
+ const encoder = new TextEncoder();
15
+ const decoder = new TextDecoder();
16
+ const ed25519 = { name: "Ed25519" };
17
+ function base64url(bytes) {
18
+ let binary = "";
19
+ for (const byte of bytes) binary += String.fromCharCode(byte);
20
+ return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
21
+ }
22
+ /** The bytes of a base64url value, or `undefined` when it is not canonical base64url without padding. */
23
+ function fromBase64url(value) {
24
+ if (!/^[\w-]*$/.test(value) || value.length % 4 === 1) return void 0;
25
+ const bytes = Uint8Array.from(atob(value.replace(/-/g, "+").replace(/_/g, "/")), (character) => character.charCodeAt(0));
26
+ return base64url(bytes) === value ? bytes : void 0;
27
+ }
28
+ function bytesOf(body) {
29
+ if (typeof body === "string") return encoder.encode(body);
30
+ return body instanceof Uint8Array ? Uint8Array.from(body) : new Uint8Array(body);
31
+ }
32
+ /** The SHA-256 of the exact body bytes, base64url. A request without a body hashes zero bytes. */
33
+ async function consoleBodySha256(body = "") {
34
+ return base64url(new Uint8Array(await crypto.subtle.digest("SHA-256", bytesOf(body))));
35
+ }
36
+ /** The text that the signature covers. Fields are joined with `\n`. */
37
+ function consoleSignedText(fields) {
38
+ return [
39
+ consoleSignatureVersion,
40
+ fields.method.toUpperCase(),
41
+ fields.target,
42
+ fields.origin,
43
+ fields.timestamp,
44
+ fields.key,
45
+ fields.bodySha256,
46
+ fields.caller
47
+ ].join("\n");
48
+ }
49
+ /** The path and query of a URL, the part of the request target that the signature covers. */
50
+ function requestTarget(url) {
51
+ return `${url.pathname}${url.search}`;
52
+ }
53
+ /** Whether a name can be the `<NAME>` of `VITEHUB_CONSOLE_KEY_<NAME>`: up to 64 of `A-Z`, `0-9`, and `_`. */
54
+ function isConsoleKeyName(name) {
55
+ return keyNamePattern.test(name);
56
+ }
57
+ /** The 32 bytes of a public key, or `undefined` when the value is not a base64url raw Ed25519 public key. */
58
+ function readConsolePublicKey(value) {
59
+ const bytes = fromBase64url(value.trim());
60
+ return bytes?.length === 32 ? bytes : void 0;
61
+ }
62
+ /** Bytes as base64url without padding, the encoding of every key, digest, and signature of the Console. */
63
+ function encodeConsoleBase64url(bytes) {
64
+ return base64url(bytes);
65
+ }
66
+ /** The bytes of a base64url value, or `undefined` when it is not canonical base64url without padding. */
67
+ function decodeConsoleBase64url(value) {
68
+ return fromBase64url(value);
69
+ }
70
+ /** Whether `signature`, base64url, is the Ed25519 signature of `bytes` with `publicKey`. A malformed key or signature does not match. */
71
+ async function verifyConsoleBytes(publicKey, signature, bytes) {
72
+ const decoded = fromBase64url(signature);
73
+ if (decoded?.length !== 64) return false;
74
+ try {
75
+ return await crypto.subtle.verify(ed25519, await crypto.subtle.importKey("raw", publicKey, ed25519, false, ["verify"]), decoded, bytes);
76
+ } catch {
77
+ return false;
78
+ }
79
+ }
80
+ function optionalText(value, maximum = 512) {
81
+ if (value === void 0) return void 0;
82
+ return String(value) === value && value.length > 0 && value.length <= maximum ? value : false;
83
+ }
84
+ /**
85
+ * Read an `x-vitehub-caller` value. Returns `undefined` for anything that is not one of the {@link ConsoleCaller} forms.
86
+ * Fields that this version does not know are ignored, so a newer Console can still call this app. A known field with a
87
+ * value that this version does not know, such as another `surface`, is refused: the app cannot apply its rules.
88
+ */
89
+ function decodeConsoleCaller(value) {
90
+ if (value.length > maximumCallerLength) return void 0;
91
+ const bytes = fromBase64url(value);
92
+ if (!bytes) return void 0;
93
+ let parsed;
94
+ try {
95
+ parsed = JSON.parse(decoder.decode(bytes));
96
+ } catch {
97
+ return;
98
+ }
99
+ if (!isRecord(parsed)) return void 0;
100
+ if (parsed.via === "cli") return parsed.user === void 0 ? { via: "cli" } : void 0;
101
+ if (parsed.via !== "console" || !isRecord(parsed.user)) return void 0;
102
+ if (parsed.surface !== void 0 && parsed.surface !== "mcp" && parsed.surface !== "cli" || parsed.confirmed !== void 0 && (parsed.confirmed !== true || parsed.surface === void 0)) return void 0;
103
+ if (parsed.readOnly !== void 0 && parsed.readOnly !== true) return void 0;
104
+ const call = parsed.surface ? {
105
+ surface: parsed.surface,
106
+ ...parsed.confirmed === true ? { confirmed: true } : {}
107
+ } : {};
108
+ const readOnly = parsed.readOnly === true ? { readOnly: true } : {};
109
+ const id = optionalText(parsed.user.id);
110
+ const name = optionalText(parsed.user.name);
111
+ const email = optionalText(parsed.user.email);
112
+ if (!id || name === false || email === false) return void 0;
113
+ const user = {
114
+ id,
115
+ ...name ? { name } : {},
116
+ ...email ? {
117
+ email,
118
+ ...parsed.user.emailVerified === true ? { emailVerified: true } : {}
119
+ } : {}
120
+ };
121
+ if (parsed.team === void 0) return {
122
+ via: "console",
123
+ user,
124
+ ...call,
125
+ ...readOnly
126
+ };
127
+ if (!isRecord(parsed.team)) return void 0;
128
+ const teamId = optionalText(parsed.team.id);
129
+ const role = optionalText(parsed.team.role);
130
+ if (!teamId || role === false) return void 0;
131
+ return {
132
+ via: "console",
133
+ user,
134
+ team: {
135
+ id: teamId,
136
+ ...role ? { role } : {}
137
+ },
138
+ ...call,
139
+ ...readOnly
140
+ };
141
+ }
142
+ function failure(code, message, status = 401) {
143
+ return {
144
+ code,
145
+ message,
146
+ ok: false,
147
+ status
148
+ };
149
+ }
150
+ /** The public keys of an env, by name, or the failure for an env without any, or with one that is not a key. */
151
+ function readConsolePublicKeys(env) {
152
+ const keys = /* @__PURE__ */ new Map();
153
+ for (const variable of Object.keys(env).sort()) {
154
+ if (!variable.startsWith("VITEHUB_CONSOLE_KEY_")) continue;
155
+ const name = variable.slice(20);
156
+ const value = env[variable];
157
+ if (String(value) !== value || !value.trim()) continue;
158
+ const key = isConsoleKeyName(name) ? readConsolePublicKey(value) : void 0;
159
+ if (!key) return failure("CONSOLE_KEY_MALFORMED", `\`${variable}\` is not an Ed25519 public key: the value must be 43 base64url characters (32 raw bytes) and the name 1 to 64 of A-Z, 0-9, and _. The app refuses every Console request until it is fixed.`, 500);
160
+ keys.set(name, key);
161
+ }
162
+ if (!keys.size) return failure("CONSOLE_KEY_NOT_CONFIGURED", `\`console: true\` needs at least one \`${consolePublicKeyPrefix}<NAME>\` variable in the server environment, and none is set.`, 500);
163
+ return keys;
164
+ }
165
+ function signatureFields(header) {
166
+ const fields = {};
167
+ for (const part of header.split(",")) {
168
+ const separator = part.indexOf("=");
169
+ if (separator === -1) return void 0;
170
+ const name = part.slice(0, separator).trim();
171
+ if (![
172
+ "key",
173
+ "t",
174
+ "origin",
175
+ "body",
176
+ "v1"
177
+ ].includes(name) || Object.hasOwn(fields, name)) return void 0;
178
+ fields[name] = part.slice(separator + 1).trim();
179
+ }
180
+ const { body, key, origin, t, v1 } = fields;
181
+ return body && key && origin && t && v1 ? {
182
+ body,
183
+ key,
184
+ origin,
185
+ t,
186
+ v1
187
+ } : void 0;
188
+ }
189
+ /**
190
+ * Check the signature of a request before its body is read. `origin` is the origin that the app serves, such as its
191
+ * configured public URL. `keys` comes from {@link readConsolePublicKeys}. A match returns the signed body digest: the
192
+ * reader of the body compares it with {@link consoleBodySha256} of the bytes it reads, before it acts on them.
193
+ */
194
+ async function verifyConsoleSignature(options) {
195
+ const header = options.headers.get(consoleSignatureHeader);
196
+ if (header === null) return failure("CONSOLE_SIGNATURE_MISSING", "This request is not signed.");
197
+ const fields = signatureFields(header);
198
+ const callerValue = options.headers.get("x-vitehub-caller") ?? "";
199
+ const caller = decodeConsoleCaller(callerValue);
200
+ const bodyDigest = fields ? fromBase64url(fields.body) : void 0;
201
+ const signature = fields ? fromBase64url(fields.v1) : void 0;
202
+ if (!fields || !isConsoleKeyName(fields.key) || !timestampPattern.test(fields.t) || bodyDigest?.length !== 32 || signature?.length !== 64) return failure("CONSOLE_SIGNATURE_INVALID", `The \`${consoleSignatureHeader}\` header is malformed.`);
203
+ if (!caller) return failure("CONSOLE_SIGNATURE_INVALID", `The \`${consoleCallerHeader}\` header names a caller that this app does not know. A newer Console or CLI may send it: upgrade vite-hub in the app.`);
204
+ const skew = Math.floor((options.now ?? Date.now()) / 1e3) - Number(fields.t);
205
+ if (Math.abs(skew) > 300) {
206
+ const minutes = Math.round(Math.abs(skew) / 60);
207
+ return failure("CONSOLE_SIGNATURE_STALE", `The request was signed ${skew > 0 ? `${minutes} minutes ago` : `${minutes} minutes in the future`}. The app accepts 5 minutes either way.`);
208
+ }
209
+ const origin = new URL(options.origin).origin;
210
+ if (fields.origin !== origin) return failure("CONSOLE_SIGNATURE_ORIGIN", `The request was signed for ${fields.origin}, and this app is ${origin}.`);
211
+ const publicKey = options.keys.get(fields.key);
212
+ if (!publicKey) return failure("CONSOLE_KEY_UNKNOWN", `The request was signed with the key \`${fields.key}\`, and this app has no \`${consolePublicKeyPrefix}${fields.key}\`.`);
213
+ const text = consoleSignedText({
214
+ bodySha256: fields.body,
215
+ caller: callerValue,
216
+ key: fields.key,
217
+ method: options.method,
218
+ origin,
219
+ target: requestTarget(new URL(options.url)),
220
+ timestamp: fields.t
221
+ });
222
+ let matched = false;
223
+ try {
224
+ const key = await crypto.subtle.importKey("raw", publicKey, ed25519, false, ["verify"]);
225
+ matched = await crypto.subtle.verify(ed25519, key, signature, encoder.encode(text));
226
+ } catch {
227
+ matched = false;
228
+ }
229
+ if (!matched) return failure("CONSOLE_SIGNATURE_INVALID", `The signature does not match the request, or it was made with another key than \`${consolePublicKeyPrefix}${fields.key}\`.`);
230
+ return {
231
+ bodySha256: fields.body,
232
+ caller,
233
+ key: fields.key,
234
+ ok: true
235
+ };
236
+ }
237
+ export { encodeConsoleBase64url as a, verifyConsoleBytes as c, decodeConsoleBase64url as i, verifyConsoleSignature as l, consolePublicKeyPrefix as n, isConsoleKeyName as o, consoleSignatureHeader as r, readConsolePublicKeys as s, consoleBodySha256 as t };
package/dist/console.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import { t as ConsoleAgentInvocationInput } from "./rpc-7nlHSv3y.js";
2
- //#region src/console.d.ts
1
+ import { t as ConsoleAgentInvocationInput } from "./rpc-oijgKQtD.js";
3
2
  export declare const consoleRoute = "/_vitehub";
4
- //#endregion
5
3
  export type { ConsoleAgentInvocationInput };
package/dist/console.js CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/console.ts
1
+ // src/console.ts
2
2
  const consoleRoute = "/_vitehub";
3
- //#endregion
4
3
  export { consoleRoute };
@@ -0,0 +1,3 @@
1
+ import { n as AnyOperation } from "../../operations-DgFhA1WE.js";
2
+ /** The Console operations of the document editor sections. The Console registers them only when a document editor section exists. */
3
+ export declare const documentConsoleOperations: readonly AnyOperation[];
@@ -0,0 +1,62 @@
1
+ import { n as consoleDocumentActionNames } from "../../limits-BLo31qDR.js";
2
+ import { a as legacyEvent, i as defineConsoleOperation, l as text, n as consoleOperationRequestBytes, t as actionResult } from "../../operations-byxiZ2R2.js";
3
+ import * as v from "valibot";
4
+ // src/content/console/operations.ts
5
+ const consoleDocumentReadActions = /* @__PURE__ */ new Set([
6
+ "get",
7
+ "list",
8
+ "overview",
9
+ "raw",
10
+ "references",
11
+ "resolve",
12
+ "revisions",
13
+ "search",
14
+ "sessions"
15
+ ]);
16
+ /** The Console operations of the document editor sections. The Console registers them only when a document editor section exists. */
17
+ const documentConsoleOperations = [defineConsoleOperation({
18
+ mcp: false,
19
+ description: "Run one document editor action of a Console section.",
20
+ input: v.strictObject({
21
+ action: v.picklist(consoleDocumentActionNames),
22
+ body: v.optional(v.unknown()),
23
+ section: text
24
+ }),
25
+ kind: "write",
26
+ maxRequestBytes: consoleOperationRequestBytes["documents.action"],
27
+ readOnlyWhen: ({ action, body }) => action === "session" ? typeof body === "object" && body !== null && "action" in body && (body.action === "report" || body.action === "release") : consoleDocumentReadActions.has(action),
28
+ name: "documents.action",
29
+ run: async ({ action, body, section }, context) => {
30
+ const documents = await import("../../console/runtime/server/documents.js");
31
+ if (body === void 0) {
32
+ const actions = await documents.loadConsoleDocumentActions(section);
33
+ const user = await documents.consoleDocumentActionContext(context.access);
34
+ return await documents.runConsoleDocumentAction(() => actions[action](body, user)) ?? null;
35
+ }
36
+ return actionResult(await documents.default(legacyEvent("documents", "POST", {
37
+ body,
38
+ query: {
39
+ action,
40
+ section
41
+ }
42
+ }, context))).value;
43
+ },
44
+ section: (input) => input.section
45
+ }), defineConsoleOperation({
46
+ mcp: false,
47
+ description: "Check that the caller may read a document, and return the app path of its page. The Console then signs a preview Site access token that opens the page with its draft.",
48
+ input: v.strictObject({
49
+ collection: v.pipe(text, v.minLength(1)),
50
+ id: v.pipe(text, v.minLength(1)),
51
+ section: text
52
+ }),
53
+ kind: "read",
54
+ name: "documents.preview",
55
+ run: async ({ collection, id, section }, context) => (await import("../../console/runtime/server/documents.js")).checkConsoleDocumentPreview(context, {
56
+ collection,
57
+ id,
58
+ section
59
+ }),
60
+ section: (input) => input.section
61
+ })];
62
+ export { documentConsoleOperations };
@@ -1,8 +1,7 @@
1
- import { r as ConsoleDatabaseInspection } from "../../../internal-Cc9N0shU.js";
1
+ import { i as ConsoleDatabaseInspection } from "../../internal-BRNf11h3.js";
2
2
  import { Column } from "drizzle-orm";
3
3
  import { PgTable } from "drizzle-orm/pg-core";
4
4
  import { SQLiteTable } from "drizzle-orm/sqlite-core";
5
- //#region src/console/runtime/server/database.get.d.ts
6
5
  interface ConsoleDatabaseCell {
7
6
  kind: "bigint" | "boolean" | "bytes" | "date" | "json" | "null" | "number" | "text";
8
7
  truncated?: true;
@@ -76,4 +75,4 @@ export declare function consoleDatabaseSchema(requested: string | null): {
76
75
  };
77
76
  /** One page of rows of a database table, with the tables of the database, for the `databases.*` operations. */
78
77
  export declare function browseConsoleDatabase(query: ConsoleDatabaseQuery): Promise<ConsoleDatabaseResponse>;
79
- //#endregion
78
+ export {};
@@ -1,10 +1,10 @@
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 getConsoleDatabase } from "../../../database-UMJgnU2z.js";
1
+ import { t as consoleHttpError } from "../../http-error-BorAxJYM.js";
2
+ import { t as getConsoleDatabase } from "../../database-CrgBUdIx.js";
3
+ import { t as viteHubErrorDiagnostics } from "../../error-diagnostics-CBtvqI30.js";
4
4
  import { asc, count, desc, getTableColumns, is, or, sql } from "drizzle-orm";
5
5
  import { PgTable, getTableConfig } from "drizzle-orm/pg-core";
6
6
  import { SQLiteTable, getTableConfig as getTableConfig$1 } from "drizzle-orm/sqlite-core";
7
- //#region src/console/runtime/server/database.get.ts
7
+ // src/database/console/database.get.ts
8
8
  const defaultLimit = 50;
9
9
  const maximumLimit = 100;
10
10
  const maximumSearchLength = 512;
@@ -225,5 +225,4 @@ async function browseConsoleDatabase(query) {
225
225
  total
226
226
  };
227
227
  }
228
- //#endregion
229
228
  export { browseConsoleDatabase, consoleDatabaseSchema };
@@ -0,0 +1,3 @@
1
+ import { n as AnyOperation } from "../../operations-DgFhA1WE.js";
2
+ /** The Console operations of the Databases section. The Console registers them only when the app has a Database. */
3
+ export declare const databaseConsoleOperations: readonly AnyOperation[];
@@ -0,0 +1,49 @@
1
+ import { r as consoleRequestError } from "../../request-D769eiBL.js";
2
+ import { i as defineConsoleOperation, o as optionalCount, s as optionalText } from "../../operations-byxiZ2R2.js";
3
+ import * as v from "valibot";
4
+ /** The Console operations of the Databases section. The Console registers them only when the app has a Database. */
5
+ const databaseConsoleOperations = [defineConsoleOperation({
6
+ cli: {
7
+ namespace: "database",
8
+ command: "rows",
9
+ positional: ["table"]
10
+ },
11
+ description: "Read the rows of a database table, one page at a time. Without a table it reads the tables only.",
12
+ input: v.strictObject({
13
+ database: optionalText,
14
+ direction: v.optional(v.picklist(["asc", "desc"])),
15
+ limit: optionalCount,
16
+ offset: optionalCount,
17
+ search: optionalText,
18
+ sort: optionalText,
19
+ table: optionalText
20
+ }),
21
+ kind: "read",
22
+ name: "databases.browse",
23
+ run: async (input, context) => {
24
+ const result = await (await import("./database.get.js")).browseConsoleDatabase(input);
25
+ if (input.table && context.surface !== "console" && result.table !== input.table) throw consoleRequestError(404, `The database has no table "${input.table}".`);
26
+ return result;
27
+ },
28
+ section: "databases"
29
+ }), defineConsoleOperation({
30
+ cli: {
31
+ namespace: "database",
32
+ command: "tables"
33
+ },
34
+ description: "List the tables of a database with their columns and relationships.",
35
+ input: v.strictObject({ database: optionalText }),
36
+ kind: "read",
37
+ name: "databases.tables",
38
+ run: async (input) => {
39
+ const { database, databases, relationships, tables } = await (await import("./database.get.js")).browseConsoleDatabase(input);
40
+ return {
41
+ database,
42
+ databases,
43
+ relationships,
44
+ tables
45
+ };
46
+ },
47
+ section: "databases"
48
+ })];
49
+ export { databaseConsoleOperations };
@@ -1,6 +1,6 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
2
- import { n as consoleState } from "./internal-BreyUsQ6.js";
3
- //#region src/console/runtime/server/database.ts
1
+ import { n as consoleState } from "./internal-0C_CC601.js";
2
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
3
+ // src/console/runtime/server/database.ts
4
4
  function installConsoleDatabase(projectRoot, databases, names) {
5
5
  const installedNames = [...new Set(names.filter((name) => name.length > 0))].filter((name) => Object.hasOwn(databases, name)).sort((left, right) => left === "default" ? -1 : right === "default" ? 1 : left.localeCompare(right));
6
6
  return consoleState().database = {
@@ -13,5 +13,4 @@ function getConsoleDatabase() {
13
13
  if (!inspection) throw viteHubErrorDiagnostics.VITE_HUB_R0051({ message: "[vitehub] Database inspection has not been installed for this runtime." });
14
14
  return inspection;
15
15
  }
16
- //#endregion
17
16
  export { installConsoleDatabase as n, getConsoleDatabase as t };
@@ -1,6 +1,4 @@
1
- import { n as ConsoleDatabaseEntry, r as ConsoleDatabaseInspection } from "./internal-Cc9N0shU.js";
2
- //#region src/console/runtime/server/database.d.ts
1
+ import { i as ConsoleDatabaseInspection, r as ConsoleDatabaseEntry } from "./internal-BRNf11h3.js";
3
2
  declare function installConsoleDatabase(projectRoot: string, databases: Record<string, ConsoleDatabaseEntry>, names: readonly string[]): ConsoleDatabaseInspection;
4
3
  declare function getConsoleDatabase(): ConsoleDatabaseInspection;
5
- //#endregion
6
4
  export { installConsoleDatabase as n, getConsoleDatabase as t };
@@ -1,8 +1,8 @@
1
- import { n as relative, r as resolve } from "./pathe.M-eThtNZ-J4gfe1m9.js";
2
- import { t as internalErrorDiagnostics } from "./error-diagnostics-C0KyI408.js";
1
+ import { n as relative, r as resolve } from "./pathe.M-eThtNZ-D4EC7Wue.js";
2
+ import { t as internalErrorDiagnostics } from "./error-diagnostics-kKXseq8d.js";
3
3
  import { existsSync, readdirSync, statSync } from "node:fs";
4
4
  import { mkdir, readFile, writeFile } from "node:fs/promises";
5
- //#region ../internal/src/definition-catalog.ts
5
+ // ../internal/src/definition-catalog.ts
6
6
  const sourceFilePattern = /\.(?:c|m)?[jt]sx?$/i;
7
7
  const declarationFilePattern = /\.d\.(?:c|m)?[jt]sx?$/i;
8
8
  const testFilePattern = /\.(?:test|spec)\.(?:c|m)?[jt]sx?$/i;
@@ -134,5 +134,4 @@ async function writeFileIfChanged(file, contents) {
134
134
  await mkdir(resolve(file, ".."), { recursive: true });
135
135
  await writeFile(file, contents, "utf8");
136
136
  }
137
- //#endregion
138
137
  export { isGitRepositoryDirectory as a, mergeDefinitions as c, sortDefinitions as d, writeFileIfChanged as f, isDefinitionSourceFile as i, normalizePathDefinitionName as l, discoverDefinitions as n, listMatchingFiles as o, hasDefinitionFiles as r, listSourceFiles as s, createDirectoryDefinitionSource as t, registerDefinition as u };
@@ -0,0 +1 @@
1
+ export { r as hasDefinitionFiles } from "./definition-catalog-1xPPtzOx.js";
@@ -1,4 +1,4 @@
1
- //#region src/console/runtime/definitions.ts
1
+ // src/console/runtime/definitions.ts
2
2
  const componentPropTypes = [
3
3
  "boolean",
4
4
  "file",
@@ -333,5 +333,4 @@ function parseConsoleSectionContent(value, section) {
333
333
  kind: "definition-catalog"
334
334
  } : void 0;
335
335
  }
336
- //#endregion
337
336
  export { parseConsoleDocumentSetup as a, parseConsoleSectionContent as c, parseConsoleDocumentCollections as i, parseConsoleDefinitionFields as n, parseConsoleRecordActivity as o, parseConsoleDefinitionSummaries as r, parseConsoleRecordLink as s, parseConsoleContributedSection as t };
@@ -1,4 +1,3 @@
1
- //#region src/console/runtime/definitions.d.ts
2
1
  interface ConsoleDefinitionField {
3
2
  label: string;
4
3
  value: string;
@@ -241,5 +240,4 @@ declare function parseConsoleDocumentSetup(value: unknown): ConsoleDocumentSetup
241
240
  declare function parseConsoleDocumentCollections(value: unknown): ConsoleDocumentCollection[];
242
241
  /** Reads `/_vitehub/api/definitions` content for one section, or returns undefined when it does not match. */
243
242
  declare function parseConsoleSectionContent(value: unknown, section: string): ConsoleSectionContent | undefined;
244
- //#endregion
245
243
  export { parseConsoleSectionContent as A, parseConsoleContributedSection as C, parseConsoleDocumentSetup as D, parseConsoleDocumentCollections as E, parseConsoleRecordActivity as O, ConsoleSectionView as S, parseConsoleDefinitionSummaries as T, ConsoleRuntimeRecordReader as _, ConsoleDocumentCollection as a, ConsoleSectionPage as b, ConsoleDocumentSetup as c, ConsoleOperationFilter as d, ConsoleOperationTone as f, ConsoleRecordColumn as g, ConsoleRecordActivity as h, ConsoleDocumentAccess as i, parseConsoleRecordLink as k, ConsoleOperationAction as l, ConsoleRecord as m, ConsoleDefinitionField as n, ConsoleDocumentComponent as o, ConsoleOperationView as p, ConsoleDefinitionSummary as r, ConsoleDocumentHint as s, ConsoleContributedSection as t, ConsoleOperationColumn as u, ConsoleSectionCatalog as v, parseConsoleDefinitionFields as w, ConsoleSectionPageView as x, ConsoleSectionContent as y };
@@ -1,8 +1,8 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
2
- import { a as parseConsoleDocumentSetup, o as parseConsoleRecordActivity, s as parseConsoleRecordLink } from "./definitions-BW6SvmMM.js";
3
- import { x as isConsoleSectionId } from "./sections-DumoLKQN.js";
4
- import { n as consoleState, t as consoleSchedulesKey } from "./internal-BreyUsQ6.js";
5
- //#region src/console/runtime/server/definitions.ts
1
+ import { n as consoleState, t as consoleSchedulesKey } from "./internal-0C_CC601.js";
2
+ import { b as isConsoleSectionId } from "./sections-AUGy9EkY.js";
3
+ import { a as parseConsoleDocumentSetup, o as parseConsoleRecordActivity, s as parseConsoleRecordLink } from "./definitions-BFYqXchw.js";
4
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
5
+ // src/console/runtime/server/definitions.ts
6
6
  function copyFields(fields) {
7
7
  return fields.map((field) => ({
8
8
  label: field.label,
@@ -94,5 +94,4 @@ function installConsoleSchedules(projectRoot, registry) {
94
94
  function getConsoleSchedules() {
95
95
  return schedulesScope[consoleSchedulesKey] ?? {};
96
96
  }
97
- //#endregion
98
97
  export { installConsoleDefinitions as a, getConsoleSchedules as i, getConsoleContributedSections as n, installConsoleSchedules as o, getConsoleDefinitions as r, copyConsoleRecords as t };
@@ -1,6 +1,5 @@
1
- import { m as ConsoleRecord, t as ConsoleContributedSection, v as ConsoleSectionCatalog } from "./definitions-DB4LbZ7T.js";
1
+ import { m as ConsoleRecord, t as ConsoleContributedSection, v as ConsoleSectionCatalog } from "./definitions-ChvMnA1L.js";
2
2
  import { ScheduleDefinitionRegistry } from "@vite-hub/schedule";
3
- //#region src/console/runtime/server/definitions.d.ts
4
3
  /** Copies request-time records so that the reader cannot change the response after it returns. */
5
4
  declare function copyConsoleRecords(records: readonly ConsoleRecord[]): ConsoleRecord[];
6
5
  /**
@@ -15,5 +14,4 @@ declare function getConsoleContributedSections(): readonly ConsoleContributedSec
15
14
  /** Installs the Static Schedule Definitions that the Console may run. */
16
15
  declare function installConsoleSchedules(projectRoot: string, registry: ScheduleDefinitionRegistry): ScheduleDefinitionRegistry;
17
16
  declare function getConsoleSchedules(): ScheduleDefinitionRegistry;
18
- //#endregion
19
17
  export { installConsoleDefinitions as a, getConsoleSchedules as i, getConsoleContributedSections as n, installConsoleSchedules as o, getConsoleDefinitions as r, copyConsoleRecords as t };
@@ -1,5 +1,5 @@
1
- import { t as internalErrorDiagnostics } from "./error-diagnostics-C0KyI408.js";
2
- //#region ../internal/src/deployment.ts
1
+ import { t as internalErrorDiagnostics } from "./error-diagnostics-kKXseq8d.js";
2
+ // ../internal/src/deployment.ts
3
3
  const unsupported = (reason) => ({
4
4
  reason,
5
5
  supported: false
@@ -226,5 +226,4 @@ function findProviderHostConflict(host, env = process.env) {
226
226
  function resolveBuildHost(configured, env = process.env) {
227
227
  return (env.VITEHUB_HOST_SOURCE === "cli" ? hostFromNitroPreset(env.VITEHUB_HOST) : void 0) ?? configured ?? detectHost(env) ?? "node";
228
228
  }
229
- //#endregion
230
229
  export { normalizeNitroPreset as a, resolveDeploymentPlan as c, hostFromNitroPreset as i, detectHost as n, providerHosts as o, findProviderHostConflict as r, resolveBuildHost as s, assertDeploymentService as t };
@@ -0,0 +1 @@
1
+ export { i as hostFromNitroPreset, s as resolveBuildHost } from "./deployment-CURATxjG.js";