vite-hub 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/README.md +9 -8
  2. package/dist/{access-BBHk9b5P.js → access-CUFHPi8T.js} +9 -133
  3. package/dist/{access-policy-CUbJLvlR.d.ts → access-DkBck8Vu.d.ts} +16 -16
  4. package/dist/{account-CoAO1F8G.d.ts → account-DNr8fHcQ.d.ts} +1 -1
  5. package/dist/{console/runtime/server → agent/console}/agents.get.d.ts +1 -1
  6. package/dist/{console/runtime/server → agent/console}/agents.get.js +3 -3
  7. package/dist/{console/runtime/server → agent/console}/channel-replay.d.ts +2 -2
  8. package/dist/{console/runtime/server → agent/console}/channel-replay.js +6 -6
  9. package/dist/{console/runtime/server → agent/console}/invocation-capabilities.get.js +4 -4
  10. package/dist/{console/runtime/server → agent/console}/invocation-workspace.get.d.ts +3 -3
  11. package/dist/{console/runtime/server → agent/console}/invocation-workspace.get.js +6 -6
  12. package/dist/{console/runtime/server → agent/console}/invocation.get.d.ts +4 -4
  13. package/dist/{console/runtime/server → agent/console}/invocation.get.js +8 -8
  14. package/dist/{console/runtime/server → agent/console}/invocations.get.js +5 -5
  15. package/dist/{console/runtime/server/usage.get.d.ts → agent/console/invocations.usage.d.ts} +2 -4
  16. package/dist/agent/console/invocations.usage.js +51 -0
  17. package/dist/agent/console/operations.d.ts +6 -0
  18. package/dist/agent/console/operations.js +247 -0
  19. package/dist/{console/runtime/server → agent/console}/status.get.d.ts +2 -2
  20. package/dist/{console/runtime/server → agent/console}/status.get.js +6 -6
  21. package/dist/{server-DsOEa4_A.js → agent-console-CHsLxKk_.js} +3 -2
  22. package/dist/agent-console-FmaYpVv-.d.ts +14 -0
  23. package/dist/{agent-invocations.post-BAC1aHnG.js → agent-invocations.post-CF5anHY6.js} +8 -8
  24. package/dist/{agents-BClUWOj7.js → agents-DBm_PJie.js} +1 -1
  25. package/dist/{agents-Cz_uhhov.js → agents-DXLHsE7x.js} +2 -2
  26. package/dist/auth/console/auth.d.ts +25 -0
  27. package/dist/{console/runtime/server → auth/console}/auth.js +11 -12
  28. package/dist/auth/console/operations.d.ts +3 -0
  29. package/dist/auth/console/operations.js +135 -0
  30. package/dist/{auth-operations-arLIY2_2.js → auth-operations-BKqoX8Ua.js} +3 -3
  31. package/dist/{auth-types-B4mq4YhK.d.ts → auth-types-Cotn7406.d.ts} +4 -17
  32. package/dist/bin.js +3 -3
  33. package/dist/blob/console/operations.d.ts +3 -0
  34. package/dist/blob/console/operations.js +44 -0
  35. package/dist/{blob-eH6j0AQj.js → blob-iw8pWQ6o.js} +2 -2
  36. package/dist/{blob-_TtxDb-t.d.ts → blob-uNin0_TV.d.ts} +1 -1
  37. package/dist/cache/operations.js +1 -1
  38. package/dist/console/auth-types.d.ts +2 -2
  39. package/dist/console/auth.d.ts +2 -2
  40. package/dist/console/runtime/auth-operations.d.ts +3 -3
  41. package/dist/console/runtime/auth-operations.js +1 -1
  42. package/dist/console/runtime/client/account.d.ts +1 -1
  43. package/dist/console/runtime/client/account.js +2 -2
  44. package/dist/console/runtime/client/auth-management.ts +6 -6
  45. package/dist/console/runtime/client/blob-media.js +2 -2
  46. package/dist/console/runtime/client/comment-thread.js +1 -1
  47. package/dist/console/runtime/client/content-heads.js +1 -1
  48. package/dist/console/runtime/client/documents.d.ts +1 -1
  49. package/dist/console/runtime/client/documents.js +1 -1
  50. package/dist/console/runtime/client/invocation.js +1 -1
  51. package/dist/console/runtime/client/live.d.ts +1 -1
  52. package/dist/console/runtime/client/mcp-client.d.ts +4 -4
  53. package/dist/console/runtime/client/mcp-client.js +4 -6
  54. package/dist/console/runtime/client/media-library.js +1 -1
  55. package/dist/console/runtime/client/media-uploads.js +1 -1
  56. package/dist/console/runtime/client/operation-view.js +1 -1
  57. package/dist/console/runtime/client/presence.d.ts +1 -1
  58. package/dist/console/runtime/client/problem.d.ts +1 -1
  59. package/dist/console/runtime/client/problem.js +2 -2
  60. package/dist/console/runtime/client/project-link.d.ts +1 -1
  61. package/dist/console/runtime/client/project-link.js +1 -1
  62. package/dist/console/runtime/client/project-session.d.ts +2 -2
  63. package/dist/console/runtime/client/project-session.js +1 -1
  64. package/dist/console/runtime/client/publish.d.ts +1 -1
  65. package/dist/console/runtime/client/rate-limit.js +1 -1
  66. package/dist/console/runtime/client/read-only.d.ts +1 -1
  67. package/dist/console/runtime/client/read-only.js +1 -1
  68. package/dist/console/runtime/client/request.d.ts +2 -2
  69. package/dist/console/runtime/client/request.js +1 -1
  70. package/dist/console/runtime/client/schedule-run.js +1 -1
  71. package/dist/console/runtime/client/sections.d.ts +1 -1
  72. package/dist/console/runtime/client/sections.js +1 -1
  73. package/dist/console/runtime/client/site-access.d.ts +48 -9
  74. package/dist/console/runtime/client/site-access.js +18 -11
  75. package/dist/console/runtime/client/site-link.d.ts +2 -0
  76. package/dist/console/runtime/client/site-link.js +1 -0
  77. package/dist/console/runtime/client/workflow.js +1 -1
  78. package/dist/console/runtime/components/console-auth-detail.vue +1 -1
  79. package/dist/console/runtime/components/console-auth-event-list.vue +1 -0
  80. package/dist/console/runtime/components/console-document-editor.vue +3 -4
  81. package/dist/console/runtime/components/console-usage.vue +2 -2
  82. package/dist/console/runtime/diagnostics.ts +14 -56
  83. package/dist/console/runtime/mcp-client.d.ts +2 -2
  84. package/dist/console/runtime/mcp-client.js +1 -1
  85. package/dist/console/runtime/operation-loader.d.ts +1 -0
  86. package/dist/console/runtime/operation-loader.js +10 -0
  87. package/dist/console/runtime/page-tool/page-tool.js +2 -2
  88. package/dist/console/runtime/sections.d.ts +2 -2
  89. package/dist/console/runtime/sections.js +1 -1
  90. package/dist/console/runtime/server/access-policy.d.ts +1 -1
  91. package/dist/console/runtime/server/agent-console.d.ts +2 -0
  92. package/dist/console/runtime/server/agent-console.js +1 -0
  93. package/dist/console/runtime/server/blob.d.ts +1 -1
  94. package/dist/console/runtime/server/blob.js +1 -1
  95. package/dist/console/runtime/server/database.d.ts +1 -1
  96. package/dist/console/runtime/server/definitions.get.d.ts +2 -2
  97. package/dist/console/runtime/server/definitions.get.js +2 -2
  98. package/dist/console/runtime/server/definitions.js +1 -1
  99. package/dist/console/runtime/server/documents.d.ts +2 -2
  100. package/dist/console/runtime/server/documents.js +2 -2
  101. package/dist/console/runtime/server/entry-site-access.d.ts +3 -0
  102. package/dist/console/runtime/server/entry-site-access.js +4 -0
  103. package/dist/console/runtime/server/entry.d.ts +3 -0
  104. package/dist/console/runtime/server/entry.js +4 -0
  105. package/dist/console/runtime/server/operation-contributions.d.ts +1 -1
  106. package/dist/console/runtime/server/operation-contributions.js +1 -1
  107. package/dist/console/runtime/server/pill.d.ts +45 -0
  108. package/dist/console/runtime/server/pill.js +62 -0
  109. package/dist/console/runtime/server/rpc.d.ts +5 -8
  110. package/dist/console/runtime/server/rpc.js +13 -20
  111. package/dist/console/runtime/server/runtime.d.ts +1 -1
  112. package/dist/console/runtime/server/runtime.js +1 -1
  113. package/dist/console/runtime/server/sections.d.ts +4 -4
  114. package/dist/console/runtime/server/sections.get.d.ts +1 -1
  115. package/dist/console/runtime/server/sections.get.js +4 -4
  116. package/dist/console/runtime/server/sections.js +3 -3
  117. package/dist/console/runtime/server/setup.d.ts +4 -4
  118. package/dist/console/runtime/server/setup.js +3 -3
  119. package/dist/console/runtime/server/site-access-operation.d.ts +7 -0
  120. package/dist/console/runtime/server/site-access-operation.js +36 -0
  121. package/dist/console/runtime/server/site-actions.d.ts +73 -0
  122. package/dist/console/runtime/server/site-actions.js +105 -0
  123. package/dist/console/runtime/server/site-entry.d.ts +16 -7
  124. package/dist/console/runtime/server/site-entry.js +59 -42
  125. package/dist/console/runtime/server/site-visitor.d.ts +17 -0
  126. package/dist/console/runtime/server/site-visitor.js +1 -0
  127. package/dist/console/runtime/server/site.d.ts +27 -0
  128. package/dist/console/runtime/server/site.js +1 -0
  129. package/dist/console/server.d.ts +7 -19
  130. package/dist/console/server.js +6 -6
  131. package/dist/console-signature--55DIKf2.js +237 -0
  132. package/dist/content/console/operations.d.ts +3 -0
  133. package/dist/content/console/operations.js +62 -0
  134. package/dist/{console/runtime/server → database/console}/database.get.d.ts +1 -1
  135. package/dist/{console/runtime/server → database/console}/database.get.js +4 -4
  136. package/dist/database/console/operations.d.ts +3 -0
  137. package/dist/database/console/operations.js +49 -0
  138. package/dist/{database-CPjZ3L0g.d.ts → database-yFezh5U1.d.ts} +1 -1
  139. package/dist/{definitions-M7i2p8SR.js → definitions-DGo2rNQ9.js} +1 -1
  140. package/dist/{dev-peer-DBq-isgi.js → dev-peer-CRYp01PE.js} +1 -219
  141. package/dist/dev-peer-CX5C9243.js +1 -0
  142. package/dist/{diagnostics-B2cqlCSz.js → diagnostics-DLHqjKGe.js} +2 -8
  143. package/dist/diagnostics-DgGKvWzF.d.ts +7 -0
  144. package/dist/doctor.js +2 -2
  145. package/dist/{documents-LtkKCxtu.d.ts → documents-A-7Ho0g0.d.ts} +11 -11
  146. package/dist/{documents-Ck_iub9w.js → documents-BduuZjm3.js} +3 -2
  147. package/dist/{documents-DxK0tdjA.d.ts → documents-CApMRd4o.d.ts} +2 -3
  148. package/dist/{documents-BOYwZ5g4.js → documents-D6ueeoUR.js} +12 -15
  149. package/dist/durability/operations.js +1 -1
  150. package/dist/{console/runtime/server → env/console}/env.get.d.ts +2 -2
  151. package/dist/{console/runtime/server → env/console}/env.get.js +7 -7
  152. package/dist/env/console/operations.d.ts +3 -0
  153. package/dist/env/console/operations.js +12 -0
  154. package/dist/env/vite.d.ts +1 -0
  155. package/dist/env/vite.js +2 -0
  156. package/dist/index.d.ts +1 -1
  157. package/dist/index.js +2 -2
  158. package/dist/{internal-CKocv79I.d.ts → internal-BRNf11h3.d.ts} +14 -4
  159. package/dist/{invocation-page-undo-BEi-rO0Q.js → invocation-page-undo-DHbXczWY.js} +6 -4
  160. package/dist/invocations-B60XWNES.js +45 -0
  161. package/dist/{console/runtime/server → logs/console}/logs.get.d.ts +3 -3
  162. package/dist/{console/runtime/server → logs/console}/logs.get.js +7 -7
  163. package/dist/logs/console/operations.d.ts +3 -0
  164. package/dist/logs/console/operations.js +23 -0
  165. package/dist/loopback-Bl9Cvj1k.js +139 -0
  166. package/dist/mcp/eval.d.ts +1 -0
  167. package/dist/mcp/eval.js +2 -0
  168. package/dist/{mcp-client-Q2XbUXuP.d.ts → mcp-client-uXVvS7RL.d.ts} +4 -6
  169. package/dist/{media-CAKz9yrp.js → media-CNwnh6CG.js} +5 -5
  170. package/dist/{media-library-BDX89xXA.js → media-library-DTC8TLsZ.js} +1 -1
  171. package/dist/nuxt.d.ts +1 -1
  172. package/dist/nuxt.js +108 -68
  173. package/dist/{operation-contributions-D10pjkJF.js → operation-contributions-BU10k2QS.js} +7 -6
  174. package/dist/{operation-contributions-BCcQVlGb.d.ts → operation-contributions-xwjDzj28.d.ts} +5 -4
  175. package/dist/{operation-definition-DTpNvLd8.js → operation-definition-D04Rdjbe.js} +2 -1
  176. package/dist/operation-modules-BUXlwjvd.js +1 -0
  177. package/dist/operation-modules-DHWkPcfS.js +139 -0
  178. package/dist/operations-D-7ljPqw.js +1 -0
  179. package/dist/{operations-CD_mu_Ww.js → operations-DksTrRMb.js} +1 -1
  180. package/dist/operations-byxiZ2R2.js +113 -0
  181. package/dist/{optional-owners-DAfShdgV.js → optional-owners-Cypch7V3.js} +0 -1
  182. package/dist/page-tools-BeZrtn4S.js +46 -0
  183. package/dist/page-tools-Chk8Gm9x.d.ts +23 -0
  184. package/dist/page-tools-shared-BLPidmCi.js +39 -0
  185. package/dist/{plugins-BpiTVULl.d.ts → plugins-BmkOoyIh.d.ts} +22 -9
  186. package/dist/{plugins-H6-MQrsn.js → plugins-DfXcUnzN.js} +248 -310
  187. package/dist/{project-DKBIHOf4.d.ts → project-B2qWt8on.d.ts} +2 -7
  188. package/dist/{project-BxyyclTE.js → project-_juMSuAS.js} +5 -7
  189. package/dist/{project-link-CeS0T8Pr.js → project-link-CJbCkOlC.js} +3 -3
  190. package/dist/{project-link-isfdRO3Q.d.ts → project-link-Ck3vuq9w.d.ts} +1 -1
  191. package/dist/{project-session--GN7MduT.js → project-session-8pN7pRo8.js} +4 -4
  192. package/dist/{request-CQ8TkHLh.js → request-D769eiBL.js} +2 -2
  193. package/dist/{request-BC_krbEr.d.ts → request-DYmjLTqP.d.ts} +1 -1
  194. package/dist/{request-CJCPyu2B.d.ts → request-DkoE0b2h.d.ts} +10 -2
  195. package/dist/{request-Cl68STwT.js → request-XFVx7CGC.js} +24 -2
  196. package/dist/routes-D02vxUSg.js +26 -0
  197. package/dist/{runtime-CyPZMiyK.js → runtime-DA7HJe10.js} +1 -1
  198. package/dist/{runtime-Cf8R1Ztr.d.ts → runtime-DGvimtvc.d.ts} +1 -1
  199. package/dist/{runtime-feature-guard-DpUn4Oxc.js → runtime-feature-guard-BKAMRZzM.js} +1 -1
  200. package/dist/search-jgMrZJXR.js +84 -0
  201. package/dist/{sections-BiCOk9qP.js → sections-AUGy9EkY.js} +1 -6
  202. package/dist/{sections-BTfWK14a.d.ts → sections-BMkFB3S-.d.ts} +1 -1
  203. package/dist/{sections-0qrBvGbf.d.ts → sections-DCoCa4nF.d.ts} +1 -4
  204. package/dist/{sections-DAtgYMVz.d.ts → sections-DjeAUX7o.d.ts} +4 -4
  205. package/dist/{sections-HLxb9MrG.js → sections-ZFAlI4JW.js} +2 -2
  206. package/dist/{sections.get-CGmtYmfu.d.ts → sections.get-BY5dClJY.d.ts} +1 -1
  207. package/dist/{setup-Ca7jtBLS.d.ts → setup-BBnZPziq.d.ts} +4 -7
  208. package/dist/{setup-DQz_i-ee.js → setup-yc3_WKNG.js} +1 -13
  209. package/dist/site-CZCIWsUQ.js +169 -0
  210. package/dist/site-link-Bvo2SxPo.js +58 -0
  211. package/dist/site-link-Dtw8MNVB.d.ts +18 -0
  212. package/dist/site-pages-B6J8U2Nq.js +66 -0
  213. package/dist/site-token-Wa7fhjwg.js +215 -0
  214. package/dist/site-visitor-BkhE2TA0.js +89 -0
  215. package/dist/skills/operations.js +2 -2
  216. package/dist/{skills.get-DAooGWy5.js → skills.get-CW8vc_Hf.js} +3 -3
  217. package/dist/task/operations.js +1 -1
  218. package/dist/usage-DBi7aOhx.js +33 -0
  219. package/dist/{version-CAhBr673.js → version-DUCd7Orc.js} +11 -5
  220. package/dist/workspace/console/operations.d.ts +3 -0
  221. package/dist/workspace/console/operations.js +22 -0
  222. package/dist/{console/runtime/server → workspace/console}/workspace-files.get.d.ts +3 -3
  223. package/dist/{console/runtime/server → workspace/console}/workspace-files.get.js +4 -4
  224. package/package.json +91 -82
  225. package/dist/auth-CeKxL2xp.d.ts +0 -116
  226. package/dist/cloudflare-env-lookup-DcN7pGlv.js +0 -15
  227. package/dist/console/runtime/client/ticket.d.ts +0 -2
  228. package/dist/console/runtime/client/ticket.js +0 -1
  229. package/dist/console/runtime/page/loader.js +0 -135
  230. package/dist/console/runtime/server/auth.d.ts +0 -2
  231. package/dist/console/runtime/server/mcp-client-operations.d.ts +0 -3
  232. package/dist/console/runtime/server/mcp-client-operations.js +0 -137
  233. package/dist/console/runtime/server/page-auth.d.ts +0 -16
  234. package/dist/console/runtime/server/page-auth.js +0 -43
  235. package/dist/console/runtime/server/page-tool.d.ts +0 -2
  236. package/dist/console/runtime/server/page-tool.js +0 -110
  237. package/dist/console/runtime/server/page-tools-route.d.ts +0 -2
  238. package/dist/console/runtime/server/page-tools-route.js +0 -4
  239. package/dist/console/runtime/server/search.get.d.ts +0 -2
  240. package/dist/console/runtime/server/search.get.js +0 -95
  241. package/dist/console/runtime/server/site-session.d.ts +0 -79
  242. package/dist/console/runtime/server/site-session.js +0 -1
  243. package/dist/console/runtime/server/tickets.d.ts +0 -2
  244. package/dist/console/runtime/server/tickets.js +0 -1
  245. package/dist/console/runtime/server/usage.get.js +0 -91
  246. package/dist/console/runtime/site-access.d.ts +0 -2
  247. package/dist/console/runtime/site-access.js +0 -1
  248. package/dist/diagnostics-BXxPggRw.d.ts +0 -9
  249. package/dist/invocations-8NThe8Bx.js +0 -85
  250. package/dist/mcp-client-Bkh-khvr.js +0 -9
  251. package/dist/mcp-client-DiObFpDS.js +0 -1037
  252. package/dist/operations-D7ENc68Y.js +0 -1
  253. package/dist/operations-vRLiH7dh.js +0 -852
  254. package/dist/page-tool-BUnUbuSy.d.ts +0 -67
  255. package/dist/page-tools-BQzwuAHD.js +0 -460
  256. package/dist/page-tools-UwsfvH-B.d.ts +0 -21
  257. package/dist/page-tools-shared-hJcG_xk8.js +0 -125
  258. package/dist/secret-D2KL_o2h.js +0 -43
  259. package/dist/site-access-1JIQjY11.js +0 -292
  260. package/dist/site-access-CUXIbbbR.d.ts +0 -53
  261. package/dist/site-access-CmaZ-oaL.js +0 -17
  262. package/dist/site-access-Cvmjb6aw.js +0 -1
  263. package/dist/site-session-D36fr7Wf.js +0 -297
  264. package/dist/skills/vitehub/SKILL.md +0 -142
  265. package/dist/skills/vitehub/agents/openai.yaml +0 -4
  266. package/dist/skills/vitehub/references/agent-definitions.md +0 -36
  267. package/dist/skills/vitehub/references/bundle.md +0 -57
  268. package/dist/skills/vitehub/references/capabilities-authority.md +0 -30
  269. package/dist/skills/vitehub/references/channels-triggers.md +0 -27
  270. package/dist/skills/vitehub/references/framework-composition.md +0 -29
  271. package/dist/skills/vitehub/references/preview-contract.md +0 -44
  272. package/dist/skills/vitehub/references/primitives/auth.md +0 -14
  273. package/dist/skills/vitehub/references/primitives/blob.md +0 -13
  274. package/dist/skills/vitehub/references/primitives/browser.md +0 -17
  275. package/dist/skills/vitehub/references/primitives/cache.md +0 -13
  276. package/dist/skills/vitehub/references/primitives/channels.md +0 -11
  277. package/dist/skills/vitehub/references/primitives/connections.md +0 -14
  278. package/dist/skills/vitehub/references/primitives/content.md +0 -13
  279. package/dist/skills/vitehub/references/primitives/database.md +0 -15
  280. package/dist/skills/vitehub/references/primitives/email.md +0 -11
  281. package/dist/skills/vitehub/references/primitives/env.md +0 -13
  282. package/dist/skills/vitehub/references/primitives/kv.md +0 -13
  283. package/dist/skills/vitehub/references/primitives/markdown-template.md +0 -13
  284. package/dist/skills/vitehub/references/primitives/queue.md +0 -14
  285. package/dist/skills/vitehub/references/primitives/rate-limit.md +0 -11
  286. package/dist/skills/vitehub/references/primitives/realtime.md +0 -19
  287. package/dist/skills/vitehub/references/primitives/sandbox-task.md +0 -11
  288. package/dist/skills/vitehub/references/primitives/sandbox.md +0 -13
  289. package/dist/skills/vitehub/references/primitives/schedule.md +0 -11
  290. package/dist/skills/vitehub/references/primitives/shell.md +0 -11
  291. package/dist/skills/vitehub/references/primitives/source.md +0 -11
  292. package/dist/skills/vitehub/references/primitives/workflow.md +0 -11
  293. package/dist/skills/vitehub/references/primitives/workspace.md +0 -11
  294. package/dist/skills/vitehub/references/project-patterns.md +0 -19
  295. package/dist/skills/vitehub/references/project-shapes.md +0 -81
  296. package/dist/skills/vitehub/references/proof-recovery.md +0 -31
  297. package/dist/skills/vitehub/references/sandboxes-hosts.md +0 -26
  298. package/dist/skills/vitehub/references/schedules-workflows-invocations.md +0 -28
  299. package/dist/skills/vitehub/references/server-primitives.md +0 -39
  300. package/dist/skills/vitehub/references/workspaces-sources-access.md +0 -26
  301. package/dist/ticket-BFWwevWN.d.ts +0 -12
  302. package/dist/ticket-BwsnryuU.js +0 -30
  303. package/dist/tickets-Cj9_y3gw.js +0 -356
  304. package/dist/usage-BduF04ks.d.ts +0 -20
  305. package/dist/usage-ZV3TBMzE.js +0 -570
  306. package/dist/usage-index-CR_xTrXO.js +0 -334
  307. /package/dist/{console/runtime/server → agent/console}/invocation-capabilities.get.d.ts +0 -0
  308. /package/dist/{console/runtime/server → agent/console}/invocations.get.d.ts +0 -0
  309. /package/dist/{console/runtime/public/skills → console-skills}/index.json +0 -0
  310. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/SKILL.md +0 -0
  311. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/agents/openai.yaml +0 -0
  312. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/agent-definitions.md +0 -0
  313. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/bundle.md +0 -0
  314. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/capabilities-authority.md +0 -0
  315. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/channels-triggers.md +0 -0
  316. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/framework-composition.md +0 -0
  317. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/preview-contract.md +0 -0
  318. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/auth.md +0 -0
  319. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/blob.md +0 -0
  320. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/browser.md +0 -0
  321. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/cache.md +0 -0
  322. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/channels.md +0 -0
  323. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/connections.md +0 -0
  324. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/content.md +0 -0
  325. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/database.md +0 -0
  326. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/email.md +0 -0
  327. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/env.md +0 -0
  328. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/kv.md +0 -0
  329. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/markdown-template.md +0 -0
  330. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/queue.md +0 -0
  331. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/rate-limit.md +0 -0
  332. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/realtime.md +0 -0
  333. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/sandbox-task.md +0 -0
  334. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/sandbox.md +0 -0
  335. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/schedule.md +0 -0
  336. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/shell.md +0 -0
  337. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/source.md +0 -0
  338. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/workflow.md +0 -0
  339. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/primitives/workspace.md +0 -0
  340. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/project-patterns.md +0 -0
  341. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/project-shapes.md +0 -0
  342. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/proof-recovery.md +0 -0
  343. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/sandboxes-hosts.md +0 -0
  344. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/schedules-workflows-invocations.md +0 -0
  345. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/server-primitives.md +0 -0
  346. /package/dist/{console/runtime/public/skills → console-skills}/vitehub/references/workspaces-sources-access.md +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-hub",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "The cohesive ViteHub framework distribution for Vite applications and agents.",
5
5
  "keywords": [
6
6
  "agent",
@@ -507,6 +507,11 @@
507
507
  "import": "./dist/env/server.js",
508
508
  "default": "./dist/env/server.js"
509
509
  },
510
+ "./env/vite": {
511
+ "types": "./dist/env/vite.d.ts",
512
+ "import": "./dist/env/vite.js",
513
+ "default": "./dist/env/vite.js"
514
+ },
510
515
  "./forge": {
511
516
  "types": "./dist/forge.d.ts",
512
517
  "import": "./dist/forge.js",
@@ -602,6 +607,11 @@
602
607
  "import": "./dist/mcp.js",
603
608
  "default": "./dist/mcp.js"
604
609
  },
610
+ "./mcp/eval": {
611
+ "types": "./dist/mcp/eval.d.ts",
612
+ "import": "./dist/mcp/eval.js",
613
+ "default": "./dist/mcp/eval.js"
614
+ },
605
615
  "./nuxt": {
606
616
  "types": "./dist/nuxt.d.ts",
607
617
  "import": "./dist/nuxt.js",
@@ -948,11 +958,6 @@
948
958
  "default": "./dist/workspace/server.js"
949
959
  },
950
960
  "./package.json": "./package.json",
951
- "./console/mcp-client": {
952
- "types": "./dist/console/runtime/server/mcp-client-operations.d.ts",
953
- "import": "./dist/console/runtime/server/mcp-client-operations.js",
954
- "default": "./dist/console/runtime/server/mcp-client-operations.js"
955
- },
956
961
  "./page/pill.js": {
957
962
  "default": "./dist/page/pill.iife.js"
958
963
  },
@@ -1025,11 +1030,11 @@
1025
1030
  "@types/json-schema": "^7.0.15",
1026
1031
  "@types/node": "^24.19.2",
1027
1032
  "@valibot/to-json-schema": "^1.8.0",
1028
- "@vite-hub/bundle": "0.5.1",
1029
- "@vite-hub/cli": "0.5.1",
1030
- "@vite-hub/env": "0.5.1",
1031
- "@vite-hub/runtime": "0.5.1",
1032
- "@vite-hub/source": "0.5.1",
1033
+ "@vite-hub/bundle": "0.6.0",
1034
+ "@vite-hub/cli": "0.6.0",
1035
+ "@vite-hub/env": "0.6.0",
1036
+ "@vite-hub/runtime": "0.6.0",
1037
+ "@vite-hub/source": "0.6.0",
1033
1038
  "birpc": "^4.2.0",
1034
1039
  "confbox": "^0.3.2",
1035
1040
  "h3": "^2.0.8",
@@ -1080,44 +1085,44 @@
1080
1085
  "@ui-sdk/core": "0.1.0-beta.14",
1081
1086
  "@ui-sdk/vue": "0.1.0-beta.14",
1082
1087
  "@vercel/sandbox": "^3.9.1 || ^4.0.0",
1083
- "@vite-hub/agent": "0.5.1",
1084
- "@vite-hub/auth": "0.5.1",
1085
- "@vite-hub/blob": "0.5.1",
1086
- "@vite-hub/browser": "0.5.1",
1087
- "@vite-hub/channels": "0.5.1",
1088
- "@vite-hub/choices": "0.5.1",
1089
- "@vite-hub/cms": "0.5.1",
1090
- "@vite-hub/codemods": "0.5.1",
1091
- "@vite-hub/comments": "0.5.1",
1092
- "@vite-hub/connections": "0.5.1",
1093
- "@vite-hub/content": "0.5.1",
1094
- "@vite-hub/database": "0.5.1",
1095
- "@vite-hub/device": "0.5.1",
1096
- "@vite-hub/docs": "0.5.1",
1097
- "@vite-hub/email": "0.5.1",
1098
- "@vite-hub/forge": "0.5.1",
1099
- "@vite-hub/forms": "0.5.1",
1100
- "@vite-hub/gateways": "0.5.1",
1101
- "@vite-hub/i18n": "0.5.1",
1088
+ "@vite-hub/agent": "0.6.0",
1089
+ "@vite-hub/auth": "0.6.0",
1090
+ "@vite-hub/blob": "0.6.0",
1091
+ "@vite-hub/browser": "0.6.0",
1092
+ "@vite-hub/channels": "0.6.0",
1093
+ "@vite-hub/choices": "0.6.0",
1094
+ "@vite-hub/cms": "0.6.0",
1095
+ "@vite-hub/codemods": "0.6.0",
1096
+ "@vite-hub/comments": "0.6.0",
1097
+ "@vite-hub/connections": "0.6.0",
1098
+ "@vite-hub/content": "0.6.0",
1099
+ "@vite-hub/database": "0.6.0",
1100
+ "@vite-hub/device": "0.6.0",
1101
+ "@vite-hub/docs": "0.6.0",
1102
+ "@vite-hub/email": "0.6.0",
1103
+ "@vite-hub/forge": "0.6.0",
1104
+ "@vite-hub/forms": "0.6.0",
1105
+ "@vite-hub/gateways": "0.6.0",
1106
+ "@vite-hub/i18n": "0.6.0",
1102
1107
  "@vite-hub/icons": "0.1.0",
1103
1108
  "@vite-hub/internal": "0.0.1",
1104
- "@vite-hub/kit": "0.5.1",
1105
- "@vite-hub/kv": "0.5.1",
1106
- "@vite-hub/markdown-template": "0.5.1",
1107
- "@vite-hub/mcp": "0.5.1",
1108
- "@vite-hub/presets": "0.5.1",
1109
- "@vite-hub/queue": "0.5.1",
1110
- "@vite-hub/rate-limit": "0.5.1",
1111
- "@vite-hub/realtime": "0.5.1",
1112
- "@vite-hub/sandbox": "0.5.1",
1113
- "@vite-hub/schedule": "0.5.1",
1114
- "@vite-hub/shell": "0.5.1",
1115
- "@vite-hub/sync": "0.5.1",
1116
- "@vite-hub/ui": "0.5.1",
1117
- "@vite-hub/web-container": "0.5.1",
1118
- "@vite-hub/webhooks": "0.5.1",
1119
- "@vite-hub/workflow": "0.5.1",
1120
- "@vite-hub/workspace": "0.5.1",
1109
+ "@vite-hub/kit": "0.6.0",
1110
+ "@vite-hub/kv": "0.6.0",
1111
+ "@vite-hub/markdown-template": "0.6.0",
1112
+ "@vite-hub/mcp": "0.6.0",
1113
+ "@vite-hub/presets": "0.6.0",
1114
+ "@vite-hub/queue": "0.6.0",
1115
+ "@vite-hub/rate-limit": "0.6.0",
1116
+ "@vite-hub/realtime": "0.6.0",
1117
+ "@vite-hub/sandbox": "0.6.0",
1118
+ "@vite-hub/schedule": "0.6.0",
1119
+ "@vite-hub/shell": "0.6.0",
1120
+ "@vite-hub/sync": "0.6.0",
1121
+ "@vite-hub/ui": "0.6.0",
1122
+ "@vite-hub/web-container": "0.6.0",
1123
+ "@vite-hub/webhooks": "0.6.0",
1124
+ "@vite-hub/workflow": "0.6.0",
1125
+ "@vite-hub/workspace": "0.6.0",
1121
1126
  "@vitejs/plugin-vue": "^6.0.11",
1122
1127
  "@vue/test-utils": "2.6.0",
1123
1128
  "@vueuse/core": "^15.0.0",
@@ -1153,6 +1158,7 @@
1153
1158
  "yjs": "^13.6.33"
1154
1159
  },
1155
1160
  "peerDependencies": {
1161
+ "@ai-sdk/mcp": "2.0.103",
1156
1162
  "@ai-sdk/provider": "^4.0.24",
1157
1163
  "@aws-sdk/client-s3": "^3.700.0",
1158
1164
  "@aws-sdk/lib-storage": "^3.700.0",
@@ -1170,41 +1176,41 @@
1170
1176
  "@modelcontextprotocol/sdk": "^1.32.2",
1171
1177
  "@nuxt/ui": "^4.11.0",
1172
1178
  "@vercel/functions": "^3.11.3",
1173
- "@vite-hub/agent": "0.5.1",
1174
- "@vite-hub/auth": "0.5.1",
1175
- "@vite-hub/blob": "0.5.1",
1176
- "@vite-hub/browser": "0.5.1",
1177
- "@vite-hub/channels": "0.5.1",
1178
- "@vite-hub/choices": "0.5.1",
1179
- "@vite-hub/cms": "0.5.1",
1180
- "@vite-hub/codemods": "0.5.1",
1181
- "@vite-hub/comments": "0.5.1",
1182
- "@vite-hub/connections": "0.5.1",
1183
- "@vite-hub/content": "0.5.1",
1184
- "@vite-hub/database": "0.5.1",
1185
- "@vite-hub/device": "0.5.1",
1186
- "@vite-hub/docs": "0.5.1",
1187
- "@vite-hub/email": "0.5.1",
1188
- "@vite-hub/forge": "0.5.1",
1189
- "@vite-hub/forms": "0.5.1",
1190
- "@vite-hub/gateways": "0.5.1",
1191
- "@vite-hub/i18n": "0.5.1",
1192
- "@vite-hub/kv": "0.5.1",
1193
- "@vite-hub/markdown-template": "0.5.1",
1194
- "@vite-hub/mcp": "0.5.1",
1195
- "@vite-hub/presets": "0.5.1",
1196
- "@vite-hub/queue": "0.5.1",
1197
- "@vite-hub/rate-limit": "0.5.1",
1198
- "@vite-hub/realtime": "0.5.1",
1199
- "@vite-hub/sandbox": "0.5.1",
1200
- "@vite-hub/schedule": "0.5.1",
1201
- "@vite-hub/shell": "0.5.1",
1202
- "@vite-hub/sync": "0.5.1",
1203
- "@vite-hub/ui": "0.5.1",
1204
- "@vite-hub/web-container": "0.5.1",
1205
- "@vite-hub/webhooks": "0.5.1",
1206
- "@vite-hub/workflow": "0.5.1",
1207
- "@vite-hub/workspace": "0.5.1",
1179
+ "@vite-hub/agent": "0.6.0",
1180
+ "@vite-hub/auth": "0.6.0",
1181
+ "@vite-hub/blob": "0.6.0",
1182
+ "@vite-hub/browser": "0.6.0",
1183
+ "@vite-hub/channels": "0.6.0",
1184
+ "@vite-hub/choices": "0.6.0",
1185
+ "@vite-hub/cms": "0.6.0",
1186
+ "@vite-hub/codemods": "0.6.0",
1187
+ "@vite-hub/comments": "0.6.0",
1188
+ "@vite-hub/connections": "0.6.0",
1189
+ "@vite-hub/content": "0.6.0",
1190
+ "@vite-hub/database": "0.6.0",
1191
+ "@vite-hub/device": "0.6.0",
1192
+ "@vite-hub/docs": "0.6.0",
1193
+ "@vite-hub/email": "0.6.0",
1194
+ "@vite-hub/forge": "0.6.0",
1195
+ "@vite-hub/forms": "0.6.0",
1196
+ "@vite-hub/gateways": "0.6.0",
1197
+ "@vite-hub/i18n": "0.6.0",
1198
+ "@vite-hub/kv": "0.6.0",
1199
+ "@vite-hub/markdown-template": "0.6.0",
1200
+ "@vite-hub/mcp": "0.6.0",
1201
+ "@vite-hub/presets": "0.6.0",
1202
+ "@vite-hub/queue": "0.6.0",
1203
+ "@vite-hub/rate-limit": "0.6.0",
1204
+ "@vite-hub/realtime": "0.6.0",
1205
+ "@vite-hub/sandbox": "0.6.0",
1206
+ "@vite-hub/schedule": "0.6.0",
1207
+ "@vite-hub/shell": "0.6.0",
1208
+ "@vite-hub/sync": "0.6.0",
1209
+ "@vite-hub/ui": "0.6.0",
1210
+ "@vite-hub/web-container": "0.6.0",
1211
+ "@vite-hub/webhooks": "0.6.0",
1212
+ "@vite-hub/workflow": "0.6.0",
1213
+ "@vite-hub/workspace": "0.6.0",
1208
1214
  "@vueuse/core": "^14.4.0 || ^15.0.0",
1209
1215
  "ai": "^6.0.0 || ^7.0.0-0",
1210
1216
  "better-auth": "^1.7.27",
@@ -1219,6 +1225,9 @@
1219
1225
  "vue": "^3.5.0"
1220
1226
  },
1221
1227
  "peerDependenciesMeta": {
1228
+ "@ai-sdk/mcp": {
1229
+ "optional": true
1230
+ },
1222
1231
  "@ai-sdk/provider": {
1223
1232
  "optional": true
1224
1233
  },
@@ -1,116 +0,0 @@
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
- import { Result, ResultError } from "@vite-hub/runtime";
6
- import { AuthConsole, AuthConsoleErrorCode, AuthConsoleMutation } from "@vite-hub/auth/console-runtime";
7
- /**
8
- * One-time tickets open a page of the app in the browser for the person who called the Console. Content preview and
9
- * impersonation need the app origin: a frame of the page, or the app session cookie. A signed operation, such as
10
- * `auth.impersonate`, checks the call and returns a ticket URL on the app's own Console route,
11
- * `GET /_vitehub/rpc?ticket=<ticket>`. The browser opens it, and the route redeems the ticket once.
12
- *
13
- * A ticket is 32 random bytes. The app keeps only the SHA-256 of it, with what it is for: the purpose, the app origin,
14
- * the person, the target, and the expiry. Redemption takes the record out of the store, so a second request with the
15
- * same ticket, an expired ticket, or a changed ticket finds nothing.
16
- */
17
- /** What a ticket opens. */
18
- type ConsoleTicketPurpose = "auth.impersonate" | "auth.stop-impersonating" | "content.preview" | "page.member" | "page.guest";
19
- /** The answer of an operation that opens a page with a ticket. */
20
- interface ConsoleTicket {
21
- /** The app URL that redeems the ticket, such as `https://app.example.com/_vitehub/rpc?ticket=vt1_...`. */
22
- url: string;
23
- /** When the ticket stops working, as an ISO timestamp. */
24
- expiresAt: string;
25
- }
26
- interface ConsoleTicketRecord {
27
- purpose: ConsoleTicketPurpose;
28
- /** The app origin that the ticket works on. */
29
- origin: string;
30
- /** The app mount below the origin, such as `/portal`, or an empty string. */
31
- base: string;
32
- /** The person who asked for the ticket. */
33
- person: {
34
- id: string;
35
- email?: string;
36
- name?: string;
37
- image?: string;
38
- };
39
- target: Record<string, string>;
40
- /** Milliseconds since the epoch. */
41
- expiresAt: number;
42
- }
43
- /** Seconds that a ticket works. The browser opens it right after the call that made it. */
44
- declare const consoleTicketLifetime = 60;
45
- /** The search parameter of a ticket on `GET /_vitehub/rpc`. */
46
- declare const consoleTicketParameter = "ticket";
47
- /** Guest invites are tickets that the Console lists until someone opens them, so they have a prefix of their own. */
48
- declare const consoleInvitePrefix = "vitehub-page-invite:";
49
- /**
50
- * Where tickets wait to be redeemed. `consume` returns a value once, also when two instances ask at the same time.
51
- * Guest invites also list and remove their tickets. A store without those methods keeps tickets only.
52
- */
53
- interface ConsoleTicketStore {
54
- save(identifier: string, value: string, expiresAt: Date): Promise<void>;
55
- consume(identifier: string): Promise<string | null>;
56
- list?(prefix: string): Promise<{
57
- identifier: string;
58
- value: string;
59
- expiresAt: Date;
60
- }[]>;
61
- remove?(identifier: string): Promise<void>;
62
- }
63
- /** A store that also lists and removes tickets, for guest invites. */
64
- type ConsoleRecordStore = Required<ConsoleTicketStore>;
65
- /** Replace the ticket store, or restore the default with `undefined`. Tests use it. */
66
- declare function setConsoleTicketStore(store: ConsoleTicketStore | undefined): void;
67
- /** The Auth Console of a request, when the app has the Auth section. */
68
- declare function authConsole(request: Request, event: ConsoleRequestEvent | undefined, impersonation?: boolean): Promise<AuthConsole | undefined>;
69
- /** The Auth failure as a Console error, without loading Auth in a build that has none. */
70
- declare function authFailure(error: Parameters<typeof authConsoleFailure>[0]): Promise<unknown>;
71
- /** The ticket store with `list` and `remove`, for guest invites. */
72
- declare function consoleRecordStore(request: Request, event?: ConsoleRequestEvent): Promise<ConsoleRecordStore>;
73
- declare function base64url(bytes: Uint8Array): string;
74
- /** The origin of the app for a request: `vitehub({ publicUrl })` when set, else the URL of the request. */
75
- declare function appOrigin(request: Request): string;
76
- /** The app mount of a Console RPC request: its path before `/_vitehub/rpc`. */
77
- declare function appBase(request: Request): string;
78
- /**
79
- * Make a ticket for the person of a checked Console call. The operation that calls this has checked the section, the
80
- * grant, and the target. Tickets that act on the app session, such as impersonation, need the email of the person.
81
- */
82
- declare function issueConsoleTicket(context: {
83
- access: ConsoleAccess;
84
- request?: Request;
85
- event?: unknown;
86
- }, purpose: ConsoleTicketPurpose, target: Record<string, string>, options?: {
87
- lifetime?: number;
88
- }): Promise<ConsoleTicket>;
89
- /** The page of a refused ticket. `fix` replaces the general fix of the code when the caller knows a better one. */
90
- declare function ticketProblem(status: number, code: ConsoleDiagnosticCode, message?: string, fix?: string): Response;
91
- declare function seeOther(location: string, headers?: Headers): Response;
92
- /**
93
- * `GET /_vitehub/rpc?ticket=<ticket>`: redeem a one-time ticket. The browser opens it, so every answer is a page or a
94
- * redirect. The route takes the ticket out of the store first, so a ticket works once even when it fails later.
95
- */
96
- declare function redeemConsoleTicket(event: ConsoleRequestEvent): Promise<Response>;
97
- /** An Auth Console failure as the error of an operation: its code, why, fix, and the HTTP status of the code. */
98
- declare function authConsoleFailure(error: ResultError<AuthConsoleErrorCode>): Error;
99
- type AuthOperationContext = Omit<OperationContext, "access"> & {
100
- access: ConsoleAccess;
101
- };
102
- /** Runs one read of the Auth section, such as `auth.users`, and returns its data. */
103
- declare function runAuthConsoleRead<T>(context: AuthOperationContext, read: (api: AuthConsole, request: Request) => Promise<Result<T, AuthConsoleErrorCode>>): Promise<T>;
104
- /**
105
- * Runs one action of the Auth section, such as `auth.ban`, and returns its record: the action, the actor, and the
106
- * target. Better Auth runs it as an app user: the signed Console person's app account, or the browser's app session of
107
- * an open development Console. A CLI call names no person, so it cannot run one.
108
- */
109
- declare function runAuthConsoleAction(context: AuthOperationContext, mutation: AuthConsoleMutation): Promise<unknown>;
110
- /**
111
- * `auth.impersonate` and `auth.stop-impersonating`: check the call, then return a one-time link that the browser opens
112
- * on the app origin. Its redemption starts or stops the impersonation with the browser's app session, which must belong
113
- * to the person who asked. See `tickets.ts`.
114
- */
115
- declare function issueImpersonationTicket(context: AuthOperationContext, userId?: string): Promise<ConsoleTicket>;
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,15 +0,0 @@
1
- // ../internal/src/runtime/cloudflare-env-lookup.ts
2
- /** The key of the AsyncLocalStorage store on `globalThis`. Every bundled copy of this module shares the store. */
3
- const activeEnvStorageKey = Symbol.for("vitehub.cloudflare.env-storage");
4
- let activeEnv;
5
- /** The store of the current `runWithActiveCloudflareEnv()` call, or undefined outside one. */
6
- function getScopedCloudflareEnv() {
7
- return globalThis[activeEnvStorageKey]?.getStore();
8
- }
9
- function getActiveCloudflareEnv() {
10
- const scoped = getScopedCloudflareEnv();
11
- if (scoped) return scoped.env;
12
- const host = globalThis;
13
- return Object.hasOwn(host, "__env__") && host.__env__ !== void 0 ? host.__env__ : activeEnv;
14
- }
15
- export { getActiveCloudflareEnv as n, activeEnvStorageKey as t };
@@ -1,2 +0,0 @@
1
- import { n as openConsoleTicket, t as ConsoleTicketLink } from "../../../ticket-BFWwevWN.js";
2
- export { ConsoleTicketLink, openConsoleTicket };
@@ -1 +0,0 @@
1
- export { t as openConsoleTicket } from "../../../ticket-BwsnryuU.js";