vite-hub 0.3.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/README.md +34 -36
  2. package/dist/_internal/runtime/browser-errors.d.ts +1 -1
  3. package/dist/_internal/runtime/browser-errors.js +1 -1
  4. package/dist/{access-F0YP5D5E.js → access-BDST818p.js} +6 -6
  5. package/dist/{access-policy-BsB3QVe5.d.ts → access-policy-CGXhO3Ee.d.ts} +3 -3
  6. package/dist/{access-policy-B_DCpZUt.js → access-policy-DjBKLo3c.js} +2 -2
  7. package/dist/{account-Bsu-LBOF.d.ts → account-BnOAU055.d.ts} +1 -1
  8. package/dist/{agent-invocations.post-DIm8tJV2.js → agent-invocations.post-CcPvfA0n.js} +7 -7
  9. package/dist/{agents-DnHexzTJ.js → agents-BDeazoAW.js} +2 -2
  10. package/dist/{agents-y5hBFHUQ.js → agents-BoWau_ei.js} +1 -1
  11. package/dist/{auth-BFVHYizM.d.ts → auth-BZOy7obk.d.ts} +2 -2
  12. package/dist/{auth-types-DWpTBZvp.d.ts → auth-types-CyqhWvYF.d.ts} +1 -1
  13. package/dist/bin.js +15 -7
  14. package/dist/{blob-CiUmptIp.d.ts → blob-CFLwMsjH.d.ts} +1 -1
  15. package/dist/{blob-BRV6_wZa.js → blob-CpvlM8jp.js} +3 -3
  16. package/dist/cache/operations.d.ts +1 -1
  17. package/dist/cache/operations.js +2 -2
  18. package/dist/cache.js +1 -1
  19. package/dist/choices/vue.d.ts +1 -0
  20. package/dist/choices/vue.js +2 -0
  21. package/dist/choices.d.ts +1 -0
  22. package/dist/choices.js +2 -0
  23. package/dist/cli-config-UAGTmuFa.js +2 -0
  24. package/dist/{cli-config-Bpjjfz5j.js → cli-config-wxKjF2Y0.js} +1 -16
  25. package/dist/console/auth-types.d.ts +1 -1
  26. package/dist/console/auth.d.ts +1 -1
  27. package/dist/console/auth.js +1 -1
  28. package/dist/console/runtime/client/account.d.ts +1 -1
  29. package/dist/console/runtime/client/account.js +2 -2
  30. package/dist/console/runtime/client/blob-media.d.ts +1 -1
  31. package/dist/console/runtime/client/blob-media.js +3 -3
  32. package/dist/console/runtime/client/comment-thread.js +1 -1
  33. package/dist/console/runtime/client/content-heads.d.ts +45 -0
  34. package/dist/console/runtime/client/content-heads.js +58 -0
  35. package/dist/console/runtime/client/documents.d.ts +2 -2
  36. package/dist/console/runtime/client/documents.js +1 -1
  37. package/dist/console/runtime/client/editor.d.ts +1 -1
  38. package/dist/console/runtime/client/invocation.js +3 -3
  39. package/dist/console/runtime/client/live.d.ts +1 -1
  40. package/dist/console/runtime/client/mcp-client.js +1 -1
  41. package/dist/console/runtime/client/media-library.d.ts +1 -1
  42. package/dist/console/runtime/client/media-library.js +1 -1
  43. package/dist/console/runtime/client/media-uploads.d.ts +1 -1
  44. package/dist/console/runtime/client/media-uploads.js +1 -1
  45. package/dist/console/runtime/client/operation-view.d.ts +1 -1
  46. package/dist/console/runtime/client/operation-view.js +2 -2
  47. package/dist/console/runtime/client/presence.d.ts +1 -1
  48. package/dist/console/runtime/client/problem.js +2 -2
  49. package/dist/console/runtime/client/project-link.d.ts +1 -1
  50. package/dist/console/runtime/client/project-link.js +1 -1
  51. package/dist/console/runtime/client/project-session.d.ts +2 -2
  52. package/dist/console/runtime/client/project-session.js +4 -4
  53. package/dist/console/runtime/client/project.d.ts +1 -1
  54. package/dist/console/runtime/client/project.js +1 -1
  55. package/dist/console/runtime/client/publish.d.ts +1 -1
  56. package/dist/console/runtime/client/rate-limit.js +2 -2
  57. package/dist/console/runtime/client/read-only.d.ts +1 -1
  58. package/dist/console/runtime/client/read-only.js +1 -1
  59. package/dist/console/runtime/client/request.js +1 -1
  60. package/dist/console/runtime/client/schedule-run.js +2 -2
  61. package/dist/console/runtime/client/sections.d.ts +1 -1
  62. package/dist/console/runtime/client/sections.js +1 -1
  63. package/dist/console/runtime/client/sidebar.ts +1 -1
  64. package/dist/console/runtime/client/site-access.js +2 -2
  65. package/dist/console/runtime/client/ticket.js +1 -1
  66. package/dist/console/runtime/client/workflow.js +2 -2
  67. package/dist/console/runtime/components/console-content-heads.vue +72 -0
  68. package/dist/console/runtime/components/console-document-dashboard.vue +43 -35
  69. package/dist/console/runtime/components/console-documents.vue +1 -0
  70. package/dist/console/runtime/components/console-markdown-editor.vue +4 -1
  71. package/dist/console/runtime/components/invocation/agent-invocation.ts +18 -5
  72. package/dist/console/runtime/components/invocation/internal/input-attachments.ts +69 -0
  73. package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +67 -12
  74. package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +12 -4
  75. package/dist/console/runtime/components/invocation/invocation.css +16 -0
  76. package/dist/console/runtime/console-route.js +1 -1
  77. package/dist/console/runtime/definitions.d.ts +1 -1
  78. package/dist/console/runtime/definitions.js +1 -1
  79. package/dist/console/runtime/diagnostics.ts +30 -30
  80. package/dist/console/runtime/page-tool/page-tool.js +1 -1
  81. package/dist/console/runtime/public/skills/vitehub/SKILL.md +3 -3
  82. package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +1 -1
  83. package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +9 -1
  84. package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +1 -1
  85. package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +1 -1
  86. package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +3 -3
  87. package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +2 -2
  88. package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +4 -4
  89. package/dist/console/runtime/sections.d.ts +1 -1
  90. package/dist/console/runtime/sections.js +1 -1
  91. package/dist/console/runtime/server/access-policy.d.ts +1 -1
  92. package/dist/console/runtime/server/access-policy.js +1 -1
  93. package/dist/console/runtime/server/agents.get.js +2 -2
  94. package/dist/console/runtime/server/auth.d.ts +1 -1
  95. package/dist/console/runtime/server/auth.js +2 -2
  96. package/dist/console/runtime/server/blob.d.ts +1 -1
  97. package/dist/console/runtime/server/blob.js +1 -1
  98. package/dist/console/runtime/server/channel-replay.d.ts +2 -2
  99. package/dist/console/runtime/server/channel-replay.js +4 -4
  100. package/dist/console/runtime/server/database.d.ts +1 -1
  101. package/dist/console/runtime/server/database.get.d.ts +1 -1
  102. package/dist/console/runtime/server/database.get.js +2 -2
  103. package/dist/console/runtime/server/database.js +1 -1
  104. package/dist/console/runtime/server/definitions.d.ts +1 -1
  105. package/dist/console/runtime/server/definitions.get.d.ts +3 -3
  106. package/dist/console/runtime/server/definitions.get.js +3 -3
  107. package/dist/console/runtime/server/definitions.js +1 -1
  108. package/dist/console/runtime/server/development.d.ts +2 -2
  109. package/dist/console/runtime/server/development.js +2 -2
  110. package/dist/console/runtime/server/documents.d.ts +1 -1
  111. package/dist/console/runtime/server/documents.js +1 -1
  112. package/dist/console/runtime/server/env.get.d.ts +1 -1
  113. package/dist/console/runtime/server/env.get.js +3 -3
  114. package/dist/console/runtime/server/invocation-capabilities.get.js +2 -2
  115. package/dist/console/runtime/server/invocation-workspace.get.d.ts +1 -1
  116. package/dist/console/runtime/server/invocation-workspace.get.js +5 -5
  117. package/dist/console/runtime/server/invocation.get.d.ts +1 -1
  118. package/dist/console/runtime/server/invocation.get.js +6 -6
  119. package/dist/console/runtime/server/invocations.get.js +3 -3
  120. package/dist/console/runtime/server/logs.get.d.ts +2 -2
  121. package/dist/console/runtime/server/logs.get.js +5 -5
  122. package/dist/console/runtime/server/mcp-client-operations.d.ts +1 -1
  123. package/dist/console/runtime/server/mcp-client-operations.js +3 -3
  124. package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
  125. package/dist/console/runtime/server/operation-contributions.js +1 -1
  126. package/dist/console/runtime/server/page-auth.d.ts +1 -1
  127. package/dist/console/runtime/server/page-tool.d.ts +1 -1
  128. package/dist/console/runtime/server/page-tool.js +2 -2
  129. package/dist/console/runtime/server/rpc.d.ts +2 -2
  130. package/dist/console/runtime/server/rpc.js +7 -7
  131. package/dist/console/runtime/server/search.get.js +1 -1
  132. package/dist/console/runtime/server/sections.d.ts +4 -4
  133. package/dist/console/runtime/server/sections.get.d.ts +1 -1
  134. package/dist/console/runtime/server/sections.get.js +5 -5
  135. package/dist/console/runtime/server/sections.js +3 -3
  136. package/dist/console/runtime/server/setup.d.ts +3 -3
  137. package/dist/console/runtime/server/setup.js +2 -2
  138. package/dist/console/runtime/server/site-entry.d.ts +1 -1
  139. package/dist/console/runtime/server/site-entry.js +9 -6
  140. package/dist/console/runtime/server/site-session.d.ts +5 -1
  141. package/dist/console/runtime/server/site-session.js +1 -1
  142. package/dist/console/runtime/server/status.get.d.ts +2 -2
  143. package/dist/console/runtime/server/status.get.js +5 -5
  144. package/dist/console/runtime/server/tickets.d.ts +1 -1
  145. package/dist/console/runtime/server/tickets.js +1 -1
  146. package/dist/console/runtime/server/usage.get.d.ts +2 -2
  147. package/dist/console/runtime/server/usage.get.js +7 -7
  148. package/dist/console/runtime/server/workspace-files.get.d.ts +1 -1
  149. package/dist/console/runtime/server/workspace-files.get.js +3 -3
  150. package/dist/console/server.d.ts +5 -5
  151. package/dist/console/server.js +6 -6
  152. package/dist/console/ui.js +121 -20
  153. package/dist/{console-route-COvNB_Xj.js → console-route-CBuqZ4wO.js} +1 -1
  154. package/dist/{database-J7M0B3ED.js → database-BdOBjPkS.js} +1 -1
  155. package/dist/{database-BVyhAxq-.d.ts → database-DyPVMjp_.d.ts} +1 -1
  156. package/dist/{definitions-BDRkT5-f.js → definitions-BW6SvmMM.js} +1 -0
  157. package/dist/{definitions-bepsXY5G.js → definitions-CNq_Shkh.js} +3 -3
  158. package/dist/{definitions-CxDT8D8Y.d.ts → definitions-DB4LbZ7T.d.ts} +2 -0
  159. package/dist/{definitions-CGTWTj67.d.ts → definitions-Dbgxfz3I.d.ts} +1 -1
  160. package/dist/development-W5EwONyL.d.ts +12 -0
  161. package/dist/{development-BzeSHZGH.js → development-zLxOp-AO.js} +12 -2
  162. package/dist/{diagnostics-D0DefmQj.js → diagnostics-9U_fYxMy.js} +30 -30
  163. package/dist/doctor.js +88 -107
  164. package/dist/{documents-C97WMaJZ.d.ts → documents-BASIRZ91.d.ts} +1 -1
  165. package/dist/{documents-RVHsQKFw.d.ts → documents-CboVhYFz.d.ts} +3 -3
  166. package/dist/{documents-DwPfR-fz.js → documents-CjJTCrY8.js} +3 -3
  167. package/dist/{documents-8US1nUgK.js → documents-qrHHqlNU.js} +1 -1
  168. package/dist/durability/operations.d.ts +1 -1
  169. package/dist/durability/operations.js +2 -2
  170. package/dist/{entries-D48wVEaS.js → entries-Bj-jPs_J.js} +1 -1
  171. package/dist/{error-diagnostics-C2rjmOlX.js → error-diagnostics-Bm3JKYjz.js} +19 -11
  172. package/dist/error-diagnostics.ts +19 -11
  173. package/dist/index.d.ts +15 -2
  174. package/dist/index.js +8 -4
  175. package/dist/internal/disabled-redis-driver.js +1 -1
  176. package/dist/internal/disabled-upstash-driver.js +1 -1
  177. package/dist/internal/test-loader.js +1 -1
  178. package/dist/internal/test-server.js +1 -1
  179. package/dist/{internal-BP_O70ic.d.ts → internal-CO4OqqaS.d.ts} +3 -3
  180. package/dist/{invocation-page-undo-BkUau8X7.js → invocation-page-undo-DIZ-s3xT.js} +2 -2
  181. package/dist/{invocations-CsucCJuq.js → invocations-CK_-G540.js} +3 -3
  182. package/dist/logs/memory.js +1 -1
  183. package/dist/logs/source.js +1 -1
  184. package/dist/logs.js +2 -2
  185. package/dist/{mcp-client-D0mUt18v.js → mcp-client-By4zk0vU.js} +6 -6
  186. package/dist/{media-wZMY6f2M.js → media-BHpQ-4jw.js} +4 -4
  187. package/dist/{media-library-CEo-Ye2B.d.ts → media-library-D9ThbXqs.d.ts} +1 -1
  188. package/dist/{media-library-BChf8XOd.js → media-library-NaOMBKWS.js} +2 -2
  189. package/dist/{memory-DhirB6SA.js → memory-DTmq-Z6x.js} +2 -2
  190. package/dist/{nuxt-server-imports-Lnaf5Fe-.js → nuxt-server-imports-DH60Z7LA.js} +3 -2
  191. package/dist/nuxt.d.ts +1 -1
  192. package/dist/nuxt.js +94 -67
  193. package/dist/{operation-contributions-DflAv5AC.js → operation-contributions-BdS0z3tx.js} +2 -2
  194. package/dist/{operation-contributions-fZyVo662.d.ts → operation-contributions-DpkO_iSU.d.ts} +1 -1
  195. package/dist/{operation-definition-Bn8V2hab.js → operation-definition-a5keEpCd.js} +6 -1
  196. package/dist/{operations-DX9EkHwb.d.ts → operations-B0689BG1.d.ts} +5 -0
  197. package/dist/operations-CAQmIxGK.js +2 -0
  198. package/dist/{operations-B6N-ja8x.js → operations-CWP9dF3i.js} +11 -11
  199. package/dist/{operations-Dj_cp-UK.js → operations-EOdyctDc.js} +1 -1
  200. package/dist/{optional-owners-Crm6kVS5.js → optional-owners-BNA2OX6z.js} +37 -23
  201. package/dist/{page-tool-BCRyx3pM.d.ts → page-tool-CRCK1RHV.d.ts} +1 -1
  202. package/dist/{plugins-DQ8pF-38.js → plugins-B-DpgDPB.js} +1459 -714
  203. package/dist/{plugins-5uDXr9Km.d.ts → plugins-BqAtIEX2.d.ts} +75 -56
  204. package/dist/{project-C2dnB9Kf.js → project-C4N_Zcjl.js} +3 -3
  205. package/dist/{project-5EN7JaXI.d.ts → project-CufkVP1u.d.ts} +2 -2
  206. package/dist/{project-DOeM0zg3.js → project-DlWTGB7h.js} +1 -1
  207. package/dist/{project-link-D_XQvBOC.d.ts → project-link-BuOzBH9f.d.ts} +1 -1
  208. package/dist/{project-link-Qi7nltHM.js → project-link-D-6UefhA.js} +2 -2
  209. package/dist/{request-yCybBeqT.js → request-DE8w_cSM.js} +8 -3
  210. package/dist/{request-BUYAlAJl.js → request-DbFfYmCu.js} +2 -2
  211. package/dist/{runtime-DM8Z6KLT.js → runtime-DQuHg7OO.js} +1 -1
  212. package/dist/{runtime-DG34DLXc.js → runtime-OsEDfbM9.js} +1 -1
  213. package/dist/runtime-feature-guard-B64MMW9I.js +140 -0
  214. package/dist/scan-module-D_3X08mj.js +2 -0
  215. package/dist/scan-module-Df58L_6T.js +311 -0
  216. package/dist/{secret-AZLhaNyr.js → secret-Dy5uqvq9.js} +1 -1
  217. package/dist/{sections-BriKrBgN.d.ts → sections-BogiCmtz.d.ts} +2 -2
  218. package/dist/{sections-ACHVTCWn.d.ts → sections-CyrXbbkG.d.ts} +4 -4
  219. package/dist/{sections-4xyBoiar.d.ts → sections-Do7X4Nwt.d.ts} +1 -2
  220. package/dist/{sections-D6AM5Gy5.js → sections-DumoLKQN.js} +2 -3
  221. package/dist/{sections-CUJyQA9d.js → sections-et20h8w3.js} +3 -3
  222. package/dist/{sections.get-1lHjyKCI.d.ts → sections.get-COiLcQ0P.d.ts} +2 -2
  223. package/dist/seo/runtime.js +1 -1
  224. package/dist/{server-DbjFYSeU.js → server-BRJE4t-W.js} +2 -2
  225. package/dist/{setup-DLZFzuLv.d.ts → setup-ZbA1by7W.d.ts} +4 -3
  226. package/dist/{site-access-Bhsty_v4.js → site-access-BbJUe5QI.js} +1 -1
  227. package/dist/{site-access-CyRtc0gZ.js → site-access-BmE8HGxs.js} +4 -4
  228. package/dist/{site-session-Jf21TVw8.js → site-session-odJq1dYa.js} +5 -5
  229. package/dist/skills/operations.d.ts +1 -1
  230. package/dist/skills/operations.js +2 -2
  231. package/dist/skills.d.ts +1 -1
  232. package/dist/{skills.get-CHQMzSD_.js → skills.get-Bl8cBe8u.js} +2 -2
  233. package/dist/{source-w9BHUwyO.js → source-D4wWtoHh.js} +1 -1
  234. package/dist/task/operations.d.ts +1 -1
  235. package/dist/task/operations.js +2 -2
  236. package/dist/test/register.js +1 -1
  237. package/dist/{ticket-RKQF6Wy9.js → ticket-Cudn1dq3.js} +1 -1
  238. package/dist/{tickets-CfJhT7d0.js → tickets-C_0Fhc00.js} +6 -6
  239. package/dist/{usage-Bc0YY_ka.js → usage-B4taNt4a.js} +1 -1
  240. package/dist/{usage-index-CMMT4cXQ.js → usage-index-BsGAFzyq.js} +1 -1
  241. package/dist/{version-DDRL_OYz.js → version-DNmSsk5r.js} +22 -19
  242. package/dist/{cli-DjoDGgT4.js → vite-stage-mmtwQIMA.js} +32 -2
  243. package/dist/{workspace-history-l47NPVSy.js → workspace-history-CraoERnc.js} +1 -1
  244. package/package.json +93 -93
  245. package/dist/cli-config--rAg6V-a.js +0 -2
  246. package/dist/decisions/vue.d.ts +0 -1
  247. package/dist/decisions/vue.js +0 -2
  248. package/dist/decisions.d.ts +0 -1
  249. package/dist/decisions.js +0 -2
  250. package/dist/development-DgaQ05jw.d.ts +0 -9
  251. package/dist/operations-H9q0QB2C.js +0 -2
  252. package/dist/runtime-feature-guard-rpZz1eMF.js +0 -55
  253. package/dist/scan-module-BTeOuZsp.js +0 -2
  254. package/dist/scan-module-DlHQ8a0X.js +0 -148
@@ -1,10 +1,10 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-C2rjmOlX.js";
2
- import { t as defineOperation } from "./operation-definition-Bn8V2hab.js";
3
- import { c as operationCall, d as operationSection, g as table, o as operationAccessAllows } from "./operations-Dj_cp-UK.js";
4
- import { n as bindConsoleAccess, s as consoleOperationAccess } from "./access-F0YP5D5E.js";
5
- import { i as consoleRequestError } from "./request-BUYAlAJl.js";
1
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
2
+ import { t as defineOperation } from "./operation-definition-a5keEpCd.js";
3
+ import { c as operationCall, d as operationSection, g as table, o as operationAccessAllows } from "./operations-EOdyctDc.js";
4
+ import { n as bindConsoleAccess, s as consoleOperationAccess } from "./access-BDST818p.js";
5
+ import { i as consoleRequestError } from "./request-DbFfYmCu.js";
6
6
  import { n as loadConsoleRuntime } from "./runtime-DxfJOfCd.js";
7
- import { r as loadConsoleMedia } from "./blob-BRV6_wZa.js";
7
+ import { r as loadConsoleMedia } from "./blob-CpvlM8jp.js";
8
8
  import { a as maximumConsoleMediaRequestBytes, i as maximumConsoleDocumentRequestBytes, n as consoleDocumentActionNames, r as consoleMediaUploadRequestBytes, s as maximumConsoleRpcRequestBytes, t as consoleAttachmentRequestBytes } from "./limits-BUlwWYQE.js";
9
9
  import { n as authConsoleImpersonationOperations, r as authConsoleReadOperations, t as authConsoleActionOperations } from "./auth-operations-GcQk0O0X.js";
10
10
  import * as v from "valibot";
@@ -122,7 +122,7 @@ const agentsInvoke = defineConsoleOperation({
122
122
  kind: "write",
123
123
  maxRequestBytes: consoleOperationRequestBytes["agents.invoke"],
124
124
  name: "agents.invoke",
125
- run: async ({ agent, agentRoute, ...body }, context) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./agent-invocations.post-DIm8tJV2.js"))).default(legacyEvent(`agents/${agent}/invocations`, "POST", {
125
+ run: async ({ agent, agentRoute, ...body }, context) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./agent-invocations.post-CcPvfA0n.js"))).default(legacyEvent(`agents/${agent}/invocations`, "POST", {
126
126
  agent,
127
127
  body,
128
128
  query: { agentRoute }
@@ -457,7 +457,7 @@ const invocationsUndo = defineConsoleOperation({
457
457
  }),
458
458
  kind: "write",
459
459
  name: "invocations.undo",
460
- run: async (input, context) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./invocation-page-undo-BkUau8X7.js"))).undoConsolePageChange(input, context),
460
+ run: async (input, context) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./invocation-page-undo-DIZ-s3xT.js"))).undoConsolePageChange(input, context),
461
461
  section: "agents"
462
462
  });
463
463
  const invocationsDelete = defineConsoleOperation({
@@ -588,7 +588,7 @@ const projectGet = defineConsoleOperation({
588
588
  input: v.strictObject({}),
589
589
  kind: "read",
590
590
  name: "project.get",
591
- run: async (_input, context) => (await import("./project-C2dnB9Kf.js")).readConsoleProject(context.access, { navigation: context.surface === "console" }),
591
+ run: async (_input, context) => (await import("./project-C4N_Zcjl.js")).readConsoleProject(context.access, { navigation: context.surface === "console" }),
592
592
  section: false
593
593
  });
594
594
  const searchQuery = defineConsoleOperation({
@@ -630,7 +630,7 @@ const skillsInspect = defineConsoleOperation({
630
630
  }),
631
631
  kind: "read",
632
632
  name: "skills.inspect",
633
- run: async (input) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./skills.get-CHQMzSD_.js"))).inspectConsoleSkills(input),
633
+ run: async (input) => (await (import.meta.viteHubConsoleAgents === false ? disabledConsoleFeature("Agents") : import("./skills.get-Bl8cBe8u.js"))).inspectConsoleSkills(input),
634
634
  section: "skills"
635
635
  });
636
636
  const statusGet = defineConsoleOperation({
@@ -647,7 +647,7 @@ const statusGet = defineConsoleOperation({
647
647
  });
648
648
  const sitePagePath = v.optional(v.pipe(text, v.maxLength(2048)));
649
649
  const siteId = v.pipe(text, v.minLength(1), v.maxLength(64));
650
- const siteAccess = () => import("./site-access-Bhsty_v4.js");
650
+ const siteAccess = () => import("./site-access-BbJUe5QI.js");
651
651
  function formatSiteSessions({ sessions }) {
652
652
  if (!sessions.length) return "No browser is signed in through Site access.\n";
653
653
  return `${table([[
@@ -1,5 +1,5 @@
1
1
  import { r as isRecordOrFunction } from "./object-D8pRdprI.js";
2
- import { a as reservedOperationNamespaces, i as isSectionId, n as invalidDefinition, o as internalErrorDiagnostics, r as isOperation } from "./operation-definition-Bn8V2hab.js";
2
+ import { a as reservedOperationNamespaces, i as isSectionId, n as invalidDefinition, o as internalErrorDiagnostics, r as isOperation } from "./operation-definition-a5keEpCd.js";
3
3
  //#region ../internal/src/operations.ts
4
4
  /** Response header of the local dev RPC. Its value is {@link projectRootHash} of the project that the server runs. */
5
5
  const operationRootHeader = "x-vitehub-root";
@@ -1,6 +1,6 @@
1
1
  import { t as invariant } from "./invariant-DolT9EEx.js";
2
2
  import { n as isRecord } from "./object-D8pRdprI.js";
3
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-C2rjmOlX.js";
3
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-Bm3JKYjz.js";
4
4
  import { createRequire } from "node:module";
5
5
  import { dirname, join, resolve } from "node:path";
6
6
  import { existsSync, readFileSync } from "node:fs";
@@ -120,23 +120,20 @@ export default defineAgent({
120
120
  suffix: "agent"
121
121
  }),
122
122
  docs: "/docs/agents",
123
+ enabledByDiscovery: ["agents"],
123
124
  hosts: {
124
125
  ...everywhere("nitro", "Nitro"),
125
126
  deno: native("nitro", "Nitro", "Agent routes run in the Nitro output. The Agent Deno runtime is not supported on this host."),
126
127
  netlify: native("nitro", "Nitro", "Agent HTTP routes run in generated functions. `agent.invocations` is not supported.")
127
128
  },
128
129
  id: "agent",
129
- implies: [{
130
- except: ["netlify"],
131
- feature: "workflow",
132
- inline: ["deno"]
133
- }],
134
130
  packages: ["@vite-hub/agent"],
135
131
  summary: "Agents in `server/agents/` with tools, Capabilities, channels, and invocations.",
136
132
  title: "Agent"
137
133
  }),
138
134
  auth: feature({
139
135
  docs: "/docs/auth",
136
+ enabledByDiscovery: sourceFiles("auth"),
140
137
  hosts: everywhere("better-auth", "Better Auth"),
141
138
  id: "auth",
142
139
  packages: ["@vite-hub/auth", "better-auth"],
@@ -167,6 +164,7 @@ export default defineAgent({
167
164
  }),
168
165
  browser: feature({
169
166
  docs: "/docs/browser",
167
+ enabledByDiscovery: ["browsers"],
170
168
  hosts: {
171
169
  cloudflare: native("cloudflare", "Browser Run", "Cloudflare Browser Run binding and provider output."),
172
170
  deno: unsupported("Browser Definitions do not have a Deno provider."),
@@ -202,6 +200,7 @@ export default defineAgent({
202
200
  }),
203
201
  channels: feature({
204
202
  docs: "/docs/channels",
203
+ enabledByDiscovery: ["channels"],
205
204
  hosts: everywhere("nitro", "Nitro"),
206
205
  id: "channels",
207
206
  packages: ["@vite-hub/channels"],
@@ -225,6 +224,7 @@ export default defineAgent({
225
224
  }),
226
225
  connections: feature({
227
226
  docs: "/docs/connections",
227
+ enabledByDiscovery: ["connections"],
228
228
  hosts: everywhere("database", "Database"),
229
229
  id: "connections",
230
230
  implies: [{ feature: "database" }],
@@ -237,7 +237,7 @@ export default defineAgent({
237
237
  title: "Connections"
238
238
  }),
239
239
  console: feature({
240
- docs: "/docs/development/console",
240
+ docs: "/docs/console",
241
241
  hosts: everywhere("nitro", "Nitro"),
242
242
  id: "console",
243
243
  packages: [],
@@ -291,11 +291,16 @@ ${name === "default" ? "" : ` name: ${JSON.stringify(name)},\n`} schema: {
291
291
  hosts: {
292
292
  cloudflare: native("cloudflare", "Cloudflare Email", "The Cloudflare Email driver is the default. Resend is also supported."),
293
293
  deno: explicit("email.driver", "Resend", "Configure the built-in fetch-based Resend driver."),
294
- dev: explicit("email.driver", "Resend", "Configure the built-in Resend driver for local delivery."),
294
+ dev: native("log", "Log", "`email: true` keeps each message in the development outbox and sends nothing. Set `email.driver` for a production build.", "process-local"),
295
295
  netlify: explicit("email.driver", "Resend", "Configure the built-in Resend driver."),
296
296
  node: explicit("email.driver", "Resend / custom", "Configure Resend or provide a custom ViteHub Email driver."),
297
297
  vercel: explicit("email.driver", "Resend", "Configure the built-in Resend driver.")
298
298
  },
299
+ developmentOverrides: [
300
+ "deno",
301
+ "netlify",
302
+ "vercel"
303
+ ],
299
304
  id: "email",
300
305
  packages: ["@vite-hub/email"],
301
306
  summary: "Send email from server code and Agents, with a development outbox.",
@@ -352,11 +357,14 @@ ${name === "default" ? "" : ` name: ${JSON.stringify(name)},\n`} schema: {
352
357
  queue: feature({
353
358
  definition: starter("server/queues", (name) => `import { defineQueue } from "vite-hub/queue"
354
359
 
355
- export default defineQueue<{ id: string }>(async ({ payload }) => {
356
- console.log("${name}", payload.id)
360
+ export default defineQueue<{ id: string }>({
361
+ handler: async ({ payload }) => {
362
+ console.log("${name}", payload.id)
363
+ },
357
364
  })
358
365
  `, { suffix: "queue" }),
359
366
  docs: "/docs/queue",
367
+ enabledByDiscovery: ["queues"],
360
368
  hosts: {
361
369
  cloudflare: native("cloudflare", "Queues", "Cloudflare Queues bindings and consumers."),
362
370
  deno: unsupported("No Deno Queue driver is provided."),
@@ -393,7 +401,7 @@ export default defineQueue<{ id: string }>(async ({ payload }) => {
393
401
  definition: starter("server/realtime", (name) => `import { defineRealtime } from "vite-hub/realtime"
394
402
 
395
403
  export default defineRealtime({
396
- auth: true,
404
+ authorize: true,
397
405
  document: { workspace: "${name}" },
398
406
  })
399
407
  `),
@@ -404,6 +412,7 @@ export default defineRealtime({
404
412
  "vercel"
405
413
  ],
406
414
  docs: "/docs/realtime",
415
+ enabledByDiscovery: ["realtime"],
407
416
  hosts: {
408
417
  cloudflare: native("cloudflare", "Durable Objects", "Cloudflare Durable Objects run the production rooms."),
409
418
  deno: unsupported("Realtime has no distributed Deno driver, and process memory is rejected for the Deno host."),
@@ -423,7 +432,7 @@ export default defineRealtime({
423
432
  hosts: {
424
433
  cloudflare: native("cloudflare", "CF Sandbox", "Cloudflare Sandbox execution provider."),
425
434
  deno: unsupported("No Deno Sandbox driver is provided."),
426
- dev: unsupported("The default Node host has no Sandbox Provider. Development with the Vercel host uses Vercel Sandbox when Vercel credentials are set. The Vite or Nuxt dev server cannot host a Cloudflare Container: build, then run `wrangler dev` on the build output."),
435
+ dev: unsupported("The default Node host has no Sandbox Provider. With the Cloudflare or Vercel host, `vite dev` runs each Sandbox Task as a process on this machine, with no isolation and no provider account. `sandboxTask: { remote: true }` uses the host's Sandbox instead."),
427
436
  netlify: explicit("sandboxTask.driver", "Vercel Sandbox", "The Netlify host has no Sandbox, so `sandboxTask: true` fails. Set `sandboxTask: { driver: \"vercel\" }` and Vercel credentials to use Vercel Sandbox."),
428
437
  node: explicit("sandboxTask.driver", "Vercel Sandbox", "The Node host has no Sandbox, so `sandboxTask: true` fails. Set `sandboxTask: { driver: \"vercel\" }` and Vercel credentials to use Vercel Sandbox."),
429
438
  vercel: native("vercel", "Vercel Sandbox", "Vercel Sandbox execution provider.")
@@ -450,12 +459,13 @@ export default defineSchedule({
450
459
  "vercel"
451
460
  ],
452
461
  docs: "/docs/schedule",
462
+ enabledByDiscovery: ["schedules"],
453
463
  hosts: {
454
464
  cloudflare: native("cloudflare", "Cron triggers", "Cloudflare scheduled events and Nitro Provider Wake."),
455
465
  deno: native("deno", "Deno.cron", "`Deno.cron` output that the generated `.output/main.ts` loads before the Nitro server."),
456
466
  dev: native("local", "Local / process", "Local development runner and the explicit process runtime.", "single-host"),
457
467
  netlify: native("netlify", "Scheduled fn", "One generated Netlify scheduled function per static Schedule."),
458
- node: native("process", "process", "Process runtime for one long-lived process or replica. A build needs `schedule: { runtime: { driver: \"process\" } }`, or `providerOutput: false` to wake Schedules yourself.", "single-host"),
468
+ node: native("process", "process", "Process runtime for one long-lived process or replica. `schedule: true` uses it. Set `providerOutput: false` to wake Schedules yourself.", "single-host"),
459
469
  vercel: native("vercel", "Vercel Cron", "Vercel Cron Jobs provider output.")
460
470
  },
461
471
  id: "schedule",
@@ -464,19 +474,22 @@ export default defineSchedule({
464
474
  title: "Schedule"
465
475
  }),
466
476
  workflow: feature({
467
- definition: starter("server/workflows", (name) => `import { defineWorkflow } from "vite-hub/workflow"
477
+ definition: starter("server/workflows", () => `import { defineWorkflow } from "vite-hub/workflow"
468
478
 
469
- export default defineWorkflow(${JSON.stringify(name)}, async (payload: { id: string }) => {
470
- return { id: payload.id }
479
+ export default defineWorkflow<{ id: string }>({
480
+ handler: async ({ payload }) => {
481
+ return { id: payload.id }
482
+ },
471
483
  })
472
484
  `, {
473
485
  folder: "index",
474
486
  suffix: "workflow"
475
487
  }),
476
488
  docs: "/docs/workflows",
489
+ enabledByDiscovery: ["workflows"],
477
490
  hosts: {
478
491
  cloudflare: native("cloudflare", "CF Workflows", "Cloudflare Workflows provider."),
479
- deno: explicit("workflow.driver", "OpenWorkflow", "Set `workflow.driver` to \"openworkflow\" with `workflow.postgres.url`, and start its worker. A build without a driver fails. Workflow that only the Agent turns on runs inline in the request process, so a restart loses the run."),
492
+ deno: explicit("workflow.driver", "OpenWorkflow", "Set `workflow.driver` to \"openworkflow\" with `workflow.postgres.url`, and start its worker. A build without a driver fails."),
480
493
  dev: native("openworkflow", "OpenWorkflow", "The Node host runs OpenWorkflow and its worker in the dev server, on .vitehub/data/openworkflow.sqlite.db. workflow.remote lets it use the Postgres Default Database or OPENWORKFLOW_POSTGRES_URL."),
481
494
  netlify: explicit("workflow.driver", "OpenWorkflow", "Use OpenWorkflow explicitly. No Netlify-native Workflow driver is provided."),
482
495
  node: {
@@ -501,6 +514,7 @@ export default defineWorkflow(${JSON.stringify(name)}, async (payload: { id: str
501
514
  "vercel"
502
515
  ],
503
516
  docs: "/docs/workspace",
517
+ enabledByDiscovery: ["workspaces"],
504
518
  hosts: {
505
519
  cloudflare: native("memory", "Artifacts / GitHub", "Memory by default, or Cloudflare Artifacts beta and GitHub for durable state.", "process-local"),
506
520
  deno: explicit("workspace.store", "GitHub", "Select the GitHub Workspace Store explicitly for durable state."),
@@ -585,7 +599,7 @@ const optionalFeaturePackages = {
585
599
  ],
586
600
  "content": ["@vite-hub/content"],
587
601
  "database": features.database.packages,
588
- "decisions": ["@vite-hub/decisions"],
602
+ "choices": ["@vite-hub/choices"],
589
603
  "device": ["@vite-hub/device"],
590
604
  "email": features.email.packages,
591
605
  "forge": ["@vite-hub/forge"],
@@ -755,14 +769,14 @@ function missingFeaturePackagesError(features, hostPackages = {}) {
755
769
  * and warns when another installed package is outside its range. `hostPackages` adds the packages that the host or a
756
770
  * provider needs, from `hostFeaturePackages`.
757
771
  */
758
- function assertFeaturePackages(features, hostPackages = {}) {
772
+ function assertFeaturePackages(features, hostPackages = {}, reportVersionError = true) {
759
773
  const isMissing = (feature) => !packagesOf(feature, hostPackages).every((name) => isFeaturePackageInstalled(feature, name));
760
774
  if (features.some(isMissing)) {
761
775
  forgetPackageChecks();
762
776
  const missing = features.filter(isMissing);
763
777
  if (missing.length) throw missingFeaturePackagesError(missing, hostPackages);
764
778
  }
765
- checkPackageVersions(features.flatMap((feature) => packagesOf(feature, hostPackages)));
779
+ checkPackageVersions(features.flatMap((feature) => packagesOf(feature, hostPackages)), reportVersionError);
766
780
  }
767
781
  /**
768
782
  * The `version` of the installed `packageName`, as `vite-hub` resolves it, from the manifest that names the package. It
@@ -863,7 +877,7 @@ let viteHubManifest;
863
877
  * package in range is checked only the first time. A package out of range stays unchecked, so the next check throws
864
878
  * again until the app installs a supported version. A `vite-hub` manifest that the check cannot read turns it off.
865
879
  */
866
- function checkPackageVersions(packages) {
880
+ function checkPackageVersions(packages, reportVersionError) {
867
881
  const unchecked = [...new Set(packages)].filter((name) => !checkedPackageVersions.has(name));
868
882
  if (!unchecked.length) return;
869
883
  if (viteHubManifest === void 0) try {
@@ -873,7 +887,7 @@ function checkPackageVersions(packages) {
873
887
  }
874
888
  const error = unsupportedViteHubPackagesError(unchecked, installedPackageVersion, viteHubManifest);
875
889
  if (error) {
876
- console.error(formatDiagnostic(error));
890
+ if (reportVersionError) console.error(formatDiagnostic(error));
877
891
  throw error;
878
892
  }
879
893
  for (const name of unchecked) checkedPackageVersions.add(name);
@@ -886,4 +900,4 @@ function requireOptionalOwner(module, feature) {
886
900
  return module;
887
901
  }
888
902
  //#endregion
889
- export { isPackageInstalled as a, requireOptionalOwner as c, importOptionalOwner as i, startPackageChecks as l, forgetPackageChecks as n, isPackageInstalledInApp as o, hostFeaturePackages as r, optionalFeaturePackages as s, assertFeaturePackages as t, featureSupport as u };
903
+ export { installArguments as a, optionalFeaturePackages as c, featureSupport as d, features as f, importOptionalOwner as i, requireOptionalOwner as l, forgetPackageChecks as n, isPackageInstalled as o, hostFeaturePackages as r, isPackageInstalledInApp as s, assertFeaturePackages as t, startPackageChecks as u };
@@ -1,4 +1,4 @@
1
- import { l as ConsoleUser } from "./auth-types-DWpTBZvp.js";
1
+ import { l as ConsoleUser } from "./auth-types-CyqhWvYF.js";
2
2
  import { n as ViteHubSiteVisitorReader } from "./page-tools-sw4I-Nqx.js";
3
3
  //#region ../internal/src/runtime/page-tools-shared.d.ts
4
4
  /**