vite-hub 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/dist/_internal/runtime/browser-errors.d.ts +0 -2
  2. package/dist/_internal/runtime/browser-errors.js +3 -4
  3. package/dist/_internal/runtime/redirects.d.ts +1 -2
  4. package/dist/_internal/runtime/redirects.js +2 -3
  5. package/dist/_internal/runtime/request-policy.d.ts +1 -2
  6. package/dist/_internal/runtime/request-policy.js +2 -3
  7. package/dist/_internal/runtime/security.d.ts +1 -2
  8. package/dist/_internal/runtime/security.js +1 -2
  9. package/dist/{access-BC9HtX_M.js → access-BBHk9b5P.js} +12 -15
  10. package/dist/{access-policy-CVZg9LPR.js → access-policy-BM48XstY.js} +5 -6
  11. package/dist/{access-policy-DhsEACna.d.ts → access-policy-CUbJLvlR.d.ts} +4 -8
  12. package/dist/{account-Cjj-tYzo.d.ts → account-CoAO1F8G.d.ts} +5 -7
  13. package/dist/{agent-invocations.post-C3Onl2yH.js → agent-invocations.post-BAC1aHnG.js} +14 -17
  14. package/dist/agents-BClUWOj7.js +1 -0
  15. package/dist/{agents-B76RICcy.js → agents-Cz_uhhov.js} +4 -5
  16. package/dist/{agents-C94A4N9u.d.ts → agents-Gyw4VKPt.d.ts} +0 -2
  17. package/dist/auth/server.js +1 -2
  18. package/dist/{auth-GFIN6xSJ.d.ts → auth-CeKxL2xp.d.ts} +4 -8
  19. package/dist/{auth-operations-GcQk0O0X.js → auth-operations-arLIY2_2.js} +1 -2
  20. package/dist/{auth-types-D3ugQ8xM.d.ts → auth-types-B4mq4YhK.d.ts} +0 -4
  21. package/dist/bin.js +8 -11
  22. package/dist/blob/nuxt-image.js +1 -2
  23. package/dist/{blob-iVewd7KQ.d.ts → blob-_TtxDb-t.d.ts} +1 -3
  24. package/dist/{blob-BcgsZtqM.js → blob-eH6j0AQj.js} +5 -6
  25. package/dist/{browser-error-limits-CToqAD-O.js → browser-error-limits-B0yS95zt.js} +2 -4
  26. package/dist/cache/operations.d.ts +2 -4
  27. package/dist/cache/operations.js +3 -4
  28. package/dist/cache.d.ts +1 -3
  29. package/dist/cache.js +2 -3
  30. package/dist/{cli-config-FPHk1nbC.js → cli-config-BX8H4ZCo.js} +2 -3
  31. package/dist/cli-config-DgpmE_7z.js +1 -0
  32. package/dist/{cloudflare-env-lookup-DKXdr4P_.js → cloudflare-env-lookup-DcN7pGlv.js} +1 -2
  33. package/dist/cms.js +1 -2
  34. package/dist/console/auth-types.d.ts +1 -1
  35. package/dist/console/auth.d.ts +1 -3
  36. package/dist/console/auth.js +2 -3
  37. package/dist/console/runtime/auth-operations.d.ts +1 -3
  38. package/dist/console/runtime/auth-operations.js +1 -2
  39. package/dist/console/runtime/client/account-views.d.ts +1 -3
  40. package/dist/console/runtime/client/account-views.js +1 -2
  41. package/dist/console/runtime/client/account.d.ts +1 -1
  42. package/dist/console/runtime/client/account.js +29 -45
  43. package/dist/console/runtime/client/appearance.d.ts +1 -2
  44. package/dist/console/runtime/client/appearance.js +1 -2
  45. package/dist/console/runtime/client/blob-media.d.ts +2 -4
  46. package/dist/console/runtime/client/blob-media.js +5 -6
  47. package/dist/console/runtime/client/comment-thread.d.ts +1 -3
  48. package/dist/console/runtime/client/comment-thread.js +3 -4
  49. package/dist/console/runtime/client/content-heads.d.ts +1 -2
  50. package/dist/console/runtime/client/content-heads.js +2 -3
  51. package/dist/console/runtime/client/documents.d.ts +2 -2
  52. package/dist/console/runtime/client/documents.js +1 -2
  53. package/dist/console/runtime/client/editor.d.ts +3 -5
  54. package/dist/console/runtime/client/editor.js +1 -2
  55. package/dist/console/runtime/client/env-groups.d.ts +1 -3
  56. package/dist/console/runtime/client/env-groups.js +1 -2
  57. package/dist/console/runtime/client/env-status.d.ts +1 -3
  58. package/dist/console/runtime/client/env-status.js +1 -2
  59. package/dist/console/runtime/client/format.d.ts +1 -3
  60. package/dist/console/runtime/client/format.js +1 -2
  61. package/dist/console/runtime/client/invocation-deletion.d.ts +1 -2
  62. package/dist/console/runtime/client/invocation-deletion.js +1 -2
  63. package/dist/console/runtime/client/invocation.d.ts +1 -2
  64. package/dist/console/runtime/client/invocation.js +4 -5
  65. package/dist/console/runtime/client/live.d.ts +2 -4
  66. package/dist/console/runtime/client/live.js +1 -2
  67. package/dist/console/runtime/client/mcp-client.d.ts +6 -4
  68. package/dist/console/runtime/client/mcp-client.js +12 -5
  69. package/dist/console/runtime/client/media-library.d.ts +1 -1
  70. package/dist/console/runtime/client/media-library.js +1 -2
  71. package/dist/console/runtime/client/media-uploads.d.ts +2 -4
  72. package/dist/console/runtime/client/media-uploads.js +2 -3
  73. package/dist/console/runtime/client/media.d.ts +1 -1
  74. package/dist/console/runtime/client/media.js +1 -2
  75. package/dist/console/runtime/client/operation-view.d.ts +2 -4
  76. package/dist/console/runtime/client/operation-view.js +4 -5
  77. package/dist/console/runtime/client/presence.d.ts +2 -4
  78. package/dist/console/runtime/client/presence.js +1 -2
  79. package/dist/console/runtime/client/preview.d.ts +1 -3
  80. package/dist/console/runtime/client/preview.js +1 -2
  81. package/dist/console/runtime/client/problem.d.ts +2 -4
  82. package/dist/console/runtime/client/problem.js +3 -4
  83. package/dist/console/runtime/client/project-link.d.ts +1 -1
  84. package/dist/console/runtime/client/project-link.js +1 -2
  85. package/dist/console/runtime/client/project-session.d.ts +19 -10
  86. package/dist/console/runtime/client/project-session.js +1 -723
  87. package/dist/console/runtime/client/project.d.ts +1 -3
  88. package/dist/console/runtime/client/project.js +1 -2
  89. package/dist/console/runtime/client/projects.d.ts +1 -1
  90. package/dist/console/runtime/client/projects.js +1 -2
  91. package/dist/console/runtime/client/publish.d.ts +2 -4
  92. package/dist/console/runtime/client/publish.js +1 -2
  93. package/dist/console/runtime/client/rate-limit.d.ts +1 -3
  94. package/dist/console/runtime/client/rate-limit.js +3 -4
  95. package/dist/console/runtime/client/read-only.d.ts +2 -4
  96. package/dist/console/runtime/client/read-only.js +2 -3
  97. package/dist/console/runtime/client/request.d.ts +1 -1
  98. package/dist/console/runtime/client/request.js +1 -2
  99. package/dist/console/runtime/client/route-query.d.ts +4 -5
  100. package/dist/console/runtime/client/route-query.js +1 -2
  101. package/dist/console/runtime/client/schedule-run.d.ts +1 -3
  102. package/dist/console/runtime/client/schedule-run.js +3 -4
  103. package/dist/console/runtime/client/schema-form.d.ts +1 -1
  104. package/dist/console/runtime/client/schema-form.js +1 -2
  105. package/dist/console/runtime/client/sections.d.ts +1 -1
  106. package/dist/console/runtime/client/sections.js +1 -2
  107. package/dist/console/runtime/client/site-access.d.ts +40 -12
  108. package/dist/console/runtime/client/site-access.js +152 -32
  109. package/dist/console/runtime/client/stored.d.ts +1 -3
  110. package/dist/console/runtime/client/stored.js +1 -2
  111. package/dist/console/runtime/client/ticket.d.ts +1 -1
  112. package/dist/console/runtime/client/ticket.js +1 -2
  113. package/dist/console/runtime/client/toast.d.ts +1 -3
  114. package/dist/console/runtime/client/toast.js +1 -2
  115. package/dist/console/runtime/client/workflow.d.ts +1 -3
  116. package/dist/console/runtime/client/workflow.js +3 -4
  117. package/dist/console/runtime/components/console-account-home.vue +9 -7
  118. package/dist/console/runtime/components/console-account-link.vue +8 -5
  119. package/dist/console/runtime/components/console-account-setup.vue +10 -7
  120. package/dist/console/runtime/components/console-account-shell.vue +7 -2
  121. package/dist/console/runtime/components/console-account-unlink.vue +2 -3
  122. package/dist/console/runtime/components/console-app-settings.vue +8 -2
  123. package/dist/console/runtime/components/console-hosted-comments-embed.vue +106 -0
  124. package/dist/console/runtime/components/console-mcp-callback.vue +6 -1
  125. package/dist/console/runtime/components/console-mcp-items.vue +3 -16
  126. package/dist/console/runtime/components/console-site.vue +10 -8
  127. package/dist/console/runtime/console-route.d.ts +1 -3
  128. package/dist/console/runtime/console-route.js +1 -2
  129. package/dist/console/runtime/definitions.d.ts +1 -1
  130. package/dist/console/runtime/definitions.js +1 -2
  131. package/dist/console/runtime/diagnostics.ts +7 -0
  132. package/dist/console/runtime/mcp-client.d.ts +1 -1
  133. package/dist/console/runtime/mcp-client.js +1 -2
  134. package/dist/console/runtime/page/loader.js +22 -21
  135. package/dist/console/runtime/page-tool/account.js +26 -0
  136. package/dist/console/runtime/page-tool/page-tool.js +2 -2
  137. package/dist/console/runtime/rpc.d.ts +1 -1
  138. package/dist/console/runtime/rpc.js +1 -2
  139. package/dist/console/runtime/sections.d.ts +1 -1
  140. package/dist/console/runtime/sections.js +1 -2
  141. package/dist/console/runtime/server/access-policy.d.ts +1 -1
  142. package/dist/console/runtime/server/access-policy.js +1 -2
  143. package/dist/console/runtime/server/agents.get.d.ts +2 -3
  144. package/dist/console/runtime/server/agents.get.js +3 -4
  145. package/dist/console/runtime/server/auth.d.ts +1 -1
  146. package/dist/console/runtime/server/auth.js +4 -5
  147. package/dist/console/runtime/server/blob.d.ts +1 -1
  148. package/dist/console/runtime/server/blob.js +1 -2
  149. package/dist/console/runtime/server/channel-replay.d.ts +3 -5
  150. package/dist/console/runtime/server/channel-replay.js +5 -6
  151. package/dist/console/runtime/server/database.d.ts +1 -1
  152. package/dist/console/runtime/server/database.get.d.ts +2 -3
  153. package/dist/console/runtime/server/database.get.js +4 -5
  154. package/dist/console/runtime/server/database.js +1 -2
  155. package/dist/console/runtime/server/definitions.d.ts +1 -1
  156. package/dist/console/runtime/server/definitions.get.d.ts +4 -6
  157. package/dist/console/runtime/server/definitions.get.js +5 -6
  158. package/dist/console/runtime/server/definitions.js +1 -2
  159. package/dist/console/runtime/server/development.d.ts +1 -1
  160. package/dist/console/runtime/server/development.js +1 -2
  161. package/dist/console/runtime/server/documents.d.ts +1 -1
  162. package/dist/console/runtime/server/documents.js +2 -2
  163. package/dist/console/runtime/server/env.d.ts +1 -3
  164. package/dist/console/runtime/server/env.get.d.ts +2 -4
  165. package/dist/console/runtime/server/env.get.js +7 -8
  166. package/dist/console/runtime/server/env.js +1 -2
  167. package/dist/console/runtime/server/invocation-capabilities.get.d.ts +1 -3
  168. package/dist/console/runtime/server/invocation-capabilities.get.js +4 -5
  169. package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -5
  170. package/dist/console/runtime/server/invocation-workspace.get.js +6 -7
  171. package/dist/console/runtime/server/invocation.get.d.ts +3 -5
  172. package/dist/console/runtime/server/invocation.get.js +8 -9
  173. package/dist/console/runtime/server/invocations.get.d.ts +1 -2
  174. package/dist/console/runtime/server/invocations.get.js +5 -6
  175. package/dist/console/runtime/server/logs.get.d.ts +3 -5
  176. package/dist/console/runtime/server/logs.get.js +7 -8
  177. package/dist/console/runtime/server/mcp-client-operations.d.ts +2 -4
  178. package/dist/console/runtime/server/mcp-client-operations.js +5 -7
  179. package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
  180. package/dist/console/runtime/server/operation-contributions.js +1 -2
  181. package/dist/console/runtime/server/page-auth.d.ts +2 -4
  182. package/dist/console/runtime/server/page-auth.js +1 -2
  183. package/dist/console/runtime/server/page-tool.d.ts +1 -1
  184. package/dist/console/runtime/server/page-tool.js +5 -5
  185. package/dist/console/runtime/server/page-tools-route.d.ts +1 -1
  186. package/dist/console/runtime/server/page-tools-route.js +2 -3
  187. package/dist/console/runtime/server/rpc.d.ts +3 -5
  188. package/dist/console/runtime/server/rpc.js +12 -13
  189. package/dist/console/runtime/server/runtime.d.ts +1 -1
  190. package/dist/console/runtime/server/runtime.js +1 -2
  191. package/dist/console/runtime/server/search.get.d.ts +1 -3
  192. package/dist/console/runtime/server/search.get.js +3 -5
  193. package/dist/console/runtime/server/sections.d.ts +5 -5
  194. package/dist/console/runtime/server/sections.get.d.ts +1 -1
  195. package/dist/console/runtime/server/sections.get.js +8 -9
  196. package/dist/console/runtime/server/sections.js +6 -6
  197. package/dist/console/runtime/server/setup.d.ts +4 -4
  198. package/dist/console/runtime/server/setup.js +4 -4
  199. package/dist/console/runtime/server/site-entry.d.ts +1 -3
  200. package/dist/console/runtime/server/site-entry.js +9 -10
  201. package/dist/console/runtime/server/site-session.d.ts +3 -4
  202. package/dist/console/runtime/server/site-session.js +1 -2
  203. package/dist/console/runtime/server/status.get.d.ts +2 -4
  204. package/dist/console/runtime/server/status.get.js +6 -7
  205. package/dist/console/runtime/server/tickets.d.ts +1 -1
  206. package/dist/console/runtime/server/tickets.js +1 -2
  207. package/dist/console/runtime/server/usage.get.d.ts +2 -4
  208. package/dist/console/runtime/server/usage.get.js +8 -9
  209. package/dist/console/runtime/server/workspace-files.get.d.ts +3 -5
  210. package/dist/console/runtime/server/workspace-files.get.js +4 -5
  211. package/dist/console/runtime/site-access.d.ts +1 -1
  212. package/dist/console/runtime/site-access.js +1 -2
  213. package/dist/console/runtime/skills.d.ts +1 -3
  214. package/dist/console/runtime/skills.js +1 -2
  215. package/dist/console/server.d.ts +7 -11
  216. package/dist/console/server.js +8 -8
  217. package/dist/console/ui.d.ts +0 -10
  218. package/dist/console/ui.js +14 -27
  219. package/dist/console-lazy-views-VEjcbL4Q.js +1 -0
  220. package/dist/{console-route-CM2G5hiC.js → console-route-DbdnLkkF.js} +2 -3
  221. package/dist/console.d.ts +1 -3
  222. package/dist/console.js +1 -2
  223. package/dist/{database-DC67Ipm-.d.ts → database-CPjZ3L0g.d.ts} +1 -3
  224. package/dist/{database-UMJgnU2z.js → database-CrgBUdIx.js} +3 -4
  225. package/dist/{definition-catalog-BUcclwSH.js → definition-catalog-1xPPtzOx.js} +3 -4
  226. package/dist/definition-catalog-M5ua7JRS.js +1 -0
  227. package/dist/{definitions-BW6SvmMM.js → definitions-BFYqXchw.js} +1 -2
  228. package/dist/{definitions-DB4LbZ7T.d.ts → definitions-ChvMnA1L.d.ts} +0 -2
  229. package/dist/{definitions-Dbgxfz3I.d.ts → definitions-DRkgHKmk.d.ts} +1 -3
  230. package/dist/{definitions-DTytrw42.js → definitions-M7i2p8SR.js} +5 -6
  231. package/dist/{deployment-BUshgN5Q.js → deployment-CURATxjG.js} +2 -3
  232. package/dist/deployment-l7RuKdEp.js +1 -0
  233. package/dist/{dev-peer-CHjyHYG6.js → dev-peer-DBq-isgi.js} +3 -5
  234. package/dist/{development-zLxOp-AO.js → development-DD567hhJ.js} +2 -3
  235. package/dist/{development-RnopiRwK.d.ts → development-I40mfD7B.d.ts} +1 -3
  236. package/dist/{diagnostics-DtR0TAmq.js → diagnostics-B2cqlCSz.js} +2 -2
  237. package/dist/{diagnostics-CjGiniKb.d.ts → diagnostics-BXxPggRw.d.ts} +1 -3
  238. package/dist/docs/nuxt.js +1 -2
  239. package/dist/doctor.d.ts +0 -6
  240. package/dist/doctor.js +11492 -12152
  241. package/dist/{documents-BewAPY61.js → documents-BOYwZ5g4.js} +7 -8
  242. package/dist/{documents-B4R4JSfH.js → documents-Ck_iub9w.js} +4 -5
  243. package/dist/{documents-BASIRZ91.d.ts → documents-DxK0tdjA.d.ts} +3 -5
  244. package/dist/{documents-BDR0AkYR.d.ts → documents-LtkKCxtu.d.ts} +4 -8
  245. package/dist/durability/operations.d.ts +2 -4
  246. package/dist/durability/operations.js +3 -4
  247. package/dist/{entries-DbyNPLC9.js → entries-UFs9n1MB.js} +2 -3
  248. package/dist/{env-Dg1I_DWr.js → env-D-wtSupz.js} +2 -3
  249. package/dist/{error-diagnostics-B1yAIaSn.js → error-diagnostics-CBtvqI30.js} +2 -7
  250. package/dist/{error-diagnostics-C0KyI408.js → error-diagnostics-kKXseq8d.js} +5 -2
  251. package/dist/error-diagnostics.ts +1 -7
  252. package/dist/{features-CC5OcZqJ.js → features-BXRKlmtN.js} +5 -6
  253. package/dist/features-CD5i5I8V.js +1 -0
  254. package/dist/{format-BOYlanIZ.js → format-Df-bS4Ly.js} +1 -2
  255. package/dist/{github-login-Bi3bfjRX.js → github-login-W-vaahWP.js} +1 -2
  256. package/dist/{host-CkL0jjBq.js → host-DeNPYIeV.js} +1 -2
  257. package/dist/{http-error-Bs6e8_-8.js → http-error-BorAxJYM.js} +1 -2
  258. package/dist/index.d.ts +1 -7
  259. package/dist/index.js +5 -7
  260. package/dist/{inspect-DbZuP_7b.js → inspect-CWwAuL-B.js} +2 -3
  261. package/dist/internal/agent-invocations-libsql.js +1 -2
  262. package/dist/internal/disabled-redis-driver.d.ts +1 -3
  263. package/dist/internal/disabled-redis-driver.js +2 -3
  264. package/dist/internal/disabled-upstash-driver.d.ts +1 -3
  265. package/dist/internal/disabled-upstash-driver.js +2 -3
  266. package/dist/internal/test-loader.d.ts +1 -3
  267. package/dist/internal/test-loader.js +2 -3
  268. package/dist/internal/test-server.js +2 -3
  269. package/dist/{internal-BreyUsQ6.js → internal-0C_CC601.js} +1 -2
  270. package/dist/{internal-Cc9N0shU.d.ts → internal-CKocv79I.d.ts} +3 -7
  271. package/dist/{invariant-DolT9EEx.js → invariant-Dj2R1eMr.js} +1 -2
  272. package/dist/{invocation-page-undo-DqYcPlkQ.js → invocation-page-undo-BEi-rO0Q.js} +4 -5
  273. package/dist/{invocations-6jxqLkGY.js → invocations-8NThe8Bx.js} +5 -6
  274. package/dist/{limits-BUlwWYQE.js → limits-BLo31qDR.js} +1 -2
  275. package/dist/logs/client.d.ts +1 -3
  276. package/dist/logs/client.js +1 -2
  277. package/dist/logs/host.d.ts +2 -4
  278. package/dist/logs/host.js +1 -2
  279. package/dist/logs/memory.d.ts +1 -1
  280. package/dist/logs/memory.js +1 -2
  281. package/dist/logs/source.d.ts +1 -1
  282. package/dist/logs/source.js +1 -2
  283. package/dist/logs.d.ts +2 -2
  284. package/dist/logs.js +2 -2
  285. package/dist/{mcp-client-CTbTbn7d.js → mcp-client-Bkh-khvr.js} +1 -2
  286. package/dist/{mcp-client-C91h8Taa.js → mcp-client-DiObFpDS.js} +35 -22
  287. package/dist/{mcp-client-C_sEmyQw.d.ts → mcp-client-Q2XbUXuP.d.ts} +1 -4
  288. package/dist/{media-uKX4Wy-c.d.ts → media-C79RB1oH.d.ts} +0 -2
  289. package/dist/{media-D3OfyKni.js → media-CAKz9yrp.js} +8 -9
  290. package/dist/{media-library-o8RRsnn_.js → media-library-BDX89xXA.js} +5 -6
  291. package/dist/{media-library-D9ThbXqs.d.ts → media-library-DxGu6w9z.d.ts} +0 -2
  292. package/dist/{memory-C54SDH_l.js → memory-D3EJS_Bp.js} +3 -4
  293. package/dist/{memory-2bbl4hcV.d.ts → memory-GK5ZGWrp.d.ts} +1 -3
  294. package/dist/{nuxt-server-auto-imports-cfTZYvgy.js → nuxt-server-auto-imports-4aT5BD4u.js} +1 -2
  295. package/dist/{nuxt-server-imports-75bWMeXc.js → nuxt-server-imports-BdJqiVhT.js} +1 -2
  296. package/dist/nuxt.d.ts +1 -3
  297. package/dist/nuxt.js +184 -130
  298. package/dist/{object-D8pRdprI.js → object-DRSmpe04.js} +1 -2
  299. package/dist/{operation-contributions-CrdmqtJW.d.ts → operation-contributions-BCcQVlGb.d.ts} +1 -3
  300. package/dist/{operation-contributions-C3lwePQu.js → operation-contributions-D10pjkJF.js} +4 -5
  301. package/dist/{operation-definition-DxjKcCGm.js → operation-definition-DTpNvLd8.js} +5 -8
  302. package/dist/{operation-registry-BogGwk_I.js → operation-registry-DfQbL7vE.js} +1 -2
  303. package/dist/{operation-rpc-DI9txNxK.js → operation-rpc-BMdfapja.js} +3 -4
  304. package/dist/{operations-CFYGXqLm.js → operations-CD_mu_Ww.js} +4 -5
  305. package/dist/operations-D7ENc68Y.js +1 -0
  306. package/dist/{operations-TTjL_7Zc.d.ts → operations-DgFhA1WE.d.ts} +0 -4
  307. package/dist/{operations-ChEXk2ij.js → operations-vRLiH7dh.js} +15 -16
  308. package/dist/{optional-owners-O6sj4uoj.js → optional-owners-DAfShdgV.js} +4 -5
  309. package/dist/{out-fRNaVslw.js → out-Cw5Tvr92.js} +2933 -2301
  310. package/dist/{owned-paths-BnjT0FhU.js → owned-paths-MjjDftBn.js} +1 -2
  311. package/dist/page/pill.iife.js +2 -2
  312. package/dist/{page-tool-PmxH65gt.d.ts → page-tool-BUnUbuSy.d.ts} +4 -6
  313. package/dist/{page-tools-ClgqElu-.js → page-tools-BQzwuAHD.js} +5 -7
  314. package/dist/{page-tools-DcCCtDKi.d.ts → page-tools-UwsfvH-B.d.ts} +0 -2
  315. package/dist/{page-tools-shared-aNC9YtoI.js → page-tools-shared-hJcG_xk8.js} +2 -2
  316. package/dist/{pathe.M-eThtNZ-J4gfe1m9.js → pathe.M-eThtNZ-D4EC7Wue.js} +1 -2
  317. package/dist/{plugins-DoXnU6-s.d.ts → plugins-BpiTVULl.d.ts} +3 -101
  318. package/dist/{plugins-BTZQaFtZ.js → plugins-H6-MQrsn.js} +1544 -1087
  319. package/dist/presets/workspace.js +1 -2
  320. package/dist/{project-DXZRZEPX.js → project-BxyyclTE.js} +8 -9
  321. package/dist/{project-Dgyq1F1V.d.ts → project-DKBIHOf4.d.ts} +3 -7
  322. package/dist/{project-DlWTGB7h.js → project-DRC67Uiu.js} +1 -2
  323. package/dist/{project-link-DT99MoyU.js → project-link-CeS0T8Pr.js} +7 -8
  324. package/dist/{project-link-bNS-KROO.d.ts → project-link-isfdRO3Q.d.ts} +2 -4
  325. package/dist/{project-root-v6ba4tn7.js → project-root-mAVQGZTX.js} +1 -2
  326. package/dist/project-session--GN7MduT.js +764 -0
  327. package/dist/{projects-CAcXztf4.js → projects-BRp0iseV.js} +1 -2
  328. package/dist/{projects-Ddvl9EJp.d.ts → projects-mgPxrKZr.d.ts} +0 -2
  329. package/dist/{registry-zw6aE2N9.js → registry-B8JE5NY-.js} +1 -2
  330. package/dist/{registry-CDKLACCZ.js → registry-CnPC-gNu.js} +1 -2
  331. package/dist/{request-D7h3SQ92.d.ts → request-BC_krbEr.d.ts} +2 -4
  332. package/dist/{request-SBLxvpyr.d.ts → request-CJCPyu2B.d.ts} +2 -3
  333. package/dist/{request-CMA2UKKq.js → request-CQ8TkHLh.js} +4 -5
  334. package/dist/{request-Cs0FqxEL.js → request-Cl68STwT.js} +7 -8
  335. package/dist/{request-origin-COUkgHd6.js → request-origin-pzWr9UUu.js} +1 -2
  336. package/dist/{rolldown-runtime-CMFfr-1z.js → rolldown-runtime-DegdyBIC.js} +2 -3
  337. package/dist/{route-query-CRVWXIrc.js → route-query-BWVl6ZO6.js} +4 -5
  338. package/dist/{rpc-DIUA61pv.js → rpc-D3tsx5lZ.js} +1 -2
  339. package/dist/{rpc-7nlHSv3y.d.ts → rpc-oijgKQtD.d.ts} +0 -2
  340. package/dist/{runtime-YLWfdrtO.js → runtime-CAbuQGMP.js} +3 -4
  341. package/dist/{runtime-B-46Bawt.js → runtime-CRJsqVTa.js} +2 -3
  342. package/dist/{runtime-B_btezs1.d.ts → runtime-Cf8R1Ztr.d.ts} +0 -2
  343. package/dist/{runtime-DxfJOfCd.js → runtime-CyPZMiyK.js} +2 -3
  344. package/dist/{runtime-CX_l_78I.js → runtime-F0CTqBFx.js} +5 -6
  345. package/dist/{runtime-feature-guard-CuyPVGj9.js → runtime-feature-guard-DpUn4Oxc.js} +6 -7
  346. package/dist/scan-module-B1A24jqP.js +1 -0
  347. package/dist/{scan-module-Df58L_6T.js → scan-module-BfZvDBxb.js} +2 -4
  348. package/dist/{schema-form-C-fy3xaU.d.ts → schema-form-Bl79Bdm-.d.ts} +0 -2
  349. package/dist/{secret-DELGKpCJ.js → secret-D2KL_o2h.js} +2 -3
  350. package/dist/{sections-Do7X4Nwt.d.ts → sections-0qrBvGbf.d.ts} +0 -4
  351. package/dist/{sections-C83x0slv.js → sections-BNTdIEJw.js} +2 -3
  352. package/dist/{sections-BogiCmtz.d.ts → sections-BTfWK14a.d.ts} +4 -6
  353. package/dist/{sections-DumoLKQN.js → sections-BiCOk9qP.js} +1 -2
  354. package/dist/sections-DAtgYMVz.d.ts +8 -0
  355. package/dist/{sections-BKUReack.js → sections-HLxb9MrG.js} +14 -7
  356. package/dist/{sections.get-H46e2urg.d.ts → sections.get-CGmtYmfu.d.ts} +2 -4
  357. package/dist/seo/runtime.d.ts +2 -5
  358. package/dist/seo/runtime.js +3 -5
  359. package/dist/{seo-CtLywyRx.d.ts → seo-CgW5uI9L.d.ts} +0 -2
  360. package/dist/seo.d.ts +1 -1
  361. package/dist/seo.js +1 -2
  362. package/dist/{server-W0c79AYZ.js → server-DsOEa4_A.js} +3 -4
  363. package/dist/{setup-BC0P3eZy.d.ts → setup-Ca7jtBLS.d.ts} +4 -6
  364. package/dist/{setup-DNGzawFn.js → setup-DQz_i-ee.js} +3 -4
  365. package/dist/{site-access-L1qbvKt6.js → site-access-1JIQjY11.js} +8 -9
  366. package/dist/{site-access-DxfdOel1.d.ts → site-access-CUXIbbbR.d.ts} +0 -2
  367. package/dist/{site-access-BycrwM2v.js → site-access-CmaZ-oaL.js} +1 -2
  368. package/dist/site-access-Cvmjb6aw.js +1 -0
  369. package/dist/{site-session-CRwgKtTF.js → site-session-D36fr7Wf.js} +8 -11
  370. package/dist/skills/operations.d.ts +1 -5
  371. package/dist/skills/operations.js +4 -5
  372. package/dist/{skills-DdpSMiCI.js → skills-C1MaGEbO.js} +1 -2
  373. package/dist/skills.d.ts +1 -2
  374. package/dist/{skills.get-CRd06TTb.js → skills.get-DAooGWy5.js} +3 -4
  375. package/dist/skills.js +1 -2
  376. package/dist/{source-Cw3iYvJF.js → source-DYFndd0W.js} +2 -3
  377. package/dist/{source-S-LChQvw.d.ts → source-DemBtwla.d.ts} +0 -2
  378. package/dist/{stored-Dhv2qsQv.js → stored-J3TetMKf.js} +1 -2
  379. package/dist/task/operations.d.ts +1 -5
  380. package/dist/task/operations.js +3 -4
  381. package/dist/test/register.js +2 -3
  382. package/dist/test.d.ts +0 -4
  383. package/dist/test.js +1 -2
  384. package/dist/{ticket-Pr_8ZtXW.d.ts → ticket-BFWwevWN.d.ts} +0 -2
  385. package/dist/{ticket-DtBAstEU.js → ticket-BwsnryuU.js} +2 -3
  386. package/dist/{tickets-DahBmKDT.js → tickets-Cj9_y3gw.js} +10 -11
  387. package/dist/ui/vite.js +1 -2
  388. package/dist/{usage-CoQXs5nW.d.ts → usage-BduF04ks.d.ts} +0 -2
  389. package/dist/{usage-jKtAgJZ0.js → usage-ZV3TBMzE.js} +3 -4
  390. package/dist/{usage-index-VJAZ7a0p.js → usage-index-CR_xTrXO.js} +3 -4
  391. package/dist/{version-dkga9imp.js → version-CAhBr673.js} +13 -16
  392. package/dist/{vite-stage-D7fe614I.js → vite-stage-Dmo4RgnK.js} +3 -5
  393. package/dist/{vue-router-C68IU1jM.d.ts → vue-router-plZJLlpm.d.ts} +120 -182
  394. package/dist/{workspace-history-B95Q-kGI.js → workspace-history-B52xib2J.js} +3 -4
  395. package/dist/{workspace-history-CeVwBB6Q.d.ts → workspace-history-WuxgLsi4.d.ts} +0 -2
  396. package/package.json +144 -144
  397. package/dist/agents-BhFggA26.js +0 -2
  398. package/dist/cli-config-g_mbWdjT.js +0 -2
  399. package/dist/console-lazy-views-DXnIkdyd.js +0 -2
  400. package/dist/definition-catalog-og_1razf.js +0 -2
  401. package/dist/deployment-C2B0hBBj.js +0 -2
  402. package/dist/features-ujWsvlEH.js +0 -2
  403. package/dist/operations-5Lwd1xEI.js +0 -2
  404. package/dist/scan-module-D_3X08mj.js +0 -2
  405. package/dist/sections-CFiMNsqu.d.ts +0 -10
  406. package/dist/site-access-CAiWyKOD.js +0 -2
@@ -1,4 +1,3 @@
1
- //#region src/_internal/runtime/browser-errors.d.ts
2
1
  type BrowserReportField = string | number | boolean | null;
3
2
  /** One browser error or warning, as the server logs it. */
4
3
  export interface BrowserErrorReport {
@@ -28,5 +27,4 @@ export declare function createBrowserErrorsHandler(now?: () => number): {
28
27
  declare const handler: {
29
28
  fetch: (request: Request) => Promise<Response>;
30
29
  };
31
- //#endregion
32
30
  export { handler as default };
@@ -1,7 +1,7 @@
1
- import { r as requestLog } from "../../browser-error-limits-CToqAD-O.js";
2
- import { t as forwardedRequestOrigin } from "../../request-origin-COUkgHd6.js";
1
+ import { r as requestLog } from "../../browser-error-limits-B0yS95zt.js";
2
+ import { t as forwardedRequestOrigin } from "../../request-origin-pzWr9UUu.js";
3
3
  import { getStandardContext } from "@vite-hub/runtime";
4
- //#region src/_internal/runtime/browser-errors.ts
4
+ // src/_internal/runtime/browser-errors.ts
5
5
  /** Reports from one address in one minute, per server process. */
6
6
  const perMinute = 20;
7
7
  const kinds = /* @__PURE__ */ new Set([
@@ -195,5 +195,4 @@ function createBrowserErrorsHandler(now = Date.now) {
195
195
  } };
196
196
  }
197
197
  const handler = createBrowserErrorsHandler();
198
- //#endregion
199
198
  export { createBrowserErrorsHandler, handler as default, parseBrowserErrorReport };
@@ -1,4 +1,3 @@
1
- //#region src/_internal/runtime/redirects.d.ts
2
1
  /** The resolved `vitehub({ redirects })` options that the generated code passes. */
3
2
  export interface RedirectsPolicy {
4
3
  /** The canonical host name, in lower case. */
@@ -34,4 +33,4 @@ export declare function installRedirects(nitroApp: NitroAppLike, policy: Redirec
34
33
  * between the asset binding and dynamic routes. The binding itself may return an SPA fallback for missing files.
35
34
  */
36
35
  export declare function withCloudflareRedirects<Handler extends WorkerHandler>(handler: Handler, policy: RedirectsPolicy): Handler & WorkerHandler;
37
- //#endregion
36
+ export {};
@@ -1,5 +1,5 @@
1
- import { t as forwardedRequestOrigin } from "../../request-origin-COUkgHd6.js";
2
- //#region src/_internal/runtime/redirects.ts
1
+ import { t as forwardedRequestOrigin } from "../../request-origin-pzWr9UUu.js";
2
+ // src/_internal/runtime/redirects.ts
3
3
  const ipv4 = /^\d{1,3}(?:\.\d{1,3}){3}$/;
4
4
  /**
5
5
  * Tells if a request to `hostname` keeps its host and scheme: a local name (`localhost`, `*.localhost`, a name without a
@@ -67,5 +67,4 @@ function withCloudflareRedirects(handler, policy) {
67
67
  }
68
68
  };
69
69
  }
70
- //#endregion
71
70
  export { canonicalRedirect, installRedirects, withCloudflareRedirects };
@@ -1,4 +1,3 @@
1
- //#region src/_internal/runtime/request-policy.d.ts
2
1
  /** The request options of `vitehub({ trustProxy, sameOriginWrites })` that the generated Nitro plugin passes. */
3
2
  export interface RequestPolicyOptions {
4
3
  trustProxy?: boolean;
@@ -50,4 +49,4 @@ export declare function isCrossOriginWrite(request: Pick<Request, "headers" | "m
50
49
  * write gets 403 before any middleware or route runs.
51
50
  */
52
51
  export declare function installRequestPolicy(nitroApp: NitroAppLike, options: RequestPolicyOptions): void;
53
- //#endregion
52
+ export {};
@@ -1,5 +1,5 @@
1
- import { t as forwardedRequestOrigin } from "../../request-origin-COUkgHd6.js";
2
- //#region src/_internal/runtime/request-policy.ts
1
+ import { t as forwardedRequestOrigin } from "../../request-origin-pzWr9UUu.js";
2
+ // src/_internal/runtime/request-policy.ts
3
3
  const safeMethods = /* @__PURE__ */ new Set([
4
4
  "GET",
5
5
  "HEAD",
@@ -78,5 +78,4 @@ function installRequestPolicy(nitroApp, options) {
78
78
  if (!sameOriginWrites || !(fetch instanceof Function)) return;
79
79
  nitroApp.fetch = (request, ...rest) => isCrossOriginWrite(request, sameOriginWrites.exclude) ? crossOriginWriteResponse() : Reflect.apply(fetch, nitroApp, [request, ...rest]);
80
80
  }
81
- //#endregion
82
81
  export { installRequestPolicy, isCrossOriginWrite, trustForwardedFor, trustForwardedProto, trustProxyHeaders };
@@ -1,4 +1,3 @@
1
- //#region src/_internal/runtime/security.d.ts
2
1
  /** The resolved `vitehub({ security })` options that the generated Nitro plugin passes. */
3
2
  export interface SecurityPolicy {
4
3
  /** Header names and values to add to every response that does not set the header itself. */
@@ -24,4 +23,4 @@ export declare function addSecurityHeaders(response: Response, headers: Security
24
23
  * dispatch through the Fetch bridge, which also keeps native handlers behind these controls.
25
24
  */
26
25
  export declare function installSecurity(nitroApp: NitroAppLike, policy: SecurityPolicy): void;
27
- //#endregion
26
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { defineDiagnostics } from "nostics";
2
2
  import { HTTPError } from "nitro/h3";
3
3
  import { limitRequestBody } from "srvx/body-limit";
4
- //#region src/_internal/runtime/security.ts
4
+ // src/_internal/runtime/security.ts
5
5
  const securityDiagnostics = /*#__PURE__*/ defineDiagnostics({
6
6
  docsBase: "https://vitehub.dev/docs/development/diagnostics",
7
7
  codes: { VITE_HUB_REQUEST_BODY_TOO_LARGE: {
@@ -114,5 +114,4 @@ function installSecurity(nitroApp, policy) {
114
114
  return headers.length > 0 ? addSecurityHeaders(response, headers) : response;
115
115
  };
116
116
  }
117
- //#endregion
118
117
  export { addSecurityHeaders, bodyTooLargeResponse, installSecurity };
@@ -1,18 +1,18 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
2
- import { r as operationRpcPath } from "./operation-rpc-DI9txNxK.js";
3
- import { r as consoleDiagnosticBody, t as consoleDiagnostic } from "./diagnostics-DtR0TAmq.js";
4
- import { c as readConsolePublicKeys, i as isViteHubLoopbackPeer, l as verifyConsoleSignature } from "./dev-peer-CHjyHYG6.js";
5
- import { l as operationListed, o as operationAccessAllows } from "./operations-CFYGXqLm.js";
6
- import { i as isConsoleDevelopmentBuild } from "./development-zLxOp-AO.js";
7
- import { a as installedConsoleAccessPolicy, n as consoleAuthorizedSections, t as consoleAuthorizedGrants } from "./access-policy-CVZg9LPR.js";
8
- import { c as isConsoleDevelopmentRuntime, i as consoleRequestError } from "./request-CMA2UKKq.js";
9
- import { n as loadConsoleRuntime } from "./runtime-DxfJOfCd.js";
1
+ import { l as operationListed, o as operationAccessAllows } from "./operations-CD_mu_Ww.js";
2
+ import { a as installedConsoleAccessPolicy, n as consoleAuthorizedSections, t as consoleAuthorizedGrants } from "./access-policy-BM48XstY.js";
3
+ import { r as consoleDiagnosticBody, t as consoleDiagnostic } from "./diagnostics-B2cqlCSz.js";
4
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
5
+ import { c as readConsolePublicKeys, i as isViteHubLoopbackPeer, l as verifyConsoleSignature } from "./dev-peer-DBq-isgi.js";
6
+ import { r as operationRpcPath } from "./operation-rpc-BMdfapja.js";
7
+ import { i as isConsoleDevelopmentBuild } from "./development-DD567hhJ.js";
8
+ import { c as isConsoleDevelopmentRuntime, i as consoleRequestError } from "./request-CQ8TkHLh.js";
9
+ import { n as loadConsoleRuntime } from "./runtime-CyPZMiyK.js";
10
10
  import { formatDiagnostic } from "nostics";
11
11
  import { getStandardContext } from "@vite-hub/runtime/internal/h3";
12
12
  import { defineGrant } from "@vite-hub/runtime/internal/grant";
13
13
  import { isRuntimeResponse } from "@vite-hub/runtime/internal/runtime-type";
14
14
  import { resolvePublicUrl } from "@vite-hub/runtime";
15
- //#region src/console/runtime/server/console-signature.ts
15
+ // src/console/runtime/server/console-signature.ts
16
16
  /** The `401` or `500` of a refused signature, with the Console diagnostic fields. */
17
17
  function consoleSignatureRejection(status, code, message) {
18
18
  return Response.json({
@@ -112,8 +112,7 @@ async function checkConsoleSignature(request, event) {
112
112
  };
113
113
  return verified;
114
114
  }
115
- //#endregion
116
- //#region src/console/runtime/server/loopback.ts
115
+ // src/console/runtime/server/loopback.ts
117
116
  const loopbackHosts = /* @__PURE__ */ new Set([
118
117
  "localhost",
119
118
  "127.0.0.1",
@@ -136,8 +135,7 @@ async function isConsoleLoopbackRequest(request, context) {
136
135
  const forwarded = request.headers.get("x-forwarded-host");
137
136
  return isLoopbackHost(hostHeader) && (!forwarded || isLoopbackHost(forwarded)) && await isViteHubLoopbackPeer(request, context.remoteAddress);
138
137
  }
139
- //#endregion
140
- //#region src/console/runtime/server/access.ts
138
+ // src/console/runtime/server/access.ts
141
139
  const consoleAccessGrant = defineGrant("vitehub.console.access", (mode) => mode);
142
140
  const checkedRequests = /* @__PURE__ */ new WeakMap();
143
141
  const routeScopes = /* @__PURE__ */ new WeakMap();
@@ -448,5 +446,4 @@ function bindConsoleAccess(access, event) {
448
446
  checkedRequests.set(request, access);
449
447
  return event;
450
448
  }
451
- //#endregion
452
449
  export { isConsoleRpcPath as _, consoleAccessWrites as a, consoleOperationGranted as c, consoleRequest as d, readConsoleAccessGrants as f, isConsoleLoopbackRequest as g, withConsoleAccess as h, consoleAccessInvoker as i, consolePerson as l, readConsoleOperationUser as m, bindConsoleAccess as n, consoleImpersonation as o, readConsoleAccessUser as p, consoleAccessAllows as r, consoleOperationAccess as s, allowedConsoleSections as t, consoleRealtimeAccess as u };
@@ -1,9 +1,9 @@
1
- import { n as invariantError, t as invariant } from "./invariant-DolT9EEx.js";
2
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
3
- import { r as installOperationSectionResolver } from "./operation-registry-BogGwk_I.js";
4
- import { i as isConsoleDevelopmentBuild } from "./development-zLxOp-AO.js";
1
+ import { r as installOperationSectionResolver } from "./operation-registry-DfQbL7vE.js";
2
+ import { n as invariantError, t as invariant } from "./invariant-Dj2R1eMr.js";
3
+ import { i as isConsoleDevelopmentBuild } from "./development-DD567hhJ.js";
4
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
5
5
  import { isRuntimeResponse } from "@vite-hub/runtime/internal/runtime-type";
6
- //#region src/console/runtime/server/access-policy.ts
6
+ // src/console/runtime/server/access-policy.ts
7
7
  /**
8
8
  * The Console access policy store. Generated output installs the policy when the server starts, so this module holds
9
9
  * only the policy and its checks. The request checks in `access.ts` load with the first Console route.
@@ -69,5 +69,4 @@ function consoleAuthorizedGrants(result) {
69
69
  if (!grants.every((grant) => typeof grant === "string" && grant.length > 0)) return false;
70
70
  return Object.freeze([...new Set(grants)]);
71
71
  }
72
- //#endregion
73
72
  export { installedConsoleAccessPolicy as a, installConsoleAccess as i, consoleAuthorizedSections as n, consoleOpenAccessWarning as r, consoleAuthorizedGrants as t };
@@ -1,9 +1,8 @@
1
- import "./operations-TTjL_7Zc.js";
2
- import { l as ConsoleUser, n as ConsoleAuthorize } from "./auth-types-D3ugQ8xM.js";
3
- import { a as ConsoleSectionId } from "./sections-Do7X4Nwt.js";
4
- import "./request-D7h3SQ92.js";
1
+ import { a as ConsoleSectionId } from "./sections-0qrBvGbf.js";
2
+ import "./request-BC_krbEr.js";
3
+ import "./operations-DgFhA1WE.js";
4
+ import { l as ConsoleUser, n as ConsoleAuthorize } from "./auth-types-B4mq4YhK.js";
5
5
  import "@vite-hub/agent";
6
- //#region src/console/runtime/server/access.d.ts
7
6
  /**
8
7
  * How the Console checks each request. Generated host output installs one policy for each server process.
9
8
  * - `token`: a request signed with a key whose public key is in a `VITEHUB_CONSOLE_KEY_<NAME>` variable. See
@@ -92,8 +91,6 @@ interface ConsoleRealtimeAccess {
92
91
  * Console, and checks the same section access.
93
92
  */
94
93
  declare function consoleRealtimeAccess(section: ConsoleSectionId): ConsoleRealtimeAccess;
95
- //#endregion
96
- //#region src/console/runtime/server/access-policy.d.ts
97
94
  declare const consoleOpenAccessWarning = "[vitehub] console: { auth: false } takes Console calls without a signature. Anyone who can reach /_vitehub/rpc can use the Console. Remove console.auth so the app takes only signed calls.";
98
95
  /** Install the Console access policy. Generated Console output calls this before it serves a request. */
99
96
  declare function installConsoleAccess(policy: ConsoleAccessPolicy): void;
@@ -105,5 +102,4 @@ declare function consoleAuthorizedSections(result: unknown): readonly ConsoleSec
105
102
  * field, and `false` when the field is not a list of role ids.
106
103
  */
107
104
  declare function consoleAuthorizedGrants(result: unknown): readonly string[] | undefined | false;
108
- //#endregion
109
105
  export { installedConsoleAccessPolicy as a, ConsoleRealtimeAccess as c, installConsoleAccess as i, ConsoleRealtimeUser as l, consoleAuthorizedSections as n, ConsoleAccess as o, consoleOpenAccessWarning as r, ConsoleAccessRoute as s, consoleAuthorizedGrants as t, consoleRealtimeAccess as u };
@@ -1,14 +1,13 @@
1
- import { t as ConsoleProjectBuild } from "./project-link-bNS-KROO.js";
2
- //#region src/console/runtime/client/account.d.ts
1
+ import { t as ConsoleProjectBuild } from "./project-link-isfdRO3Q.js";
3
2
  /** A project of the active team, as `GET /api/projects` returns it. The page never sees the private key. */
4
3
  interface ConsoleAccountProject {
5
4
  id: string;
6
5
  url: string;
7
6
  label: string | null;
8
7
  /** The Ed25519 public key of the link, base64url. */
9
- publicKey: string;
8
+ publicKey: string | null;
10
9
  /** The variable of the app that keeps `publicKey`, such as `VITEHUB_CONSOLE_KEY_CONSOLE_3F9A12BC`. */
11
- keyVariable: string;
10
+ keyVariable: string | null;
12
11
  }
13
12
  interface ConsoleAccountTeam {
14
13
  id: string;
@@ -131,7 +130,7 @@ declare function revokeConsoleApiKey(id: string): Promise<void>;
131
130
  * or old), it answers but not as a Console app (`unconfigured`: no `console: true`, or another error), or
132
131
  * the Console cannot reach it.
133
132
  */
134
- type ConsoleAccountAppStatus = "checking" | "connected" | "setup" | "unconfigured" | "unreachable";
133
+ type ConsoleAccountAppStatus = "checking" | "connected" | "setup" | "unconfigured" | "unreachable" | "site";
135
134
  /** What each status says, in the sidebar and on Home. */
136
135
  declare const accountAppStatusLabels: Record<ConsoleAccountAppStatus, string>;
137
136
  /** What a check of a linked app found. `setup` means the app refuses the signature, so its variable is missing or old. */
@@ -151,7 +150,7 @@ interface ConsoleAccountCheck {
151
150
  /** Whether the app keeps the public key of the link: the Console server calls the app with a signed request. */
152
151
  declare function checkConsoleAccountProject(id: string): Promise<ConsoleAccountCheck>;
153
152
  /** Link an app to the active team. The answer names the variable and the public key to set on the app. */
154
- declare function linkConsoleAccountProject(url: string, label?: string): Promise<ConsoleAccountProject>;
153
+ declare function linkConsoleAccountProject(url: string, label?: string, kind?: "site"): Promise<ConsoleAccountProject>;
155
154
  /** Rename an app of the active team. An empty name removes the label, so the Console shows the name that the app reports. */
156
155
  declare function renameConsoleAccountProject(id: string, label: string): Promise<ConsoleAccountProject>;
157
156
  declare function unlinkConsoleAccountProject(id: string): Promise<void>;
@@ -195,5 +194,4 @@ declare function setConsoleEnvValue(projectId: string, stage: string, name: stri
195
194
  declare function deleteConsoleEnvValue(projectId: string, stage: string, name: string): Promise<void>;
196
195
  /** Read one value. The Console writes who read it in the env activity first. */
197
196
  declare function revealConsoleEnvValue(projectId: string, stage: string, name: string): Promise<string | undefined>;
198
- //#endregion
199
197
  export { linkConsoleGitHub as A, renameConsoleAccountProject as B, deleteConsolePasskey as C, inviteConsoleMember as D, endConsoleSession as E, loadConsoleSignInMethods as F, signInWithGitHub as G, revealConsoleEnvValue as H, loadConsoleSignInState as I, switchConsoleTeam as J, signInWithPasskey as K, loadConsoleTeam as L, listConsolePasskeys as M, listConsoleSignInProviders as N, leaveConsoleTeam as O, loadConsoleEnvStage as P, removeConsoleMember as R, deleteConsoleEnvValue as S, earlyConsoleTeam as T, revokeConsoleApiKey as U, renameConsoleTeam as V, setConsoleEnvValue as W, unlinkConsoleAccountProject as Y, addConsolePasskey as _, ConsoleAccountTeam as a, createConsoleApiKey as b, ConsoleEnvVariable as c, ConsoleSignInState as d, ConsoleTeamDetails as f, accountAppStatusLabels as g, acceptConsoleInvitation as h, ConsoleAccountProject as i, listConsoleApiKeys as j, linkConsoleAccountProject as k, ConsolePasskey as l, ConsoleTeamMember as m, ConsoleAccountAppStatus as n, ConsoleApiKey as o, ConsoleTeamInvitation as p, signUpWithPasskey as q, ConsoleAccountCheck as r, ConsoleEnvStage as s, ConsoleAccount as t, ConsoleSignInMethods as u, cancelConsoleInvitation as v, earlyConsoleSignInState as w, createConsoleTeam as x, checkConsoleAccountProject as y, renameConsoleAccount as z };
@@ -1,20 +1,20 @@
1
- import { t as invariant } from "./invariant-DolT9EEx.js";
2
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
3
- import { d as consoleRequest, h as withConsoleAccess, i as consoleAccessInvoker } from "./access-BC9HtX_M.js";
4
- import { t as consoleHttpError } from "./http-error-Bs6e8_-8.js";
5
- import { a as consoleRequestJSON, l as setConsoleResponseStatus, o as consoleRequestURL, t as assertConsoleRequest } from "./request-CMA2UKKq.js";
6
- import { t as getConsoleBlob } from "./blob-BcgsZtqM.js";
7
- import { t as consoleAttachmentRequestBytes } from "./limits-BUlwWYQE.js";
8
- import { a as decodeAgentRouteParam, o as encodeAgentRouteParam } from "./console-route-CM2G5hiC.js";
9
- import { o as getConsoleAgentCapabilities, r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "./agents-B76RICcy.js";
10
- import { t as agentConsole } from "./server-W0c79AYZ.js";
11
- import { n as vitehubOwnedPrefix } from "./owned-paths-BnjT0FhU.js";
1
+ import { t as getConsoleBlob } from "./blob-eH6j0AQj.js";
2
+ import { t as consoleHttpError } from "./http-error-BorAxJYM.js";
3
+ import { n as vitehubOwnedPrefix } from "./owned-paths-MjjDftBn.js";
4
+ import { t as invariant } from "./invariant-Dj2R1eMr.js";
5
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
6
+ import { a as decodeAgentRouteParam, o as encodeAgentRouteParam } from "./console-route-DbdnLkkF.js";
7
+ import { t as consoleAttachmentRequestBytes } from "./limits-BLo31qDR.js";
8
+ import { t as agentConsole } from "./server-DsOEa4_A.js";
9
+ import { o as getConsoleAgentCapabilities, r as consoleAgentInvokerProfiles, s as getConsoleAgentDefinition } from "./agents-Cz_uhhov.js";
10
+ import { d as consoleRequest, h as withConsoleAccess, i as consoleAccessInvoker } from "./access-BBHk9b5P.js";
11
+ import { a as consoleRequestJSON, l as setConsoleResponseStatus, o as consoleRequestURL, t as assertConsoleRequest } from "./request-CQ8TkHLh.js";
12
12
  import { agentInvocationId, createMessage, deserializeMessages, isAttachmentPart, startAgentInvocation } from "@vite-hub/agent";
13
13
  import * as v from "valibot";
14
14
  import { getStandardContext } from "@vite-hub/runtime/internal/h3";
15
15
  import { createExecutionContext } from "@vite-hub/runtime";
16
16
  import { createRuntimeWaitUntilController } from "@vite-hub/runtime/internal/context";
17
- //#region src/console/runtime/server/attachment-cleanup.ts
17
+ // src/console/runtime/server/attachment-cleanup.ts
18
18
  const consolePrefix = `${vitehubOwnedPrefix}console/`;
19
19
  const consoleAttachmentPrefix = `${consolePrefix}attachments/`;
20
20
  const consoleAttachmentCleanupPrefix = `${consolePrefix}cleanup/`;
@@ -157,8 +157,7 @@ async function isConsoleAttachmentPendingCleanup(storage, id) {
157
157
  }
158
158
  return false;
159
159
  }
160
- //#endregion
161
- //#region src/console/runtime/server/attachments.ts
160
+ // src/console/runtime/server/attachments.ts
162
161
  const uploadSchema = v.object({ files: v.pipe(v.array(v.object({
163
162
  url: v.string(),
164
163
  filename: v.optional(v.string(), "image")
@@ -279,8 +278,7 @@ async function inputMessage(prompt, attachments, fresh = /* @__PURE__ */ new Set
279
278
  }] : [], ...parts]
280
279
  });
281
280
  }
282
- //#endregion
283
- //#region src/console/runtime/server/agent-invocations.post.ts
281
+ // src/console/runtime/server/agent-invocations.post.ts
284
282
  const allowedInputKeys = /* @__PURE__ */ new Set([
285
283
  "prompt",
286
284
  "invokerProfileId",
@@ -420,5 +418,4 @@ const guardedHandler = withConsoleAccess(agentInvocationsHandler, {
420
418
  section: "agents",
421
419
  write: true
422
420
  });
423
- //#endregion
424
421
  export { guardedHandler as default };
@@ -0,0 +1 @@
1
+ export { s as getConsoleAgentDefinition, c as getConsoleAgents } from "./agents-Cz_uhhov.js";
@@ -1,10 +1,10 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
2
- import { a as resolveConsoleSuppliedInvocations, i as resolveConsoleInvocations, r as markConsoleSuppliedInvocations } from "./internal-BreyUsQ6.js";
3
- import { r as installConsoleInvocations } from "./invocations-6jxqLkGY.js";
1
+ import { a as resolveConsoleSuppliedInvocations, i as resolveConsoleInvocations, r as markConsoleSuppliedInvocations } from "./internal-0C_CC601.js";
2
+ import { r as installConsoleInvocations } from "./invocations-8NThe8Bx.js";
3
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
4
4
  import * as v from "valibot";
5
5
  import { agentInvocationsDisabledKey, agentInvocationsFallbackKey, installAgentInvocationsOverride, resolveDefaultAgentInvocations } from "@vite-hub/agent/invocations/app";
6
6
  import { markDiscoveredAgentName } from "@vite-hub/agent/server/internal";
7
- //#region src/console/runtime/server/agents.ts
7
+ // src/console/runtime/server/agents.ts
8
8
  const consoleAgentsKey = Symbol.for("vitehub.console.agents");
9
9
  const consoleAgentDefinitionsKey = Symbol.for("vitehub.console.agent-definitions");
10
10
  const consoleInvokeEnabledKey = Symbol.for("vitehub.console.invoke-enabled");
@@ -119,5 +119,4 @@ function consoleAgentInvokerProfiles(agent) {
119
119
  return [resolved];
120
120
  });
121
121
  }
122
- //#endregion
123
122
  export { consoleInvokeEnabledKey as a, getConsoleAgents as c, consoleAgentsKey as i, installConsoleAgentDefinitions as l, consoleAgentDefinitionsKey as n, getConsoleAgentCapabilities as o, consoleAgentInvokerProfiles as r, getConsoleAgentDefinition as s, consoleAgentCapabilitiesKey as t, installConsoleAgents as u };
@@ -1,6 +1,5 @@
1
1
  import { AgentInput, AgentInvocations } from "@vite-hub/agent";
2
2
  import { RuntimeCapabilities } from "@vite-hub/runtime";
3
- //#region src/console/runtime/server/agents.d.ts
4
3
  type ConsoleAgentDefinitionEntry = {
5
4
  definition: unknown;
6
5
  fallbackName: string;
@@ -25,5 +24,4 @@ interface ConsoleAgentInvokerProfile {
25
24
  label?: string;
26
25
  }
27
26
  declare function consoleAgentInvokerProfiles(agent: AgentInput): ConsoleAgentInvokerProfile[];
28
- //#endregion
29
27
  export { installConsoleAgents as i, getConsoleAgents as n, installConsoleAgentDefinitions as r, consoleAgentInvokerProfiles as t };
@@ -1,3 +1,2 @@
1
- import server_default from "@vite-hub/auth/server";
1
+ export { default } from "@vite-hub/auth/server";
2
2
  export * from "@vite-hub/auth/server";
3
- export { server_default as default };
@@ -1,10 +1,9 @@
1
- import { r as OperationContext } from "./operations-TTjL_7Zc.js";
2
- import { n as ConsoleDiagnosticCode } from "./diagnostics-CjGiniKb.js";
3
- import { t as ConsoleRequestEvent } from "./request-D7h3SQ92.js";
4
- import { o as ConsoleAccess } from "./access-policy-DhsEACna.js";
1
+ import { r as OperationContext } from "./operations-DgFhA1WE.js";
2
+ import { o as ConsoleAccess } from "./access-policy-CUbJLvlR.js";
3
+ import { n as ConsoleDiagnosticCode } from "./diagnostics-BXxPggRw.js";
4
+ import { t as ConsoleRequestEvent } from "./request-BC_krbEr.js";
5
5
  import { Result, ResultError } from "@vite-hub/runtime";
6
6
  import { AuthConsole, AuthConsoleErrorCode, AuthConsoleMutation } from "@vite-hub/auth/console-runtime";
7
- //#region src/console/runtime/server/tickets.d.ts
8
7
  /**
9
8
  * One-time tickets open a page of the app in the browser for the person who called the Console. Content preview and
10
9
  * impersonation need the app origin: a frame of the page, or the app session cookie. A signed operation, such as
@@ -95,8 +94,6 @@ declare function seeOther(location: string, headers?: Headers): Response;
95
94
  * redirect. The route takes the ticket out of the store first, so a ticket works once even when it fails later.
96
95
  */
97
96
  declare function redeemConsoleTicket(event: ConsoleRequestEvent): Promise<Response>;
98
- //#endregion
99
- //#region src/console/runtime/server/auth.d.ts
100
97
  /** An Auth Console failure as the error of an operation: its code, why, fix, and the HTTP status of the code. */
101
98
  declare function authConsoleFailure(error: ResultError<AuthConsoleErrorCode>): Error;
102
99
  type AuthOperationContext = Omit<OperationContext, "access"> & {
@@ -116,5 +113,4 @@ declare function runAuthConsoleAction(context: AuthOperationContext, mutation: A
116
113
  * to the person who asked. See `tickets.ts`.
117
114
  */
118
115
  declare function issueImpersonationTicket(context: AuthOperationContext, userId?: string): Promise<ConsoleTicket>;
119
- //#endregion
120
116
  export { setConsoleTicketStore as C, seeOther as S, consoleRecordStore as _, runAuthConsoleRead as a, issueConsoleTicket as b, ConsoleTicketPurpose as c, appBase as d, appOrigin as f, consoleInvitePrefix as g, base64url as h, runAuthConsoleAction as i, ConsoleTicketRecord as l, authFailure as m, authConsoleFailure as n, ConsoleRecordStore as o, authConsole as p, issueImpersonationTicket as r, ConsoleTicket as s, AuthOperationContext as t, ConsoleTicketStore as u, consoleTicketLifetime as v, ticketProblem as w, redeemConsoleTicket as x, consoleTicketParameter as y };
@@ -1,4 +1,4 @@
1
- //#region src/console/runtime/auth-operations.ts
1
+ // src/console/runtime/auth-operations.ts
2
2
  /**
3
3
  * The Auth management operations of the Console. Each read and each action of the Auth section is one operation on the
4
4
  * Console RPC. Impersonation sets the app session cookie, so its operations return a one-time link that the browser
@@ -30,5 +30,4 @@ const authConsoleImpersonationOperations = {
30
30
  start: "auth.impersonate",
31
31
  stop: "auth.stop-impersonating"
32
32
  };
33
- //#endregion
34
33
  export { authConsoleImpersonationOperations as n, authConsoleReadOperations as r, authConsoleActionOperations as t };
@@ -1,5 +1,4 @@
1
1
  import { AccessAuthorizationContext } from "@vite-hub/runtime";
2
- //#region ../internal/src/console-signature.d.ts
3
2
  /** The person that the Console signs for. The app gives it to `console.authorize` and to operations as the user. */
4
3
  interface ConsoleCallerUser {
5
4
  id: string;
@@ -7,8 +6,6 @@ interface ConsoleCallerUser {
7
6
  email?: string;
8
7
  emailVerified?: true;
9
8
  }
10
- //#endregion
11
- //#region src/console/auth-types.d.ts
12
9
  /** The signed-in user that the Console gives `console.authorize`. */
13
10
  type ConsoleUser = AccessAuthorizationContext<unknown, false>["user"];
14
11
  /** The request that `console.authorize` checks with `console: { auth: false }` in development. It has no signature and no user. */
@@ -87,5 +84,4 @@ type ConsoleAuthorizeResult = boolean | Response | {
87
84
  };
88
85
  /** Decides whether one Console request may continue, and which Console sections it may use. */
89
86
  type ConsoleAuthorize = (context: ConsoleAuthorizeContext) => ConsoleAuthorizeResult | Promise<ConsoleAuthorizeResult>;
90
- //#endregion
91
87
  export { ConsoleOpenAuthorizeContext as a, ConsoleSignedConsoleAuthorizeContext as c, ConsoleAuthorizeResult as i, ConsoleUser as l, ConsoleAuthorize as n, ConsolePageAuthorizeContext as o, ConsoleAuthorizeContext as r, ConsoleSignedCliAuthorizeContext as s, ConsoleAgentAuthorizeContext as t };
package/dist/bin.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
3
- import { i as importOptionalOwner, l as requireOptionalOwner, t as assertFeaturePackages } from "./optional-owners-O6sj4uoj.js";
4
- import { t as loadViteHubCliConfig } from "./cli-config-FPHk1nbC.js";
2
+ import { i as importOptionalOwner, l as requireOptionalOwner, t as assertFeaturePackages } from "./optional-owners-DAfShdgV.js";
3
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
4
+ import { t as loadViteHubCliConfig } from "./cli-config-BX8H4ZCo.js";
5
5
  import { runViteHubCliEntrypoint } from "@vite-hub/cli";
6
6
  import { resolve } from "node:path";
7
7
  import { parseArgs } from "node:util";
8
8
  import { secretCliFeatures } from "@vite-hub/env/cli";
9
- //#region src/migrate-cli.ts
9
+ // src/migrate-cli.ts
10
10
  const usage = "vitehub migrate [dir] [--dry-run]";
11
11
  /** Silent Result failures are not syntax, so no codemod finds them. The Doctor rule does. */
12
12
  const resultCheck = "Run Vite Doctor. Rule VHUB0003 lists Result calls whose error the code drops, such as `await email.send(...)` as a statement.";
@@ -61,8 +61,7 @@ function createMigrateCliNamespace() {
61
61
  name: "migrate"
62
62
  };
63
63
  }
64
- //#endregion
65
- //#region src/sandbox-cli.ts
64
+ // src/sandbox-cli.ts
66
65
  const serveUsage = "vitehub sandbox serve --user <name> --host-key <file> --authorized-key <file> [--host <address>] [--port <port>] [--cwd <dir>] [--drain-timeout <ms>]";
67
66
  const checkUsage = "vitehub sandbox check --user <name> --identity-file <file> [--host-key-file <file> | --known-hosts-file <file>] [--host <address>] [--port <port>] [--driver <codex|claude-code>] [--timeout <ms>]";
68
67
  const maxTimeoutMs = 2147483647;
@@ -280,8 +279,7 @@ function createSandboxCliNamespace() {
280
279
  name: "sandbox"
281
280
  };
282
281
  }
283
- //#endregion
284
- //#region src/bin.ts
282
+ // src/bin.ts
285
283
  const agentRuntimeFeatures = {
286
284
  features: [
287
285
  {
@@ -292,7 +290,7 @@ const agentRuntimeFeatures = {
292
290
  name: "invocations",
293
291
  run: async (args, context) => {
294
292
  const cli = requireOptionalOwner(await importOptionalOwner("@vite-hub/agent", () => import("@vite-hub/agent/internal/agent-invocations-cli")), "agent");
295
- const { readAgentJournalPostgres, readAgentJournalStateUrl } = await import("./runtime-feature-guard-CuyPVGj9.js");
293
+ const { readAgentJournalPostgres, readAgentJournalStateUrl } = await import("./runtime-feature-guard-DpUn4Oxc.js");
296
294
  const stateUrl = await readAgentJournalStateUrl(context.rootDir, context.env);
297
295
  return cli.runAgentInvocationsCli(args, {
298
296
  ...context,
@@ -329,7 +327,7 @@ runViteHubCliEntrypoint({
329
327
  loadConfig: (root, command, mode) => loadViteHubCliConfig(root, command, mode, { prepareNuxtTypes: process.argv[2] === "email" && process.argv[3] === "preview" }),
330
328
  runtimeFeatureGuard: async (namespace, feature, cwd) => {
331
329
  if (namespace !== "agent" || feature !== "emulator" && feature !== "invocations" && feature !== "state") return true;
332
- const { isAgentCliEnabled, isAgentEmulatorStandalone } = await import("./runtime-feature-guard-CuyPVGj9.js");
330
+ const { isAgentCliEnabled, isAgentEmulatorStandalone } = await import("./runtime-feature-guard-DpUn4Oxc.js");
333
331
  if (feature === "emulator") return isAgentEmulatorStandalone(process.argv.slice(4), process.env, cwd);
334
332
  return isAgentCliEnabled(cwd);
335
333
  },
@@ -347,5 +345,4 @@ runViteHubCliEntrypoint({
347
345
  secretRuntimeNamespace
348
346
  ]
349
347
  });
350
- //#endregion
351
348
  export {};
@@ -1,3 +1,2 @@
1
- import nuxt_image_default from "@vite-hub/blob/nuxt-image";
1
+ export { default } from "@vite-hub/blob/nuxt-image";
2
2
  export * from "@vite-hub/blob/nuxt-image";
3
- export { nuxt_image_default as default };
@@ -1,9 +1,7 @@
1
- import { i as ConsoleMediaLibrary, t as ConsoleBlobInspection } from "./internal-Cc9N0shU.js";
1
+ import { i as ConsoleMediaLibrary, t as ConsoleBlobInspection } from "./internal-CKocv79I.js";
2
2
  import { BlobStorage } from "@vite-hub/blob";
3
- //#region src/console/runtime/server/blob.d.ts
4
3
  declare function installConsoleBlob(projectRoot: string, storage: BlobStorage, stores?: readonly string[]): ConsoleBlobInspection;
5
4
  /** The media library of a build with Blob. Throws a 404 Console error in a build without it. */
6
5
  declare function loadConsoleMedia(): Promise<ConsoleMediaLibrary>;
7
6
  declare function getConsoleBlob(): ConsoleBlobInspection;
8
- //#endregion
9
7
  export { installConsoleBlob as n, loadConsoleMedia as r, getConsoleBlob as t };
@@ -1,12 +1,12 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
2
- import { n as consoleState } from "./internal-BreyUsQ6.js";
3
- import { i as consoleRequestError } from "./request-CMA2UKKq.js";
4
- //#region src/console/runtime/server/blob.ts
1
+ import { n as consoleState } from "./internal-0C_CC601.js";
2
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
3
+ import { i as consoleRequestError } from "./request-CQ8TkHLh.js";
4
+ // src/console/runtime/server/blob.ts
5
5
  function installConsoleBlob(projectRoot, storage, stores = ["default"]) {
6
6
  const installedStores = [...new Set(stores.filter((store) => store.length > 0))].filter((store) => store !== "default").sort();
7
7
  installedStores.unshift("default");
8
8
  return consoleState().blob = {
9
- ...import.meta.viteHubConsoleDocuments === false ? {} : { media: () => import("./media-D3OfyKni.js") },
9
+ ...import.meta.viteHubConsoleDocuments === false ? {} : { media: () => import("./media-CAKz9yrp.js") },
10
10
  storage,
11
11
  stores: installedStores
12
12
  };
@@ -22,5 +22,4 @@ function getConsoleBlob() {
22
22
  if (!inspection) throw viteHubErrorDiagnostics.VITE_HUB_R0049({ message: "[vitehub] Blob inspection has not been installed for this runtime." });
23
23
  return inspection;
24
24
  }
25
- //#endregion
26
25
  export { installConsoleBlob as n, loadConsoleMedia as r, getConsoleBlob as t };
@@ -1,4 +1,4 @@
1
- //#region ../internal/src/runtime/request-log.ts
1
+ // ../internal/src/runtime/request-log.ts
2
2
  function isRequestLog(value) {
3
3
  return value !== null && typeof value === "object" && typeof Reflect.get(value, "set") === "function" && typeof Reflect.get(value, "warn") === "function" && typeof Reflect.get(value, "error") === "function";
4
4
  }
@@ -19,8 +19,6 @@ function requestLog(input) {
19
19
  * `vitehub()` generates use the same key.
20
20
  */
21
21
  const evlogBridgeKey = "vitehub.evlog";
22
- //#endregion
23
- //#region src/_internal/browser-error-limits.ts
22
+ // src/_internal/browser-error-limits.ts
24
23
  const browserErrorMaxBytes = 16384;
25
- //#endregion
26
24
  export { evlogBridgeKey as n, requestLog as r, browserErrorMaxBytes as t };
@@ -1,5 +1,3 @@
1
- import { n as AnyOperation } from "../operations-TTjL_7Zc.js";
2
- //#region src/cache/operations.d.ts
1
+ import { n as AnyOperation } from "../operations-DgFhA1WE.js";
3
2
  /** The `cache.*` operations: list, get, and delete. The Console, `vitehub cache`, and agents run them. */
4
- export declare const cacheOperations: readonly AnyOperation[];
5
- //#endregion
3
+ export declare const cacheOperations: readonly AnyOperation[];
@@ -1,7 +1,7 @@
1
- import { t as defineOperation } from "../operation-definition-DxjKcCGm.js";
1
+ import { t as defineOperation } from "../operation-definition-DTpNvLd8.js";
2
2
  import * as v from "valibot";
3
- //#region src/cache/operations.ts
4
- const runtime = () => import("../runtime-B-46Bawt.js");
3
+ // src/cache/operations.ts
4
+ const runtime = () => import("../runtime-CRJsqVTa.js");
5
5
  function defineCacheOperation(definition) {
6
6
  return defineOperation({
7
7
  ...definition,
@@ -47,5 +47,4 @@ const cacheOperations = [
47
47
  run: async (input) => (await runtime()).deleteCache(input)
48
48
  })
49
49
  ];
50
- //#endregion
51
50
  export { cacheOperations };
package/dist/cache.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { EventHandler, H3Event } from "nitro/h3";
2
2
  import { CachedFunctionOptions as CachedFunctionOptions$1, CachedHandlerOptions as CachedHandlerOptions$1 } from "nitro/types";
3
3
  import { CachedFunction } from "ocache";
4
- //#region src/cache.d.ts
5
4
  /** Tags for one cache entry: a list, or a function of the cached function's arguments. */
6
5
  export type CacheTags<ArgsT extends unknown[]> = readonly string[] | ((...args: ArgsT) => readonly string[] | Promise<readonly string[]>);
7
6
  /** Nitro's cached function options, plus `tags` and `staleIfError`. */
@@ -24,5 +23,4 @@ export declare function defineCachedFunction<T, ArgsT extends unknown[] = unknow
24
23
  /** Like Nitro's `defineCachedHandler()`, with `tags`. */
25
24
  export declare function defineCachedHandler(handler: EventHandler, opts?: CachedHandlerOptions): EventHandler;
26
25
  /** Makes the next call of every cached function or handler with one of these tags run again. */
27
- export declare function invalidateTag(tags: string | readonly string[]): Promise<void>;
28
- //#endregion
26
+ export declare function invalidateTag(tags: string | readonly string[]): Promise<void>;
package/dist/cache.js CHANGED
@@ -1,7 +1,7 @@
1
- import { t as viteHubErrorDiagnostics } from "./error-diagnostics-B1yAIaSn.js";
1
+ import { t as viteHubErrorDiagnostics } from "./error-diagnostics-CBtvqI30.js";
2
2
  import { defineCachedFunction as defineCachedFunction$1, defineCachedHandler as defineCachedHandler$1 } from "nitro/cache";
3
3
  import { defineHandler, toResponse } from "nitro/h3";
4
- //#region src/cache.ts
4
+ // src/cache.ts
5
5
  const tagHeader = "x-vitehub-cache-tags";
6
6
  /** Like Nitro's `defineCachedFunction()`, with `tags` and `staleIfError`. */
7
7
  function defineCachedFunction(fn, opts = {}) {
@@ -215,5 +215,4 @@ function tagGeneration(create) {
215
215
  return current;
216
216
  };
217
217
  }
218
- //#endregion
219
218
  export { defineCachedFunction, defineCachedHandler, invalidateTag };