vite-hub 0.1.0 → 0.3.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 (1500) hide show
  1. package/README.md +165 -41
  2. package/dist/_internal/auth/internal/server.d.ts +1 -0
  3. package/dist/_internal/auth/internal/server.js +2 -0
  4. package/dist/_internal/auth/runtime/server.d.ts +1 -0
  5. package/dist/_internal/auth/runtime/server.js +2 -0
  6. package/dist/_internal/runtime/browser-errors.d.ts +22 -0
  7. package/dist/_internal/runtime/browser-errors.js +156 -0
  8. package/dist/_internal/runtime/internal/h3.d.ts +1 -0
  9. package/dist/_internal/runtime/internal/h3.js +2 -0
  10. package/dist/_internal/runtime/redirects.d.ts +37 -0
  11. package/dist/_internal/runtime/redirects.js +71 -0
  12. package/dist/_internal/runtime/request-policy.d.ts +43 -0
  13. package/dist/_internal/runtime/request-policy.js +62 -0
  14. package/dist/_internal/runtime/security.d.ts +27 -0
  15. package/dist/_internal/runtime/security.js +104 -0
  16. package/dist/access-F0YP5D5E.js +439 -0
  17. package/dist/access-policy-B_DCpZUt.js +73 -0
  18. package/dist/access-policy-BsB3QVe5.d.ts +109 -0
  19. package/dist/account-Bsu-LBOF.d.ts +195 -0
  20. package/dist/agent/capabilities.d.ts +1 -24
  21. package/dist/agent/capabilities.js +1 -56
  22. package/dist/agent/invocations/database.d.ts +1 -2
  23. package/dist/agent/invocations/database.js +2 -91
  24. package/dist/agent/invocations/drizzle.d.ts +1 -0
  25. package/dist/agent/invocations/drizzle.js +2 -0
  26. package/dist/agent/invocations.d.ts +1 -0
  27. package/dist/agent/invocations.js +2 -0
  28. package/dist/agent/page.d.ts +1 -0
  29. package/dist/agent/page.js +2 -0
  30. package/dist/agent/process.d.ts +1 -0
  31. package/dist/agent/process.js +2 -0
  32. package/dist/agent/state.d.ts +1 -0
  33. package/dist/agent/state.js +2 -0
  34. package/dist/agent/ui/vue.d.ts +1 -0
  35. package/dist/agent/ui/vue.js +2 -0
  36. package/dist/agent/ui.d.ts +1 -0
  37. package/dist/agent/ui.js +2 -0
  38. package/dist/agent-invocations.post-DIm8tJV2.js +423 -0
  39. package/dist/agent.d.ts +1 -12
  40. package/dist/agent.js +1 -49
  41. package/dist/agents-C94A4N9u.d.ts +29 -0
  42. package/dist/agents-DnHexzTJ.js +123 -0
  43. package/dist/agents-y5hBFHUQ.js +2 -0
  44. package/dist/auth/abilities.d.ts +1 -0
  45. package/dist/auth/abilities.js +2 -0
  46. package/dist/auth/database.d.ts +1 -0
  47. package/dist/auth/database.js +2 -0
  48. package/dist/auth/forward.d.ts +1 -0
  49. package/dist/auth/forward.js +2 -0
  50. package/dist/auth/mcp.d.ts +1 -0
  51. package/dist/auth/mcp.js +2 -0
  52. package/dist/auth/schema.d.ts +1 -0
  53. package/dist/auth/schema.js +2 -0
  54. package/dist/auth-BFVHYizM.d.ts +120 -0
  55. package/dist/auth-operations-GcQk0O0X.js +34 -0
  56. package/dist/auth-types-DWpTBZvp.d.ts +90 -0
  57. package/dist/bin.js +106 -128
  58. package/dist/blob/nuxt-image.d.ts +3 -0
  59. package/dist/blob/nuxt-image.js +3 -0
  60. package/dist/blob-BRV6_wZa.js +26 -0
  61. package/dist/blob-CiUmptIp.d.ts +9 -0
  62. package/dist/bundle.d.ts +1 -0
  63. package/dist/bundle.js +2 -0
  64. package/dist/cache/operations.d.ts +5 -0
  65. package/dist/cache/operations.js +51 -0
  66. package/dist/cache.d.ts +28 -0
  67. package/dist/cache.js +219 -0
  68. package/dist/cli-DjoDGgT4.js +36 -0
  69. package/dist/cli-config--rAg6V-a.js +2 -0
  70. package/dist/cli-config-Bpjjfz5j.js +105 -0
  71. package/dist/cloudflare-env-lookup-DKXdr4P_.js +16 -0
  72. package/dist/cloudflare-prerender.mjs +3 -0
  73. package/dist/cloudflare-workers.d.ts +12 -0
  74. package/dist/cms/access.d.ts +1 -0
  75. package/dist/cms/access.js +2 -0
  76. package/dist/cms/vite.d.ts +1 -0
  77. package/dist/cms/vite.js +2 -0
  78. package/dist/cms.d.ts +3 -0
  79. package/dist/cms.js +3 -0
  80. package/dist/comments/testing.d.ts +1 -0
  81. package/dist/comments/testing.js +2 -0
  82. package/dist/connections/operations.d.ts +1 -0
  83. package/dist/connections/operations.js +2 -0
  84. package/dist/console/auth-types.d.ts +2 -0
  85. package/dist/console/auth-types.js +1 -0
  86. package/dist/console/auth.d.ts +6 -2
  87. package/dist/console/auth.js +9 -2
  88. package/dist/console/runtime/auth-operations.d.ts +35 -0
  89. package/dist/console/runtime/auth-operations.js +2 -0
  90. package/dist/console/runtime/client/account-views.d.ts +17 -0
  91. package/dist/console/runtime/client/account-views.js +8 -0
  92. package/dist/console/runtime/client/account.d.ts +2 -0
  93. package/dist/console/runtime/client/account.js +1125 -0
  94. package/dist/console/runtime/client/add-primitive.ts +59 -0
  95. package/dist/console/runtime/client/app-identity.ts +44 -0
  96. package/dist/console/runtime/client/auth-management.ts +21 -35
  97. package/dist/console/runtime/client/blob-media.d.ts +1 -1
  98. package/dist/console/runtime/client/blob-media.js +4 -4
  99. package/dist/console/runtime/client/command-search.ts +103 -0
  100. package/dist/console/runtime/client/comment-thread.d.ts +33 -0
  101. package/dist/console/runtime/client/comment-thread.js +62 -0
  102. package/dist/console/runtime/client/document-cache.ts +13 -0
  103. package/dist/console/runtime/client/documents.d.ts +3 -430
  104. package/dist/console/runtime/client/documents.js +2 -501
  105. package/dist/console/runtime/client/editor.d.ts +9 -8
  106. package/dist/console/runtime/client/editor.js +35 -14
  107. package/dist/console/runtime/client/env-status.d.ts +31 -2
  108. package/dist/console/runtime/client/env-status.js +59 -1
  109. package/dist/console/runtime/client/format.d.ts +59 -0
  110. package/dist/console/runtime/client/format.js +2 -109
  111. package/dist/console/runtime/client/format.ts +267 -0
  112. package/dist/console/runtime/client/highlight-languages.ts +27 -0
  113. package/dist/console/runtime/client/invocation.js +4 -4
  114. package/dist/console/runtime/client/live.d.ts +3 -5
  115. package/dist/console/runtime/client/live.js +1 -8
  116. package/dist/console/runtime/client/mcp-client.d.ts +58 -0
  117. package/dist/console/runtime/client/mcp-client.js +125 -0
  118. package/dist/console/runtime/client/media-library.d.ts +2 -207
  119. package/dist/console/runtime/client/media-library.js +2 -243
  120. package/dist/console/runtime/client/media-uploads.d.ts +1 -1
  121. package/dist/console/runtime/client/media-uploads.js +1 -1
  122. package/dist/console/runtime/client/media.d.ts +2 -73
  123. package/dist/console/runtime/client/operation-view.d.ts +31 -4
  124. package/dist/console/runtime/client/operation-view.js +85 -9
  125. package/dist/console/runtime/client/presence.d.ts +1 -5
  126. package/dist/console/runtime/client/presence.js +1 -15
  127. package/dist/console/runtime/client/preview.d.ts +8 -0
  128. package/dist/console/runtime/client/preview.js +11 -1
  129. package/dist/console/runtime/client/problem.d.ts +1 -1
  130. package/dist/console/runtime/client/problem.js +3 -3
  131. package/dist/console/runtime/client/project-link.d.ts +2 -0
  132. package/dist/console/runtime/client/project-link.js +2 -0
  133. package/dist/console/runtime/client/project-session.d.ts +221 -0
  134. package/dist/console/runtime/client/project-session.js +723 -0
  135. package/dist/console/runtime/client/project.d.ts +48 -0
  136. package/dist/console/runtime/client/project.js +2 -0
  137. package/dist/console/runtime/client/projects.d.ts +2 -0
  138. package/dist/console/runtime/client/projects.js +2 -0
  139. package/dist/console/runtime/client/publish.d.ts +1 -1
  140. package/dist/console/runtime/client/rate-limit.js +2 -2
  141. package/dist/console/runtime/client/read-only.d.ts +1 -1
  142. package/dist/console/runtime/client/read-only.js +1 -1
  143. package/dist/console/runtime/client/request.d.ts +6 -12
  144. package/dist/console/runtime/client/request.js +2 -471
  145. package/dist/console/runtime/client/route-query.d.ts +60 -0
  146. package/dist/console/runtime/client/route-query.js +2 -0
  147. package/dist/console/runtime/client/schedule-run.js +2 -2
  148. package/dist/console/runtime/client/sections.d.ts +2 -26
  149. package/dist/console/runtime/client/sections.js +2 -84
  150. package/dist/console/runtime/client/sidebar.ts +84 -0
  151. package/dist/console/runtime/client/site-access.d.ts +32 -0
  152. package/dist/console/runtime/client/site-access.js +932 -0
  153. package/dist/console/runtime/client/stored.d.ts +33 -0
  154. package/dist/console/runtime/client/stored.js +2 -0
  155. package/dist/console/runtime/client/ticket.d.ts +2 -0
  156. package/dist/console/runtime/client/ticket.js +2 -0
  157. package/dist/console/runtime/client/workflow.js +3 -3
  158. package/dist/console/runtime/components/console-account-api-keys.vue +195 -0
  159. package/dist/console/runtime/components/console-account-env.vue +286 -0
  160. package/dist/console/runtime/components/console-account-home.vue +427 -0
  161. package/dist/console/runtime/components/console-account-link.vue +68 -0
  162. package/dist/console/runtime/components/console-account-menu.vue +126 -0
  163. package/dist/console/runtime/components/console-account-rename.vue +67 -0
  164. package/dist/console/runtime/components/console-account-settings.vue +184 -0
  165. package/dist/console/runtime/components/console-account-setup.vue +82 -0
  166. package/dist/console/runtime/components/console-account-shell.vue +339 -0
  167. package/dist/console/runtime/components/console-account-sign-in.vue +152 -0
  168. package/dist/console/runtime/components/console-account-snippet.vue +89 -0
  169. package/dist/console/runtime/components/console-account-team-settings.vue +131 -0
  170. package/dist/console/runtime/components/console-account-team.vue +199 -0
  171. package/dist/console/runtime/components/console-account-unlink.vue +52 -0
  172. package/dist/console/runtime/components/console-activity-feed.vue +69 -0
  173. package/dist/console/runtime/components/console-add-primitive.vue +176 -0
  174. package/dist/console/runtime/components/console-agent-session.vue +301 -0
  175. package/dist/console/runtime/components/console-app-crumb.vue +52 -0
  176. package/dist/console/runtime/components/console-app-logo.vue +44 -0
  177. package/dist/console/runtime/components/console-app-settings.vue +271 -0
  178. package/dist/console/runtime/components/console-app.vue +255 -335
  179. package/dist/console/runtime/components/console-auth-action.vue +15 -13
  180. package/dist/console/runtime/components/console-auth-activity.vue +20 -24
  181. package/dist/console/runtime/components/console-auth-chart.vue +24 -21
  182. package/dist/console/runtime/components/console-auth-detail.vue +101 -128
  183. package/dist/console/runtime/components/console-auth-event-list.vue +2 -2
  184. package/dist/console/runtime/components/console-auth-event-setup.vue +4 -4
  185. package/dist/console/runtime/components/console-auth-overview.vue +21 -33
  186. package/dist/console/runtime/components/console-auth-user-events.vue +12 -15
  187. package/dist/console/runtime/components/console-auth.vue +118 -116
  188. package/dist/console/runtime/components/console-blob-detail.vue +16 -26
  189. package/dist/console/runtime/components/console-blob.vue +89 -34
  190. package/dist/console/runtime/components/console-cache.vue +358 -0
  191. package/dist/console/runtime/components/console-code-text.vue +18 -0
  192. package/dist/console/runtime/components/console-comark-component.vue +54 -16
  193. package/dist/console/runtime/components/console-comment-thread.vue +320 -0
  194. package/dist/console/runtime/components/console-confirm.vue +46 -0
  195. package/dist/console/runtime/components/console-connection-state.vue +23 -26
  196. package/dist/console/runtime/components/console-database.vue +77 -80
  197. package/dist/console/runtime/components/console-definitions.vue +163 -44
  198. package/dist/console/runtime/components/console-document-dashboard.vue +93 -112
  199. package/dist/console/runtime/components/console-document-diff.vue +2 -2
  200. package/dist/console/runtime/components/console-document-editor.vue +404 -203
  201. package/dist/console/runtime/components/console-document-history.vue +17 -17
  202. package/dist/console/runtime/components/console-document-list.vue +51 -53
  203. package/dist/console/runtime/components/console-document-preview.vue +44 -57
  204. package/dist/console/runtime/components/console-document-settings.vue +24 -26
  205. package/dist/console/runtime/components/console-documents.vue +104 -40
  206. package/dist/console/runtime/components/console-env-details.vue +8 -27
  207. package/dist/console/runtime/components/console-env.vue +109 -88
  208. package/dist/console/runtime/components/console-facts.ts +13 -0
  209. package/dist/console/runtime/components/console-frame.vue +26 -68
  210. package/dist/console/runtime/components/console-home.vue +145 -121
  211. package/dist/console/runtime/components/console-icon.vue +19 -0
  212. package/dist/console/runtime/components/console-invocation-composer.vue +4 -8
  213. package/dist/console/runtime/components/console-kv.vue +41 -47
  214. package/dist/console/runtime/components/console-lazy-views.ts +2 -0
  215. package/dist/console/runtime/components/console-loading.vue +5 -4
  216. package/dist/console/runtime/components/console-markdown-editor.vue +74 -98
  217. package/dist/console/runtime/components/console-mcp-callback.vue +76 -0
  218. package/dist/console/runtime/components/console-mcp-client.vue +255 -0
  219. package/dist/console/runtime/components/console-mcp-connect.vue +162 -0
  220. package/dist/console/runtime/components/console-mcp-connection.vue +219 -0
  221. package/dist/console/runtime/components/console-mcp-content.vue +157 -0
  222. package/dist/console/runtime/components/console-mcp-items.vue +346 -0
  223. package/dist/console/runtime/components/console-media-browser.vue +108 -138
  224. package/dist/console/runtime/components/console-media-crops.vue +13 -12
  225. package/dist/console/runtime/components/console-media-detail.vue +35 -39
  226. package/dist/console/runtime/components/console-media-dialog.vue +3 -3
  227. package/dist/console/runtime/components/console-media-field.vue +12 -36
  228. package/dist/console/runtime/components/console-media-focal.vue +15 -14
  229. package/dist/console/runtime/components/console-media-library.vue +29 -22
  230. package/dist/console/runtime/components/console-media-move.vue +9 -8
  231. package/dist/console/runtime/components/console-media-picker.vue +35 -6
  232. package/dist/console/runtime/components/console-media-uploads.vue +7 -4
  233. package/dist/console/runtime/components/console-operation-view.vue +258 -45
  234. package/dist/console/runtime/components/console-page-changes.vue +207 -0
  235. package/dist/console/runtime/components/console-page-header.vue +39 -7
  236. package/dist/console/runtime/components/console-page-toolbar.vue +16 -3
  237. package/dist/console/runtime/components/console-presence-avatars.vue +4 -3
  238. package/dist/console/runtime/components/console-project-switcher.vue +212 -0
  239. package/dist/console/runtime/components/console-property-list.vue +16 -11
  240. package/dist/console/runtime/components/console-property-row.vue +2 -1
  241. package/dist/console/runtime/components/console-rail.vue +122 -277
  242. package/dist/console/runtime/components/console-rate-limit.vue +32 -24
  243. package/dist/console/runtime/components/console-relative-time.vue +1 -1
  244. package/dist/console/runtime/components/console-schema-date-input.vue +88 -0
  245. package/dist/console/runtime/components/console-schema-field.vue +35 -89
  246. package/dist/console/runtime/components/console-schema-form.vue +6 -7
  247. package/dist/console/runtime/components/console-schema-list.vue +8 -9
  248. package/dist/console/runtime/components/console-search-palette.vue +1051 -0
  249. package/dist/console/runtime/components/console-search.vue +17 -840
  250. package/dist/console/runtime/components/console-section-icon.vue +7 -10
  251. package/dist/console/runtime/components/console-section.vue +68 -0
  252. package/dist/console/runtime/components/console-seo-panel.vue +16 -16
  253. package/dist/console/runtime/components/console-session-actions.vue +1 -3
  254. package/dist/console/runtime/components/console-session-bootstrap.ts +0 -28
  255. package/dist/console/runtime/components/console-session-cancel.vue +0 -1
  256. package/dist/console/runtime/components/console-session-code-preview.vue +10 -26
  257. package/dist/console/runtime/components/console-session-copy-link.vue +11 -0
  258. package/dist/console/runtime/components/console-session-inspector.vue +212 -92
  259. package/dist/console/runtime/components/console-session-loading.vue +12 -15
  260. package/dist/console/runtime/components/console-session-navbar.vue +9 -39
  261. package/dist/console/runtime/components/console-session-trace.vue +25 -77
  262. package/dist/console/runtime/components/console-session.css +208 -851
  263. package/dist/console/runtime/components/console-settings-card.vue +76 -0
  264. package/dist/console/runtime/components/console-settings-value.vue +46 -0
  265. package/dist/console/runtime/components/console-settings.vue +100 -0
  266. package/dist/console/runtime/components/console-setup-hint.vue +3 -8
  267. package/dist/console/runtime/components/console-sidebar-item.vue +62 -0
  268. package/dist/console/runtime/components/console-sidebar-trigger.vue +34 -0
  269. package/dist/console/runtime/components/console-sidebar.vue +352 -0
  270. package/dist/console/runtime/components/console-site.vue +370 -0
  271. package/dist/console/runtime/components/console-skill-file.vue +73 -0
  272. package/dist/console/runtime/components/console-skill-tree.vue +62 -0
  273. package/dist/console/runtime/components/console-skills.vue +193 -0
  274. package/dist/console/runtime/components/console-stat-grid.vue +64 -0
  275. package/dist/console/runtime/components/console-state.vue +60 -75
  276. package/dist/console/runtime/components/console-toaster.vue +63 -54
  277. package/dist/console/runtime/components/console-usage-chart.vue +14 -12
  278. package/dist/console/runtime/components/console-usage-model-detail.vue +12 -18
  279. package/dist/console/runtime/components/console-usage-model.ts +20 -12
  280. package/dist/console/runtime/components/console-usage-share-bar.vue +5 -5
  281. package/dist/console/runtime/components/console-usage.vue +547 -252
  282. package/dist/console/runtime/components/console-user-menu.vue +42 -0
  283. package/dist/console/runtime/components/console-value.vue +5 -4
  284. package/dist/console/runtime/components/console-workflow-actions.vue +32 -41
  285. package/dist/console/runtime/components/console-workspace-browser.vue +507 -0
  286. package/dist/console/runtime/components/console-workspace-history.vue +23 -24
  287. package/dist/console/runtime/components/invocation/agent-capability-inspector.ts +13 -14
  288. package/dist/console/runtime/components/invocation/agent-invocation-list.ts +22 -38
  289. package/dist/console/runtime/components/invocation/agent-invocation-timeline.ts +4 -12
  290. package/dist/console/runtime/components/invocation/agent-invocation.ts +211 -188
  291. package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +125 -43
  292. package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +25 -0
  293. package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +8 -3
  294. package/dist/console/runtime/components/invocation/internal/invocation-page-changes.ts +64 -0
  295. package/dist/console/runtime/components/invocation/internal/payload-text.ts +3 -5
  296. package/dist/console/runtime/components/invocation/invocation.css +469 -428
  297. package/dist/console/runtime/components/invocation/types.ts +9 -1
  298. package/dist/console/runtime/console-route.js +1 -48
  299. package/dist/console/runtime/definitions.d.ts +2 -2
  300. package/dist/console/runtime/definitions.js +1 -293
  301. package/dist/console/runtime/diagnostics.ts +287 -0
  302. package/dist/console/runtime/mcp-client.d.ts +2 -0
  303. package/dist/console/runtime/mcp-client.js +2 -0
  304. package/dist/console/runtime/page/loader.js +138 -18
  305. package/dist/console/runtime/page-tool/page-tool.js +10 -0
  306. package/dist/console/runtime/public/skills/index.json +1 -0
  307. package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -39
  308. package/dist/console/runtime/public/skills/vitehub/references/agent-definitions.md +1 -1
  309. package/dist/console/runtime/public/skills/vitehub/references/bundle.md +57 -0
  310. package/dist/console/runtime/public/skills/vitehub/references/capabilities-authority.md +1 -1
  311. package/dist/console/runtime/public/skills/vitehub/references/channels-triggers.md +4 -3
  312. package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +2 -2
  313. package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +2 -2
  314. package/dist/console/runtime/public/skills/vitehub/references/primitives/auth.md +1 -3
  315. package/dist/console/runtime/public/skills/vitehub/references/primitives/blob.md +3 -3
  316. package/dist/console/runtime/public/skills/vitehub/references/primitives/browser.md +1 -1
  317. package/dist/console/runtime/public/skills/vitehub/references/primitives/cache.md +2 -2
  318. package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +3 -5
  319. package/dist/console/runtime/public/skills/vitehub/references/primitives/connections.md +0 -2
  320. package/dist/console/runtime/public/skills/vitehub/references/primitives/content.md +1 -1
  321. package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +4 -2
  322. package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +0 -2
  323. package/dist/console/runtime/public/skills/vitehub/references/primitives/env.md +2 -2
  324. package/dist/console/runtime/public/skills/vitehub/references/primitives/kv.md +2 -2
  325. package/dist/console/runtime/public/skills/vitehub/references/primitives/queue.md +0 -2
  326. package/dist/console/runtime/public/skills/vitehub/references/primitives/rate-limit.md +1 -3
  327. package/dist/console/runtime/public/skills/vitehub/references/primitives/realtime.md +4 -4
  328. package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox-task.md +0 -2
  329. package/dist/console/runtime/public/skills/vitehub/references/primitives/schedule.md +1 -3
  330. package/dist/console/runtime/public/skills/vitehub/references/primitives/shell.md +0 -2
  331. package/dist/console/runtime/public/skills/vitehub/references/primitives/source.md +0 -2
  332. package/dist/console/runtime/public/skills/vitehub/references/primitives/workflow.md +0 -2
  333. package/dist/console/runtime/public/skills/vitehub/references/primitives/workspace.md +1 -3
  334. package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +20 -0
  335. package/dist/console/runtime/public/skills/vitehub/references/proof-recovery.md +2 -0
  336. package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +10 -1
  337. package/dist/console/runtime/public/skills/vitehub/references/schedules-workflows-invocations.md +1 -1
  338. package/dist/console/runtime/public/skills/vitehub/references/server-primitives.md +1 -1
  339. package/dist/console/runtime/rpc.d.ts +2 -36
  340. package/dist/console/runtime/rpc.js +1 -3
  341. package/dist/console/runtime/sections.d.ts +2 -2
  342. package/dist/console/runtime/sections.js +2 -351
  343. package/dist/console/runtime/server/access-policy.d.ts +2 -0
  344. package/dist/console/runtime/server/access-policy.js +2 -0
  345. package/dist/console/runtime/server/agents.get.d.ts +4 -7
  346. package/dist/console/runtime/server/agents.get.js +6 -9
  347. package/dist/console/runtime/server/auth.d.ts +2 -0
  348. package/dist/console/runtime/server/auth.js +81 -0
  349. package/dist/console/runtime/server/blob.d.ts +2 -2
  350. package/dist/console/runtime/server/blob.js +2 -19
  351. package/dist/console/runtime/server/channel-replay.d.ts +20 -8
  352. package/dist/console/runtime/server/channel-replay.js +27 -55
  353. package/dist/console/runtime/server/database.d.ts +1 -1
  354. package/dist/console/runtime/server/database.get.d.ts +19 -10
  355. package/dist/console/runtime/server/database.get.js +40 -34
  356. package/dist/console/runtime/server/database.js +1 -17
  357. package/dist/console/runtime/server/definitions.d.ts +1 -1
  358. package/dist/console/runtime/server/definitions.get.d.ts +8 -8
  359. package/dist/console/runtime/server/definitions.get.js +37 -23
  360. package/dist/console/runtime/server/definitions.js +1 -96
  361. package/dist/console/runtime/server/development.d.ts +2 -0
  362. package/dist/console/runtime/server/development.js +2 -0
  363. package/dist/console/runtime/server/documents.d.ts +2 -2
  364. package/dist/console/runtime/server/documents.js +3 -111
  365. package/dist/console/runtime/server/env.d.ts +3 -15
  366. package/dist/console/runtime/server/env.get.d.ts +5 -5
  367. package/dist/console/runtime/server/env.get.js +9 -22
  368. package/dist/console/runtime/server/env.js +2 -42
  369. package/dist/console/runtime/server/invocation-capabilities.get.d.ts +5 -6
  370. package/dist/console/runtime/server/invocation-capabilities.get.js +8 -13
  371. package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -37
  372. package/dist/console/runtime/server/invocation-workspace.get.js +35 -201
  373. package/dist/console/runtime/server/invocation.get.d.ts +2 -2
  374. package/dist/console/runtime/server/invocation.get.js +35 -27
  375. package/dist/console/runtime/server/invocations.get.d.ts +12 -6
  376. package/dist/console/runtime/server/invocations.get.js +45 -60
  377. package/dist/console/runtime/server/logs.get.d.ts +8 -5
  378. package/dist/console/runtime/server/logs.get.js +25 -14
  379. package/dist/console/runtime/server/mcp-client-operations.d.ts +5 -0
  380. package/dist/console/runtime/server/mcp-client-operations.js +139 -0
  381. package/dist/console/runtime/server/operation-contributions.d.ts +2 -0
  382. package/dist/console/runtime/server/operation-contributions.js +2 -0
  383. package/dist/console/runtime/server/page-auth.d.ts +18 -0
  384. package/dist/console/runtime/server/page-auth.js +44 -0
  385. package/dist/console/runtime/server/page-session.d.ts +1 -1
  386. package/dist/console/runtime/server/page-session.js +1 -1
  387. package/dist/console/runtime/server/page-tool.d.ts +2 -0
  388. package/dist/console/runtime/server/page-tool.js +105 -0
  389. package/dist/console/runtime/server/rpc.d.ts +16 -11
  390. package/dist/console/runtime/server/rpc.js +119 -112
  391. package/dist/console/runtime/server/runtime.d.ts +2 -0
  392. package/dist/console/runtime/server/runtime.js +2 -0
  393. package/dist/console/runtime/server/search.get.d.ts +1 -6
  394. package/dist/console/runtime/server/search.get.js +3 -9
  395. package/dist/console/runtime/server/sections.d.ts +6 -4
  396. package/dist/console/runtime/server/sections.get.d.ts +2 -22
  397. package/dist/console/runtime/server/sections.get.js +37 -13
  398. package/dist/console/runtime/server/sections.js +7 -4
  399. package/dist/console/runtime/server/setup.d.ts +5 -0
  400. package/dist/console/runtime/server/setup.js +5 -0
  401. package/dist/console/runtime/server/site-entry.d.ts +24 -0
  402. package/dist/console/runtime/server/site-entry.js +142 -0
  403. package/dist/console/runtime/server/site-session.d.ts +85 -0
  404. package/dist/console/runtime/server/site-session.js +2 -0
  405. package/dist/console/runtime/server/status.get.d.ts +7 -4
  406. package/dist/console/runtime/server/status.get.js +12 -22
  407. package/dist/console/runtime/server/tickets.d.ts +2 -0
  408. package/dist/console/runtime/server/tickets.js +2 -0
  409. package/dist/console/runtime/server/usage.get.d.ts +7 -4
  410. package/dist/console/runtime/server/usage.get.js +16 -23
  411. package/dist/console/runtime/server/workspace-files.get.d.ts +12 -0
  412. package/dist/console/runtime/server/workspace-files.get.js +55 -0
  413. package/dist/console/runtime/site-access.d.ts +2 -0
  414. package/dist/console/runtime/site-access.js +2 -0
  415. package/dist/console/runtime/skills.d.ts +18 -0
  416. package/dist/console/runtime/skills.js +17 -0
  417. package/dist/console/server.d.ts +20 -9
  418. package/dist/console/server.js +9 -34
  419. package/dist/console/ui.d.ts +16 -0
  420. package/dist/console/ui.js +374 -356
  421. package/dist/console-lazy-views-DXnIkdyd.js +2 -0
  422. package/dist/console-route-COvNB_Xj.js +49 -0
  423. package/dist/console.d.ts +1 -1
  424. package/dist/content/collections.d.ts +1 -0
  425. package/dist/content/collections.js +2 -0
  426. package/dist/content/markdown.d.ts +1 -0
  427. package/dist/content/markdown.js +2 -0
  428. package/dist/content/preview.d.ts +1 -0
  429. package/dist/content/preview.js +2 -0
  430. package/dist/content/sqlite.d.ts +1 -0
  431. package/dist/content/sqlite.js +2 -0
  432. package/dist/content.d.ts +1 -2
  433. package/dist/content.js +0 -1
  434. package/dist/database-BVyhAxq-.d.ts +6 -0
  435. package/dist/database-J7M0B3ED.js +17 -0
  436. package/dist/decisions/vue.d.ts +1 -0
  437. package/dist/decisions/vue.js +2 -0
  438. package/dist/decisions.d.ts +1 -0
  439. package/dist/decisions.js +2 -0
  440. package/dist/definitions-BDRkT5-f.js +336 -0
  441. package/dist/definitions-CGTWTj67.d.ts +19 -0
  442. package/dist/definitions-CxDT8D8Y.d.ts +243 -0
  443. package/dist/definitions-bepsXY5G.js +98 -0
  444. package/dist/dev-peer-am78OsHH.js +472 -0
  445. package/dist/development-BzeSHZGH.js +18 -0
  446. package/dist/development-DgaQ05jw.d.ts +9 -0
  447. package/dist/device/vue.d.ts +1 -0
  448. package/dist/device/vue.js +2 -0
  449. package/dist/device.d.ts +1 -0
  450. package/dist/device.js +2 -0
  451. package/dist/diagnostics-CjGiniKb.d.ts +11 -0
  452. package/dist/diagnostics-D0DefmQj.js +79 -0
  453. package/dist/docs/assistant.d.ts +1 -0
  454. package/dist/docs/assistant.js +2 -0
  455. package/dist/docs/nuxt.d.ts +3 -0
  456. package/dist/docs/nuxt.js +3 -0
  457. package/dist/docs/server.d.ts +1 -0
  458. package/dist/docs/server.js +2 -0
  459. package/dist/docs.d.ts +1 -0
  460. package/dist/docs.js +2 -0
  461. package/dist/doctor.d.ts +7 -2
  462. package/dist/doctor.js +2975 -296
  463. package/dist/documents-8US1nUgK.js +547 -0
  464. package/dist/documents-C97WMaJZ.d.ts +474 -0
  465. package/dist/documents-DwPfR-fz.js +136 -0
  466. package/dist/documents-RVHsQKFw.d.ts +87 -0
  467. package/dist/durability/operations.d.ts +5 -0
  468. package/dist/durability/operations.js +28 -0
  469. package/dist/email/test.d.ts +1 -0
  470. package/dist/email/test.js +2 -0
  471. package/dist/entries-D48wVEaS.js +142 -0
  472. package/dist/env-Dg1I_DWr.js +11 -0
  473. package/dist/error-diagnostics-C2rjmOlX.js +630 -0
  474. package/dist/error-diagnostics.ts +628 -151
  475. package/dist/forge.d.ts +1 -0
  476. package/dist/forge.js +2 -0
  477. package/dist/format-BOYlanIZ.js +304 -0
  478. package/dist/forms/client.d.ts +1 -0
  479. package/dist/forms/client.js +2 -0
  480. package/dist/forms/database.d.ts +1 -0
  481. package/dist/forms/database.js +2 -0
  482. package/dist/forms/formisch.d.ts +1 -0
  483. package/dist/forms/formisch.js +2 -0
  484. package/dist/forms/operations.d.ts +1 -0
  485. package/dist/forms/operations.js +2 -0
  486. package/dist/forms/runtime.d.ts +1 -0
  487. package/dist/forms/runtime.js +2 -0
  488. package/dist/forms/vue.d.ts +1 -0
  489. package/dist/forms/vue.js +2 -0
  490. package/dist/forms.d.ts +1 -0
  491. package/dist/forms.js +2 -0
  492. package/dist/gateways/ai-sdk.d.ts +1 -0
  493. package/dist/gateways/ai-sdk.js +2 -0
  494. package/dist/host-CkL0jjBq.js +11 -0
  495. package/dist/http-error-Bs6e8_-8.js +30 -0
  496. package/dist/i18n/runtime.d.ts +1 -0
  497. package/dist/i18n/runtime.js +2 -0
  498. package/dist/i18n/server.d.ts +1 -0
  499. package/dist/i18n/server.js +2 -0
  500. package/dist/i18n/vue.d.ts +1 -0
  501. package/dist/i18n/vue.js +2 -0
  502. package/dist/i18n.d.ts +1 -0
  503. package/dist/i18n.js +2 -0
  504. package/dist/index.d.ts +7 -3
  505. package/dist/index.js +39 -2
  506. package/dist/inspect-CDw7e0vK.js +127 -0
  507. package/dist/internal/agent-invocations-libsql.d.ts +2 -0
  508. package/dist/internal/agent-invocations-libsql.js +2 -0
  509. package/dist/internal/disabled-redis-driver.d.ts +3 -0
  510. package/dist/internal/disabled-redis-driver.js +7 -0
  511. package/dist/internal/disabled-upstash-driver.d.ts +3 -0
  512. package/dist/internal/disabled-upstash-driver.js +7 -0
  513. package/dist/internal/test-loader.d.ts +8 -0
  514. package/dist/internal/test-loader.js +75 -0
  515. package/dist/internal/test-server.d.ts +1 -0
  516. package/dist/internal/test-server.js +84 -0
  517. package/dist/internal-BP_O70ic.d.ts +59 -0
  518. package/dist/internal-BreyUsQ6.js +31 -0
  519. package/dist/invariant-DolT9EEx.js +22 -0
  520. package/dist/invocation-page-undo-BkUau8X7.js +54 -0
  521. package/dist/invocations-CsucCJuq.js +86 -0
  522. package/dist/limits-BUlwWYQE.js +34 -0
  523. package/dist/logs/host.d.ts +1 -1
  524. package/dist/logs/host.js +1 -15
  525. package/dist/logs/memory.d.ts +2 -18
  526. package/dist/logs/memory.js +1 -84
  527. package/dist/logs/source.d.ts +2 -57
  528. package/dist/logs/source.js +2 -57
  529. package/dist/logs.d.ts +3 -4
  530. package/dist/logs.js +3 -4
  531. package/dist/mcp-client-CTbTbn7d.js +10 -0
  532. package/dist/mcp-client-C_sEmyQw.d.ts +118 -0
  533. package/dist/mcp-client-D0mUt18v.js +1024 -0
  534. package/dist/mcp.d.ts +1 -0
  535. package/dist/mcp.js +2 -0
  536. package/dist/media-library-BChf8XOd.js +279 -0
  537. package/dist/media-library-CEo-Ye2B.d.ts +212 -0
  538. package/dist/media-uKX4Wy-c.d.ts +74 -0
  539. package/dist/media-wZMY6f2M.js +478 -0
  540. package/dist/memory-2bbl4hcV.d.ts +19 -0
  541. package/dist/memory-DhirB6SA.js +86 -0
  542. package/dist/nuxt-server-imports-Lnaf5Fe-.js +97 -0
  543. package/dist/nuxt.d.ts +10 -5
  544. package/dist/nuxt.js +699 -558
  545. package/dist/object-D8pRdprI.js +15 -0
  546. package/dist/operation-contributions-DflAv5AC.js +50 -0
  547. package/dist/operation-contributions-fZyVo662.d.ts +21 -0
  548. package/dist/operation-definition-Bn8V2hab.js +430 -0
  549. package/dist/operation-registry-BogGwk_I.js +22 -0
  550. package/dist/operation-rpc-DI9txNxK.js +158 -0
  551. package/dist/operations-B6N-ja8x.js +863 -0
  552. package/dist/operations-DX9EkHwb.d.ts +153 -0
  553. package/dist/operations-Dj_cp-UK.js +235 -0
  554. package/dist/operations-H9q0QB2C.js +2 -0
  555. package/dist/operations.d.ts +1 -2
  556. package/dist/operations.js +2 -2
  557. package/dist/optional-owners-Crm6kVS5.js +889 -0
  558. package/dist/page/pill.iife.js +70 -0
  559. package/dist/page-tool-BCRyx3pM.d.ts +68 -0
  560. package/dist/page-tools-BkSSBFoi.js +444 -0
  561. package/dist/page-tools-shared-D3fFoEV2.js +122 -0
  562. package/dist/page-tools-sw4I-Nqx.d.ts +23 -0
  563. package/dist/plugins-5uDXr9Km.d.ts +2124 -0
  564. package/dist/plugins-DQ8pF-38.js +11325 -0
  565. package/dist/presets/workspace.d.ts +1 -0
  566. package/dist/presets/workspace.js +1 -0
  567. package/dist/project-5EN7JaXI.d.ts +26 -0
  568. package/dist/project-C2dnB9Kf.js +30 -0
  569. package/dist/project-DOeM0zg3.js +57 -0
  570. package/dist/project-link-D_XQvBOC.d.ts +94 -0
  571. package/dist/project-link-Qi7nltHM.js +149 -0
  572. package/dist/project-root-v6ba4tn7.js +12 -0
  573. package/dist/projects-CAcXztf4.js +154 -0
  574. package/dist/projects-Ddvl9EJp.d.ts +66 -0
  575. package/dist/rate-limit/drivers/cloudflare.d.ts +1 -0
  576. package/dist/rate-limit/drivers/cloudflare.js +2 -0
  577. package/dist/rate-limit/drivers/kv.d.ts +1 -0
  578. package/dist/rate-limit/drivers/kv.js +2 -0
  579. package/dist/rate-limit/drivers/memory.d.ts +1 -0
  580. package/dist/rate-limit/drivers/memory.js +2 -0
  581. package/dist/realtime/agent.d.ts +1 -0
  582. package/dist/realtime/agent.js +2 -0
  583. package/dist/realtime/bus.d.ts +1 -0
  584. package/dist/realtime/bus.js +2 -0
  585. package/dist/realtime/client.d.ts +1 -0
  586. package/dist/realtime/client.js +2 -0
  587. package/dist/registry-CDKLACCZ.js +16 -0
  588. package/dist/registry-zw6aE2N9.js +18 -0
  589. package/dist/request-BUYAlAJl.js +162 -0
  590. package/dist/request-D7h3SQ92.d.ts +21 -0
  591. package/dist/request-origin-Bq7mDQG9.js +23 -0
  592. package/dist/request-yCybBeqT.js +468 -0
  593. package/dist/route-query-CRVWXIrc.js +222 -0
  594. package/dist/rpc-7nlHSv3y.d.ts +37 -0
  595. package/dist/rpc-DIUA61pv.js +4 -0
  596. package/dist/runtime/durability.d.ts +1 -0
  597. package/dist/runtime/durability.js +2 -0
  598. package/dist/runtime-B_btezs1.d.ts +7 -0
  599. package/dist/runtime-DG34DLXc.js +55 -0
  600. package/dist/runtime-DM8Z6KLT.js +10 -0
  601. package/dist/runtime-DxfJOfCd.js +25 -0
  602. package/dist/runtime-YLWfdrtO.js +65 -0
  603. package/dist/runtime-feature-guard-rpZz1eMF.js +55 -0
  604. package/dist/scan-module-BTeOuZsp.js +2 -0
  605. package/dist/scan-module-DlHQ8a0X.js +148 -0
  606. package/dist/schedule/os.d.ts +1 -0
  607. package/dist/schedule/os.js +2 -0
  608. package/dist/secret-AZLhaNyr.js +44 -0
  609. package/dist/sections-4xyBoiar.d.ts +159 -0
  610. package/dist/sections-ACHVTCWn.d.ts +10 -0
  611. package/dist/sections-BriKrBgN.d.ts +57 -0
  612. package/dist/sections-C83x0slv.js +13 -0
  613. package/dist/sections-CUJyQA9d.js +122 -0
  614. package/dist/sections-D6AM5Gy5.js +369 -0
  615. package/dist/sections.get-1lHjyKCI.d.ts +20 -0
  616. package/dist/seo/runtime.d.ts +64 -0
  617. package/dist/seo/runtime.js +123 -0
  618. package/dist/seo-CtLywyRx.d.ts +24 -0
  619. package/dist/seo.d.ts +2 -0
  620. package/dist/seo.js +17 -0
  621. package/dist/server-DbjFYSeU.js +18 -0
  622. package/dist/setup-C-5nB7aY.js +22 -0
  623. package/dist/setup-DLZFzuLv.d.ts +12 -0
  624. package/dist/site-access-Bhsty_v4.js +2 -0
  625. package/dist/site-access-BycrwM2v.js +18 -0
  626. package/dist/site-access-CyRtc0gZ.js +292 -0
  627. package/dist/site-access-DxfdOel1.d.ts +55 -0
  628. package/dist/site-session-Jf21TVw8.js +272 -0
  629. package/dist/skills/operations.d.ts +17 -0
  630. package/dist/skills/operations.js +51 -0
  631. package/dist/skills-DdpSMiCI.js +500 -0
  632. package/dist/skills.d.ts +197 -0
  633. package/dist/skills.get-CHQMzSD_.js +48 -0
  634. package/dist/skills.js +2 -0
  635. package/dist/source/drizzle.d.ts +1 -0
  636. package/dist/source/drizzle.js +2 -0
  637. package/dist/source/vite.d.ts +1 -7
  638. package/dist/source/vite.js +2 -20
  639. package/dist/source-S-LChQvw.d.ts +59 -0
  640. package/dist/source-w9BHUwyO.js +60 -0
  641. package/dist/source.d.ts +1 -2
  642. package/dist/source.js +0 -1
  643. package/dist/stored-Dhv2qsQv.js +40 -0
  644. package/dist/sync/client.d.ts +1 -0
  645. package/dist/sync/client.js +2 -0
  646. package/dist/sync/database.d.ts +1 -0
  647. package/dist/sync/database.js +2 -0
  648. package/dist/sync/operations.d.ts +1 -0
  649. package/dist/sync/operations.js +2 -0
  650. package/dist/sync/runtime.d.ts +1 -0
  651. package/dist/sync/runtime.js +2 -0
  652. package/dist/sync/vue.d.ts +1 -0
  653. package/dist/sync/vue.js +2 -0
  654. package/dist/sync.d.ts +1 -0
  655. package/dist/sync.js +2 -0
  656. package/dist/task/operations.d.ts +22 -0
  657. package/dist/task/operations.js +36 -0
  658. package/dist/test/register.d.ts +1 -0
  659. package/dist/test/register.js +68 -0
  660. package/dist/test.d.ts +175 -0
  661. package/dist/test.js +49 -0
  662. package/dist/ticket-Pr_8ZtXW.d.ts +14 -0
  663. package/dist/ticket-RKQF6Wy9.js +31 -0
  664. package/dist/tickets-CfJhT7d0.js +358 -0
  665. package/dist/ui/markdown-editor.d.ts +1 -0
  666. package/dist/ui/markdown-editor.js +2 -0
  667. package/dist/ui/playground.d.ts +1 -0
  668. package/dist/ui/playground.js +2 -0
  669. package/dist/ui/styles.css +2 -2662
  670. package/dist/ui/theme.css +2 -0
  671. package/dist/ui/theme.d.ts +1 -0
  672. package/dist/ui/theme.js +2 -0
  673. package/dist/ui/workspace.d.ts +1 -0
  674. package/dist/ui/workspace.js +2 -0
  675. package/dist/usage-Bc0YY_ka.js +569 -0
  676. package/dist/usage-index-CMMT4cXQ.js +335 -0
  677. package/dist/version-DDRL_OYz.js +1080 -0
  678. package/dist/vue-router-C68IU1jM.d.ts +1914 -0
  679. package/dist/web-container/connect.d.ts +1 -0
  680. package/dist/web-container/connect.js +2 -0
  681. package/dist/web-container/env.d.ts +1 -0
  682. package/dist/web-container/env.js +2 -0
  683. package/dist/web-container/snapshot.d.ts +1 -0
  684. package/dist/web-container/snapshot.js +2 -0
  685. package/dist/web-container.d.ts +1 -0
  686. package/dist/web-container.js +2 -0
  687. package/dist/webhooks/database.d.ts +1 -0
  688. package/dist/webhooks/database.js +2 -0
  689. package/dist/webhooks/operations.d.ts +1 -0
  690. package/dist/webhooks/operations.js +2 -0
  691. package/dist/webhooks/runtime.d.ts +1 -0
  692. package/dist/webhooks/runtime.js +2 -0
  693. package/dist/webhooks.d.ts +1 -0
  694. package/dist/webhooks.js +2 -0
  695. package/dist/workflow/openworkflow.d.ts +1 -0
  696. package/dist/workflow/openworkflow.js +2 -0
  697. package/dist/workspace/checkout.d.ts +1 -0
  698. package/dist/workspace/checkout.js +2 -0
  699. package/dist/workspace/files.d.ts +1 -0
  700. package/dist/workspace/files.js +2 -0
  701. package/dist/workspace/lineage.d.ts +1 -0
  702. package/dist/workspace/lineage.js +2 -0
  703. package/dist/workspace-history-CeVwBB6Q.d.ts +52 -0
  704. package/dist/workspace-history-l47NPVSy.js +248 -0
  705. package/package.json +690 -706
  706. package/dist/_internal/agent/cloudflare/state.d.ts +0 -1
  707. package/dist/_internal/agent/cloudflare/state.js +0 -2
  708. package/dist/_internal/agent/cloudflare.d.ts +0 -1
  709. package/dist/_internal/agent/cloudflare.js +0 -2
  710. package/dist/_internal/agent/eve.d.ts +0 -1
  711. package/dist/_internal/agent/eve.js +0 -2
  712. package/dist/_internal/agent/invocations.d.ts +0 -2
  713. package/dist/_internal/agent/invocations.js +0 -88
  714. package/dist/_internal/agent/operations.d.ts +0 -1
  715. package/dist/_internal/agent/operations.js +0 -2
  716. package/dist/_internal/agent/runtime/invocations-dev.d.ts +0 -1
  717. package/dist/_internal/agent/runtime/invocations-dev.js +0 -2
  718. package/dist/_internal/agent/runtime/process.d.ts +0 -1
  719. package/dist/_internal/agent/runtime/process.js +0 -2
  720. package/dist/_internal/agent/runtime/workflow.d.ts +0 -1
  721. package/dist/_internal/agent/runtime/workflow.js +0 -2
  722. package/dist/_internal/agent/server/internal.d.ts +0 -1
  723. package/dist/_internal/agent/server/internal.js +0 -2
  724. package/dist/_internal/agent/server/registry.d.ts +0 -1
  725. package/dist/_internal/agent/server/registry.js +0 -2
  726. package/dist/_internal/agent/server/workspace.d.ts +0 -1
  727. package/dist/_internal/agent/server/workspace.js +0 -2
  728. package/dist/_internal/agent/server.d.ts +0 -1
  729. package/dist/_internal/agent/server.js +0 -2
  730. package/dist/_internal/agent/state/sqlite.d.ts +0 -1
  731. package/dist/_internal/agent/state/sqlite.js +0 -2
  732. package/dist/_internal/agent.d.ts +0 -1
  733. package/dist/_internal/agent.js +0 -2
  734. package/dist/_internal/auth/runtime/console.d.ts +0 -1
  735. package/dist/_internal/auth/runtime/console.js +0 -2
  736. package/dist/_internal/blob/operations.d.ts +0 -1
  737. package/dist/_internal/blob/operations.js +0 -2
  738. package/dist/_internal/blob/runtime/state.d.ts +0 -1
  739. package/dist/_internal/blob/runtime/state.js +0 -2
  740. package/dist/_internal/blob.d.ts +0 -1
  741. package/dist/_internal/blob.js +0 -2
  742. package/dist/_internal/comments/operations.d.ts +0 -1
  743. package/dist/_internal/comments/operations.js +0 -2
  744. package/dist/_internal/comments/runtime/console.d.ts +0 -1
  745. package/dist/_internal/comments/runtime/console.js +0 -2
  746. package/dist/_internal/content/operations.d.ts +0 -1
  747. package/dist/_internal/content/operations.js +0 -2
  748. package/dist/_internal/content/runtime/console.d.ts +0 -1
  749. package/dist/_internal/content/runtime/console.js +0 -2
  750. package/dist/_internal/database/runtime/state.d.ts +0 -5
  751. package/dist/_internal/database/runtime/state.js +0 -7
  752. package/dist/_internal/email/operations.d.ts +0 -1
  753. package/dist/_internal/email/operations.js +0 -2
  754. package/dist/_internal/email/runtime/console.d.ts +0 -1
  755. package/dist/_internal/email/runtime/console.js +0 -2
  756. package/dist/_internal/kv/operations.d.ts +0 -1
  757. package/dist/_internal/kv/operations.js +0 -2
  758. package/dist/_internal/kv/runtime/disabled-upstash.d.ts +0 -3
  759. package/dist/_internal/kv/runtime/disabled-upstash.js +0 -7
  760. package/dist/_internal/kv.d.ts +0 -1
  761. package/dist/_internal/kv.js +0 -2
  762. package/dist/_internal/markdown-template.d.ts +0 -2
  763. package/dist/_internal/markdown-template.js +0 -2
  764. package/dist/_internal/queue/operations.d.ts +0 -1
  765. package/dist/_internal/queue/operations.js +0 -2
  766. package/dist/_internal/rate-limit/operations.d.ts +0 -1
  767. package/dist/_internal/rate-limit/operations.js +0 -2
  768. package/dist/_internal/rate-limit/runtime.d.ts +0 -1
  769. package/dist/_internal/rate-limit/runtime.js +0 -2
  770. package/dist/_internal/sandbox/task/runtime/state.d.ts +0 -1
  771. package/dist/_internal/sandbox/task/runtime/state.js +0 -2
  772. package/dist/_internal/schedule/operations.d.ts +0 -1
  773. package/dist/_internal/schedule/operations.js +0 -2
  774. package/dist/_internal/schedule/runtime/kv.d.ts +0 -1
  775. package/dist/_internal/schedule/runtime/kv.js +0 -2
  776. package/dist/_internal/schedule/runtime/process.d.ts +0 -1
  777. package/dist/_internal/schedule/runtime/process.js +0 -2
  778. package/dist/_internal/schedule/runtime/static.d.ts +0 -1
  779. package/dist/_internal/schedule/runtime/static.js +0 -2
  780. package/dist/_internal/schedule/runtime.d.ts +0 -1
  781. package/dist/_internal/schedule/runtime.js +0 -2
  782. package/dist/_internal/schedule.d.ts +0 -1
  783. package/dist/_internal/schedule.js +0 -2
  784. package/dist/_internal/task/operations.d.ts +0 -5
  785. package/dist/_internal/task/operations.js +0 -2
  786. package/dist/_internal/workflow/operations.d.ts +0 -1
  787. package/dist/_internal/workflow/operations.js +0 -2
  788. package/dist/_internal/workflow/runtime/cloudflare-runner.d.ts +0 -1
  789. package/dist/_internal/workflow/runtime/cloudflare-runner.js +0 -2
  790. package/dist/_internal/workflow/runtime/cloudflare-vite.d.ts +0 -1
  791. package/dist/_internal/workflow/runtime/cloudflare-vite.js +0 -2
  792. package/dist/_internal/workflow/runtime/execute.d.ts +0 -1
  793. package/dist/_internal/workflow/runtime/execute.js +0 -2
  794. package/dist/_internal/workflow/runtime/state.d.ts +0 -1
  795. package/dist/_internal/workflow/runtime/state.js +0 -2
  796. package/dist/_internal/workflow/runtime/vercel-vite.d.ts +0 -1
  797. package/dist/_internal/workflow/runtime/vercel-vite.js +0 -2
  798. package/dist/_internal/workflow.d.ts +0 -1
  799. package/dist/_internal/workflow.js +0 -2
  800. package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.d.ts +0 -1
  801. package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.js +0 -2
  802. package/dist/_internal/workspace/internal/runtime/hosted.d.ts +0 -1
  803. package/dist/_internal/workspace/internal/runtime/hosted.js +0 -2
  804. package/dist/_internal/workspace/internal/runtime/state.d.ts +0 -1
  805. package/dist/_internal/workspace/internal/runtime/state.js +0 -2
  806. package/dist/_internal/workspace/operations.d.ts +0 -1
  807. package/dist/_internal/workspace/operations.js +0 -2
  808. package/dist/_internal/workspace/runtime.d.ts +0 -1
  809. package/dist/_internal/workspace/runtime.js +0 -2
  810. package/dist/_internal/workspace.d.ts +0 -1
  811. package/dist/_internal/workspace.js +0 -2
  812. package/dist/access-BhTe9yuV.js +0 -516
  813. package/dist/access-CBqnsYdj.d.ts +0 -130
  814. package/dist/agent/invocations/d1.d.ts +0 -1
  815. package/dist/agent/invocations/d1.js +0 -2
  816. package/dist/agent/invocations/sqlite.d.ts +0 -1
  817. package/dist/agent/invocations/sqlite.js +0 -2
  818. package/dist/agent/process-host.d.ts +0 -1
  819. package/dist/agent/process-host.js +0 -2
  820. package/dist/agent/runtime/process.d.ts +0 -1
  821. package/dist/agent/runtime/process.js +0 -2
  822. package/dist/agent/server/github.d.ts +0 -1
  823. package/dist/agent/server/github.js +0 -2
  824. package/dist/agent/state/sqlite.d.ts +0 -1
  825. package/dist/agent/state/sqlite.js +0 -2
  826. package/dist/agent-invocations.post-CFKMEy-h.js +0 -432
  827. package/dist/agents-BNmuN4Qa.d.ts +0 -99
  828. package/dist/agents-CVehuMFA.js +0 -118
  829. package/dist/auth/console-runtime.d.ts +0 -1
  830. package/dist/auth/console-runtime.js +0 -2
  831. package/dist/auth/console.d.ts +0 -1
  832. package/dist/auth/console.js +0 -2
  833. package/dist/auth-BSSM-qh0.js +0 -700
  834. package/dist/auth-CG8tmgH7.d.ts +0 -106
  835. package/dist/auth-cloudflare-access-CE8xUzhY.d.ts +0 -50
  836. package/dist/auth-inline-config--vlclzm3.js +0 -18
  837. package/dist/auth-inline-config-R6q_4Iwo.d.ts +0 -30
  838. package/dist/auth-path-B7Ssonj-.js +0 -49
  839. package/dist/blob/content-type.d.ts +0 -1
  840. package/dist/blob/content-type.js +0 -2
  841. package/dist/blob-D9v5Djxw.d.ts +0 -7
  842. package/dist/browser/actions.d.ts +0 -1
  843. package/dist/browser/actions.js +0 -2
  844. package/dist/cloudflare-env-CIZCKabz.js +0 -70
  845. package/dist/comments-overlay/loader.BcGn0Hsk.js +0 -1
  846. package/dist/comments-overlay/overlay.D7vmaSrE.js +0 -2
  847. package/dist/connections/http.d.ts +0 -1
  848. package/dist/connections/http.js +0 -2
  849. package/dist/console/auth-client.d.ts +0 -8
  850. package/dist/console/auth-client.js +0 -6
  851. package/dist/console/auth-cloudflare-access.d.ts +0 -2
  852. package/dist/console/auth-cloudflare-access.js +0 -116
  853. package/dist/console/auth-inline.d.ts +0 -6
  854. package/dist/console/auth-inline.js +0 -107
  855. package/dist/console/runtime/client/build.d.ts +0 -14
  856. package/dist/console/runtime/client/build.js +0 -68
  857. package/dist/console/runtime/client/connections-management.d.ts +0 -68
  858. package/dist/console/runtime/client/connections-management.js +0 -201
  859. package/dist/console/runtime/client/env-management.d.ts +0 -20
  860. package/dist/console/runtime/client/env-management.js +0 -84
  861. package/dist/console/runtime/client/mcp.d.ts +0 -9
  862. package/dist/console/runtime/client/mcp.js +0 -14
  863. package/dist/console/runtime/client/sign-in.d.ts +0 -21
  864. package/dist/console/runtime/client/sign-in.js +0 -16
  865. package/dist/console/runtime/client/time.d.ts +0 -30
  866. package/dist/console/runtime/client/time.js +0 -106
  867. package/dist/console/runtime/components/console-connect-agent.vue +0 -59
  868. package/dist/console/runtime/components/console-connections-activity.vue +0 -76
  869. package/dist/console/runtime/components/console-connections-approvals.vue +0 -169
  870. package/dist/console/runtime/components/console-connections-details.vue +0 -295
  871. package/dist/console/runtime/components/console-connections.vue +0 -296
  872. package/dist/console/runtime/components/console-env-access.vue +0 -151
  873. package/dist/console/runtime/components/console-env-activity.vue +0 -89
  874. package/dist/console/runtime/components/console-env-managed.vue +0 -203
  875. package/dist/console/runtime/components/console-status.vue +0 -25
  876. package/dist/console/runtime/components/invocation/internal/runtime-type.ts +0 -61
  877. package/dist/console/runtime/components/invocation/nuxt/AgentInvocation.ts +0 -1
  878. package/dist/console/runtime/components/invocation/nuxt/AgentInvocationInspector.ts +0 -1
  879. package/dist/console/runtime/components/invocation/nuxt/AgentInvocationList.ts +0 -1
  880. package/dist/console/runtime/public/console/assets/console-app-CUTwptGe.css +0 -1
  881. package/dist/console/runtime/public/console/assets/console-auth-B_XoOPaB.css +0 -1
  882. package/dist/console/runtime/public/console/assets/console-database-BbZ7J_Mh.css +0 -1
  883. package/dist/console/runtime/public/console/assets/console-documents-BV1adqXa.css +0 -1
  884. package/dist/console/runtime/public/console/assets/console-home-DYNL7OZH.css +0 -1
  885. package/dist/console/runtime/public/console/assets/console-logs-BJxR8DcR.css +0 -1
  886. package/dist/console/runtime/public/console/assets/console-media-browser-Dqm8kLKS.css +0 -1
  887. package/dist/console/runtime/public/console/assets/console-search-DnK-eWOO.css +0 -1
  888. package/dist/console/runtime/public/console/assets/katex-BztabbvB.css +0 -1
  889. package/dist/console/runtime/public/console/chunks/Alert-A44KLyli.js +0 -111
  890. package/dist/console/runtime/public/console/chunks/Button-B-5IVAVN.js +0 -1
  891. package/dist/console/runtime/public/console/chunks/Checkbox-B6MMrqB7.js +0 -1
  892. package/dist/console/runtime/public/console/chunks/DashboardSidebar-D1tMg0lD.js +0 -1
  893. package/dist/console/runtime/public/console/chunks/Empty-DSuwpzRi.js +0 -1
  894. package/dist/console/runtime/public/console/chunks/FormField-C1QuQLPv.js +0 -1
  895. package/dist/console/runtime/public/console/chunks/Icon-DDNuGxPl.js +0 -1
  896. package/dist/console/runtime/public/console/chunks/Modal-BCfHPiul.js +0 -1
  897. package/dist/console/runtime/public/console/chunks/Popover-BIzgqwDJ.js +0 -1
  898. package/dist/console/runtime/public/console/chunks/RovingFocusItem-BQiInss6.js +0 -1
  899. package/dist/console/runtime/public/console/chunks/Select-CLtjSqJ4.js +0 -1
  900. package/dist/console/runtime/public/console/chunks/Slideover-CHzYTMLO.js +0 -1
  901. package/dist/console/runtime/public/console/chunks/Switch-0VgVgteh.js +0 -1
  902. package/dist/console/runtime/public/console/chunks/Table-dr_6Rarq.js +0 -4
  903. package/dist/console/runtime/public/console/chunks/Tabs-BbKlHRNF.js +0 -1
  904. package/dist/console/runtime/public/console/chunks/Textarea-DEoHK30I.js +0 -1
  905. package/dist/console/runtime/public/console/chunks/abap-CLvhMVsD.js +0 -1
  906. package/dist/console/runtime/public/console/chunks/actionscript-3-Cs6JJXT5.js +0 -1
  907. package/dist/console/runtime/public/console/chunks/ada-X3Y2mlq2.js +0 -1
  908. package/dist/console/runtime/public/console/chunks/ahk-DwADkxyd.js +0 -1
  909. package/dist/console/runtime/public/console/chunks/ahk2-_6rzW9BS.js +0 -1
  910. package/dist/console/runtime/public/console/chunks/andromeeda-BASpqCeJ-vGVdxbeo.js +0 -1
  911. package/dist/console/runtime/public/console/chunks/andromeeda-vGVdxbeo.js +0 -1
  912. package/dist/console/runtime/public/console/chunks/angular-html-_r0QlJAV.js +0 -1
  913. package/dist/console/runtime/public/console/chunks/angular-ts-BdSNcv2x.js +0 -1
  914. package/dist/console/runtime/public/console/chunks/apache-U0d_L8uA.js +0 -1
  915. package/dist/console/runtime/public/console/chunks/apex-KFGFyKwG.js +0 -1
  916. package/dist/console/runtime/public/console/chunks/apl-CD0B-dgl.js +0 -1
  917. package/dist/console/runtime/public/console/chunks/applescript-CCn79oCD.js +0 -1
  918. package/dist/console/runtime/public/console/chunks/ara-4CJ0cIlV.js +0 -1
  919. package/dist/console/runtime/public/console/chunks/asciidoc-SCjQUq34.js +0 -1
  920. package/dist/console/runtime/public/console/chunks/asm-Cmm7eHzH.js +0 -1
  921. package/dist/console/runtime/public/console/chunks/astro-BuBCLsVb.js +0 -1
  922. package/dist/console/runtime/public/console/chunks/aurora-x-CDeNXAV0.js +0 -1
  923. package/dist/console/runtime/public/console/chunks/aurora-x-DugsLcii-CDeNXAV0.js +0 -1
  924. package/dist/console/runtime/public/console/chunks/awk-BWXHIvNe.js +0 -1
  925. package/dist/console/runtime/public/console/chunks/ayu-dark-BT3qdi3o-DluEY0Gj.js +0 -1
  926. package/dist/console/runtime/public/console/chunks/ayu-dark-DluEY0Gj.js +0 -1
  927. package/dist/console/runtime/public/console/chunks/ayu-light-BVZyHoh9-C3h-C4tm.js +0 -1
  928. package/dist/console/runtime/public/console/chunks/ayu-light-C3h-C4tm.js +0 -1
  929. package/dist/console/runtime/public/console/chunks/ayu-mirage-Bqwy1Gya.js +0 -1
  930. package/dist/console/runtime/public/console/chunks/ayu-mirage-XFwUVZQZ-Bqwy1Gya.js +0 -1
  931. package/dist/console/runtime/public/console/chunks/ballerina-B7ZEbQpA.js +0 -1
  932. package/dist/console/runtime/public/console/chunks/bat-qdxAdBWQ.js +0 -1
  933. package/dist/console/runtime/public/console/chunks/beancount-C2IN4Vk8.js +0 -1
  934. package/dist/console/runtime/public/console/chunks/berry-DKpUyyne.js +0 -1
  935. package/dist/console/runtime/public/console/chunks/bibtex-Ci_nEsc7.js +0 -1
  936. package/dist/console/runtime/public/console/chunks/bicep-CUHmPFLl.js +0 -1
  937. package/dist/console/runtime/public/console/chunks/bird2-CYIUgYqB.js +0 -1
  938. package/dist/console/runtime/public/console/chunks/blade-3tdbLOEu.js +0 -1
  939. package/dist/console/runtime/public/console/chunks/bsl-_VjlB9mv.js +0 -1
  940. package/dist/console/runtime/public/console/chunks/c-C1MtNG6h.js +0 -1
  941. package/dist/console/runtime/public/console/chunks/c3-D0apG41V.js +0 -1
  942. package/dist/console/runtime/public/console/chunks/cadence-CQ2zXKGN.js +0 -1
  943. package/dist/console/runtime/public/console/chunks/cairo-DLTphjLi.js +0 -1
  944. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-C9Q5zVZY.js +0 -1
  945. package/dist/console/runtime/public/console/chunks/catppuccin-frappe-D20KODDN-C9Q5zVZY.js +0 -1
  946. package/dist/console/runtime/public/console/chunks/catppuccin-latte-CtsyrtPq.js +0 -1
  947. package/dist/console/runtime/public/console/chunks/catppuccin-latte-eGLVHIUJ-CtsyrtPq.js +0 -1
  948. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-R8nAf1vR.js +0 -1
  949. package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-bQGch4PY-R8nAf1vR.js +0 -1
  950. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-Bes8-0Mr-DjuaAJKi.js +0 -1
  951. package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DjuaAJKi.js +0 -1
  952. package/dist/console/runtime/public/console/chunks/chapel-BzgYECs1.js +0 -1
  953. package/dist/console/runtime/public/console/chunks/clarity-CtfBBspg.js +0 -1
  954. package/dist/console/runtime/public/console/chunks/clojure-DqKBuwfJ.js +0 -1
  955. package/dist/console/runtime/public/console/chunks/cmake-Bj61d0ZC.js +0 -1
  956. package/dist/console/runtime/public/console/chunks/cobol-DObdkphG.js +0 -1
  957. package/dist/console/runtime/public/console/chunks/code-view-J4OsgEdh-B89t0LaT.js +0 -2
  958. package/dist/console/runtime/public/console/chunks/codeowners-C8r90Shi.js +0 -1
  959. package/dist/console/runtime/public/console/chunks/codeql-oeQT6MSM.js +0 -1
  960. package/dist/console/runtime/public/console/chunks/coffee-C94_xO1a.js +0 -1
  961. package/dist/console/runtime/public/console/chunks/common-lisp-Cv5bFMCO.js +0 -1
  962. package/dist/console/runtime/public/console/chunks/console-app-C50IIheA.js +0 -85
  963. package/dist/console/runtime/public/console/chunks/console-auth-D4zc7Haw.js +0 -2
  964. package/dist/console/runtime/public/console/chunks/console-blob-CAJwJy4D.js +0 -1
  965. package/dist/console/runtime/public/console/chunks/console-channels-DZQwinKY.js +0 -1
  966. package/dist/console/runtime/public/console/chunks/console-connections-Buk5WGxr.js +0 -6
  967. package/dist/console/runtime/public/console/chunks/console-database-CKc8H8FN.js +0 -1
  968. package/dist/console/runtime/public/console/chunks/console-definitions-NriWGCYI.js +0 -1
  969. package/dist/console/runtime/public/console/chunks/console-documents-BnBRfM_7.js +0 -314
  970. package/dist/console/runtime/public/console/chunks/console-env-CLmYhbox.js +0 -1
  971. package/dist/console/runtime/public/console/chunks/console-home-smb5yMSF.js +0 -2
  972. package/dist/console/runtime/public/console/chunks/console-kv-B1tLQHM9.js +0 -1
  973. package/dist/console/runtime/public/console/chunks/console-logs-CjxEiek5.js +0 -1
  974. package/dist/console/runtime/public/console/chunks/console-media-browser-o4BQu9KZ.js +0 -1
  975. package/dist/console/runtime/public/console/chunks/console-operation-view-CGxpuMSQ.js +0 -1
  976. package/dist/console/runtime/public/console/chunks/console-page-header-DDAcJBpl.js +0 -1
  977. package/dist/console/runtime/public/console/chunks/console-page-toolbar-CvYwaKTR.js +0 -1
  978. package/dist/console/runtime/public/console/chunks/console-property-list-96rL7wos.js +0 -1
  979. package/dist/console/runtime/public/console/chunks/console-relative-time-RB6-yiul.js +0 -1
  980. package/dist/console/runtime/public/console/chunks/console-search-D4EVLUeN.js +0 -5
  981. package/dist/console/runtime/public/console/chunks/console-setup-hint-8TRzgkby.js +0 -1
  982. package/dist/console/runtime/public/console/chunks/console-status-DH5NgNAQ.js +0 -1
  983. package/dist/console/runtime/public/console/chunks/coq-CGaSfhwR.js +0 -1
  984. package/dist/console/runtime/public/console/chunks/core-CD3So4L1.js +0 -12
  985. package/dist/console/runtime/public/console/chunks/cpp-DMjdIJj9.js +0 -1
  986. package/dist/console/runtime/public/console/chunks/crystal-Czr8rWWf.js +0 -1
  987. package/dist/console/runtime/public/console/chunks/csharp-dmMxLVLW.js +0 -1
  988. package/dist/console/runtime/public/console/chunks/css-B6l3ejVl.js +0 -1
  989. package/dist/console/runtime/public/console/chunks/css-BDmUYLyz.js +0 -1
  990. package/dist/console/runtime/public/console/chunks/csv-Dx-8-gkx.js +0 -1
  991. package/dist/console/runtime/public/console/chunks/cue-CE9AQfxI.js +0 -1
  992. package/dist/console/runtime/public/console/chunks/cypher-ClKdZ_lG.js +0 -1
  993. package/dist/console/runtime/public/console/chunks/d-qD-0Kul2.js +0 -1
  994. package/dist/console/runtime/public/console/chunks/dark-plus-BGuiqa1B-Cs2F2srj.js +0 -1
  995. package/dist/console/runtime/public/console/chunks/dark-plus-Cs2F2srj.js +0 -1
  996. package/dist/console/runtime/public/console/chunks/dart-CHZY9Xhz.js +0 -1
  997. package/dist/console/runtime/public/console/chunks/dax-BkyTk9wS.js +0 -1
  998. package/dist/console/runtime/public/console/chunks/defu-DSJ9I3OW.js +0 -1
  999. package/dist/console/runtime/public/console/chunks/desktop-Dlh5hvp9.js +0 -1
  1000. package/dist/console/runtime/public/console/chunks/diff-woXpYk--.js +0 -1
  1001. package/dist/console/runtime/public/console/chunks/dist-Cfws9tG7.js +0 -1
  1002. package/dist/console/runtime/public/console/chunks/docker-sj3NF4m5.js +0 -1
  1003. package/dist/console/runtime/public/console/chunks/dockerfile-C147k2YT.js +0 -1
  1004. package/dist/console/runtime/public/console/chunks/dotenv-CuH5my32.js +0 -1
  1005. package/dist/console/runtime/public/console/chunks/dracula-0CVA2XY5-BHWKrbxM.js +0 -1
  1006. package/dist/console/runtime/public/console/chunks/dracula-BHWKrbxM.js +0 -1
  1007. package/dist/console/runtime/public/console/chunks/dracula-soft-5eyTD99u.js +0 -1
  1008. package/dist/console/runtime/public/console/chunks/dracula-soft-Dk9bpbVU-5eyTD99u.js +0 -1
  1009. package/dist/console/runtime/public/console/chunks/dream-maker-DW3nJb8Q.js +0 -1
  1010. package/dist/console/runtime/public/console/chunks/edge-D8F7z1FE.js +0 -1
  1011. package/dist/console/runtime/public/console/chunks/elixir-DH2VBix4.js +0 -1
  1012. package/dist/console/runtime/public/console/chunks/elm-D2qVkg3B.js +0 -1
  1013. package/dist/console/runtime/public/console/chunks/emacs-lisp-DR2vtWaj.js +0 -1
  1014. package/dist/console/runtime/public/console/chunks/engine-compile-DS_05kfr.js +0 -141
  1015. package/dist/console/runtime/public/console/chunks/engine-javascript-Dymre4AG.js +0 -1
  1016. package/dist/console/runtime/public/console/chunks/env-management-CNydNlRX.js +0 -1
  1017. package/dist/console/runtime/public/console/chunks/erb-B_-2w0Bg.js +0 -1
  1018. package/dist/console/runtime/public/console/chunks/erlang-Cphh6RMH.js +0 -1
  1019. package/dist/console/runtime/public/console/chunks/everforest-dark-CRjTbhh5-sB-x3p7T.js +0 -1
  1020. package/dist/console/runtime/public/console/chunks/everforest-dark-sB-x3p7T.js +0 -1
  1021. package/dist/console/runtime/public/console/chunks/everforest-light-CEeYFLn8-Df2xbC6M.js +0 -1
  1022. package/dist/console/runtime/public/console/chunks/everforest-light-Df2xbC6M.js +0 -1
  1023. package/dist/console/runtime/public/console/chunks/fennel-DQxkIbk2.js +0 -1
  1024. package/dist/console/runtime/public/console/chunks/field-a8AvhnKh-Da49LBBi.js +0 -1
  1025. package/dist/console/runtime/public/console/chunks/file-tree-2PXztdQ7.js +0 -1266
  1026. package/dist/console/runtime/public/console/chunks/fish-BJitypiv.js +0 -1
  1027. package/dist/console/runtime/public/console/chunks/fluent-C03EYrpw.js +0 -1
  1028. package/dist/console/runtime/public/console/chunks/format-Bm0hCiYP.js +0 -1
  1029. package/dist/console/runtime/public/console/chunks/fortran-fixed-form-DEKoE2YW.js +0 -1
  1030. package/dist/console/runtime/public/console/chunks/fortran-free-form-CYNrtFtB.js +0 -1
  1031. package/dist/console/runtime/public/console/chunks/fsharp-D13ZGOAj.js +0 -1
  1032. package/dist/console/runtime/public/console/chunks/gdresource-xMC7jr7x.js +0 -1
  1033. package/dist/console/runtime/public/console/chunks/gdscript-DYvRD3hg.js +0 -1
  1034. package/dist/console/runtime/public/console/chunks/gdshader-CBce3t8t.js +0 -1
  1035. package/dist/console/runtime/public/console/chunks/genie-CV2tkWYe.js +0 -1
  1036. package/dist/console/runtime/public/console/chunks/gherkin-DExj1W_8.js +0 -1
  1037. package/dist/console/runtime/public/console/chunks/git-commit-BSykSTBG.js +0 -1
  1038. package/dist/console/runtime/public/console/chunks/git-rebase-CNMiHM3o.js +0 -1
  1039. package/dist/console/runtime/public/console/chunks/github-dark-BXgKmOw_-C-LZuMrd.js +0 -1
  1040. package/dist/console/runtime/public/console/chunks/github-dark-C-LZuMrd.js +0 -1
  1041. package/dist/console/runtime/public/console/chunks/github-dark-default-DXG-b-1a.js +0 -1
  1042. package/dist/console/runtime/public/console/chunks/github-dark-default-Dk3Gj2bt.js +0 -1
  1043. package/dist/console/runtime/public/console/chunks/github-dark-default-DzJQXksd-DXG-b-1a.js +0 -1
  1044. package/dist/console/runtime/public/console/chunks/github-dark-dimmed-B1pEmGtS-Bx1FflLF.js +0 -1
  1045. package/dist/console/runtime/public/console/chunks/github-dark-dimmed-Bx1FflLF.js +0 -1
  1046. package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-B_tTalzw.js +0 -1
  1047. package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-BkHIa6jc-B_tTalzw.js +0 -1
  1048. package/dist/console/runtime/public/console/chunks/github-light-BKRlUbaB-EUqPIrTm.js +0 -1
  1049. package/dist/console/runtime/public/console/chunks/github-light-EUqPIrTm.js +0 -1
  1050. package/dist/console/runtime/public/console/chunks/github-light-default-BU3eYkzs-BXViO-2h.js +0 -1
  1051. package/dist/console/runtime/public/console/chunks/github-light-default-BXViO-2h.js +0 -1
  1052. package/dist/console/runtime/public/console/chunks/github-light-default-CC-h3suv.js +0 -1
  1053. package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B3MumDcI-B68TUdTA.js +0 -1
  1054. package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B68TUdTA.js +0 -1
  1055. package/dist/console/runtime/public/console/chunks/gleam-CSRkHgEL.js +0 -1
  1056. package/dist/console/runtime/public/console/chunks/glimmer-js-CwoxQgjc.js +0 -1
  1057. package/dist/console/runtime/public/console/chunks/glimmer-ts-DpQshMGP.js +0 -1
  1058. package/dist/console/runtime/public/console/chunks/glsl-vvkIs2ij.js +0 -1
  1059. package/dist/console/runtime/public/console/chunks/gn-CAXYAgV-.js +0 -1
  1060. package/dist/console/runtime/public/console/chunks/gnuplot-7GGW24-e.js +0 -1
  1061. package/dist/console/runtime/public/console/chunks/go-rLFTqkRN.js +0 -1
  1062. package/dist/console/runtime/public/console/chunks/graphql-ChhlowTj.js +0 -1
  1063. package/dist/console/runtime/public/console/chunks/groovy-CacY0gHj.js +0 -1
  1064. package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-B0ecF443-C820rvS2.js +0 -1
  1065. package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-C820rvS2.js +0 -1
  1066. package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BPjhmG05.js +0 -1
  1067. package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BQnpC39k-BPjhmG05.js +0 -1
  1068. package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-DFZUgESr-MrdJrrXF.js +0 -1
  1069. package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-MrdJrrXF.js +0 -1
  1070. package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-BC_s9l72.js +0 -1
  1071. package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-CuB_LOJr-BC_s9l72.js +0 -1
  1072. package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-BAWPOn9u.js +0 -1
  1073. package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-idDHgxjs-BAWPOn9u.js +0 -1
  1074. package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-BSMLrYjP.js +0 -1
  1075. package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-CfWH49MY-BSMLrYjP.js +0 -1
  1076. package/dist/console/runtime/public/console/chunks/hack--5hWxtov.js +0 -1
  1077. package/dist/console/runtime/public/console/chunks/haml-DOOWKVAn.js +0 -1
  1078. package/dist/console/runtime/public/console/chunks/handlebars-CrRNKWA2.js +0 -1
  1079. package/dist/console/runtime/public/console/chunks/haskell-D8IpX4py.js +0 -1
  1080. package/dist/console/runtime/public/console/chunks/haxe-C8oCnwJJ.js +0 -1
  1081. package/dist/console/runtime/public/console/chunks/hcl-Dh228itO.js +0 -1
  1082. package/dist/console/runtime/public/console/chunks/hjson-CxZEssPk.js +0 -1
  1083. package/dist/console/runtime/public/console/chunks/hlsl-Cvrh5tZx.js +0 -1
  1084. package/dist/console/runtime/public/console/chunks/horizon-CE9ld1lL.js +0 -1
  1085. package/dist/console/runtime/public/console/chunks/horizon-bright-Ba6M8QSV-DSNQnXHK.js +0 -1
  1086. package/dist/console/runtime/public/console/chunks/horizon-bright-DSNQnXHK.js +0 -1
  1087. package/dist/console/runtime/public/console/chunks/horizon-h92C5OlZ-CE9ld1lL.js +0 -1
  1088. package/dist/console/runtime/public/console/chunks/houston-CsvMBhTu.js +0 -1
  1089. package/dist/console/runtime/public/console/chunks/houston-EQnPegWq-CsvMBhTu.js +0 -1
  1090. package/dist/console/runtime/public/console/chunks/html-DrTLqG4V.js +0 -1
  1091. package/dist/console/runtime/public/console/chunks/html-DwfkhSwv.js +0 -1
  1092. package/dist/console/runtime/public/console/chunks/html-derivative-JoBPPO4R.js +0 -1
  1093. package/dist/console/runtime/public/console/chunks/http-DKXz4J4h.js +0 -1
  1094. package/dist/console/runtime/public/console/chunks/hurl-m2MDTJJI.js +0 -1
  1095. package/dist/console/runtime/public/console/chunks/hxml-Dcm88srW.js +0 -1
  1096. package/dist/console/runtime/public/console/chunks/hy-CZbG8q4J.js +0 -1
  1097. package/dist/console/runtime/public/console/chunks/icons-CDKEwnTx.js +0 -1
  1098. package/dist/console/runtime/public/console/chunks/imba-DsUTQ-LC.js +0 -1
  1099. package/dist/console/runtime/public/console/chunks/ini-B5eOa1yu.js +0 -1
  1100. package/dist/console/runtime/public/console/chunks/java-DJ6V61UG.js +0 -1
  1101. package/dist/console/runtime/public/console/chunks/javascript-DOney_iy.js +0 -1
  1102. package/dist/console/runtime/public/console/chunks/javascript-DhBmaPc1.js +0 -1
  1103. package/dist/console/runtime/public/console/chunks/jinja-CywE_Am-.js +0 -1
  1104. package/dist/console/runtime/public/console/chunks/jison-D8DWHhWo.js +0 -1
  1105. package/dist/console/runtime/public/console/chunks/json-B6nR7qG1.js +0 -1
  1106. package/dist/console/runtime/public/console/chunks/json-D0JmQrvp.js +0 -1
  1107. package/dist/console/runtime/public/console/chunks/json5-BR5RXkoi.js +0 -1
  1108. package/dist/console/runtime/public/console/chunks/jsonc-CYpm1nAK.js +0 -1
  1109. package/dist/console/runtime/public/console/chunks/jsonc-D4AqO_oZ.js +0 -1
  1110. package/dist/console/runtime/public/console/chunks/jsonl-CmCQp5Yx.js +0 -1
  1111. package/dist/console/runtime/public/console/chunks/jsonnet-CJTPZ8u_.js +0 -1
  1112. package/dist/console/runtime/public/console/chunks/jssm-DXw9l8Rf.js +0 -1
  1113. package/dist/console/runtime/public/console/chunks/jsx-Dro3SMhn.js +0 -1
  1114. package/dist/console/runtime/public/console/chunks/jsx-_Ptt0Qo0.js +0 -1
  1115. package/dist/console/runtime/public/console/chunks/julia-CruTRp58.js +0 -1
  1116. package/dist/console/runtime/public/console/chunks/just-aBPtXuIr.js +0 -1
  1117. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-Bozd7klA.js +0 -1
  1118. package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DgDvwi3B-Bozd7klA.js +0 -1
  1119. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BgoQro20-BmuOG9ZW.js +0 -1
  1120. package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BmuOG9ZW.js +0 -1
  1121. package/dist/console/runtime/public/console/chunks/kanagawa-wave-BML5mF2J.js +0 -1
  1122. package/dist/console/runtime/public/console/chunks/kanagawa-wave-DgXEowHs-BML5mF2J.js +0 -1
  1123. package/dist/console/runtime/public/console/chunks/katex-CF6MVAvO.js +0 -257
  1124. package/dist/console/runtime/public/console/chunks/kdl-CsD5j6eV.js +0 -1
  1125. package/dist/console/runtime/public/console/chunks/kotlin-DhhofPvG.js +0 -1
  1126. package/dist/console/runtime/public/console/chunks/kusto-C7mF5XQf.js +0 -1
  1127. package/dist/console/runtime/public/console/chunks/laserwave-C_8bwKvT.js +0 -1
  1128. package/dist/console/runtime/public/console/chunks/laserwave-IxBH_3yW-C_8bwKvT.js +0 -1
  1129. package/dist/console/runtime/public/console/chunks/latex-DV9xWg1U.js +0 -1
  1130. package/dist/console/runtime/public/console/chunks/lean-CewbzKMR.js +0 -1
  1131. package/dist/console/runtime/public/console/chunks/less-DVTAwKKz.js +0 -1
  1132. package/dist/console/runtime/public/console/chunks/light-plus-DVQuIRkW.js +0 -1
  1133. package/dist/console/runtime/public/console/chunks/light-plus-S8JBx6is-DVQuIRkW.js +0 -1
  1134. package/dist/console/runtime/public/console/chunks/liquid-B62JT9qD.js +0 -1
  1135. package/dist/console/runtime/public/console/chunks/llvm-DqHOMS-s.js +0 -1
  1136. package/dist/console/runtime/public/console/chunks/log-BNLmms1o.js +0 -1
  1137. package/dist/console/runtime/public/console/chunks/logo-Cluzi2Zq.js +0 -1
  1138. package/dist/console/runtime/public/console/chunks/lua-939mH6Rk.js +0 -1
  1139. package/dist/console/runtime/public/console/chunks/luau-VGWVLoqX.js +0 -1
  1140. package/dist/console/runtime/public/console/chunks/make-Dixweg8N.js +0 -1
  1141. package/dist/console/runtime/public/console/chunks/make-PPdVpZzp.js +0 -1
  1142. package/dist/console/runtime/public/console/chunks/markdown-BK4fiefF.js +0 -1
  1143. package/dist/console/runtime/public/console/chunks/markdown-BYOwaDjH.js +0 -1
  1144. package/dist/console/runtime/public/console/chunks/marko-BjHTe8yB.js +0 -1
  1145. package/dist/console/runtime/public/console/chunks/material-theme-Bm3Qr25_.js +0 -1
  1146. package/dist/console/runtime/public/console/chunks/material-theme-D1f3HBq--Bm3Qr25_.js +0 -1
  1147. package/dist/console/runtime/public/console/chunks/material-theme-darker-2IIEA8gg.js +0 -1
  1148. package/dist/console/runtime/public/console/chunks/material-theme-darker-ExzYhT0j-2IIEA8gg.js +0 -1
  1149. package/dist/console/runtime/public/console/chunks/material-theme-lighter-D6gH9nnA-uhdI0v04.js +0 -1
  1150. package/dist/console/runtime/public/console/chunks/material-theme-lighter-uhdI0v04.js +0 -1
  1151. package/dist/console/runtime/public/console/chunks/material-theme-ocean-CHQ94UKr.js +0 -1
  1152. package/dist/console/runtime/public/console/chunks/material-theme-ocean-D1w5BPAa-CHQ94UKr.js +0 -1
  1153. package/dist/console/runtime/public/console/chunks/material-theme-palenight-B5W6OYN7.js +0 -1
  1154. package/dist/console/runtime/public/console/chunks/material-theme-palenight-CkqWmVpF-B5W6OYN7.js +0 -1
  1155. package/dist/console/runtime/public/console/chunks/matlab-D7qyCx1q.js +0 -1
  1156. package/dist/console/runtime/public/console/chunks/mdc-Dsg_kn4_.js +0 -1
  1157. package/dist/console/runtime/public/console/chunks/mdx-DQZ5AkYe.js +0 -1
  1158. package/dist/console/runtime/public/console/chunks/mdx-l4Hs_llf.js +0 -1
  1159. package/dist/console/runtime/public/console/chunks/mermaid-BxpfTIzt.js +0 -1
  1160. package/dist/console/runtime/public/console/chunks/min-dark-BSWPekZh.js +0 -1
  1161. package/dist/console/runtime/public/console/chunks/min-dark-npsJH98j-BSWPekZh.js +0 -1
  1162. package/dist/console/runtime/public/console/chunks/min-light-DDpmG2fV.js +0 -1
  1163. package/dist/console/runtime/public/console/chunks/min-light-DUk1XsVt-DDpmG2fV.js +0 -1
  1164. package/dist/console/runtime/public/console/chunks/mipsasm-BMqwQI7S.js +0 -1
  1165. package/dist/console/runtime/public/console/chunks/mojo-fg40_ntQ.js +0 -1
  1166. package/dist/console/runtime/public/console/chunks/monokai-BscAjiQZ.js +0 -1
  1167. package/dist/console/runtime/public/console/chunks/monokai-CfFRWUNl-BscAjiQZ.js +0 -1
  1168. package/dist/console/runtime/public/console/chunks/moonbit-D9W784E_.js +0 -1
  1169. package/dist/console/runtime/public/console/chunks/move-BYnGhZoM.js +0 -1
  1170. package/dist/console/runtime/public/console/chunks/narrat-_X_XdTYD.js +0 -1
  1171. package/dist/console/runtime/public/console/chunks/nextflow-CSgcYZcx.js +0 -1
  1172. package/dist/console/runtime/public/console/chunks/nextflow-groovy-D7IRt6Pp.js +0 -1
  1173. package/dist/console/runtime/public/console/chunks/nginx-H6FvQZhW.js +0 -1
  1174. package/dist/console/runtime/public/console/chunks/night-owl-BS7V-av_-DhmEMT88.js +0 -1
  1175. package/dist/console/runtime/public/console/chunks/night-owl-DhmEMT88.js +0 -1
  1176. package/dist/console/runtime/public/console/chunks/night-owl-light-CZtRawYE-eJ-hLW7d.js +0 -1
  1177. package/dist/console/runtime/public/console/chunks/night-owl-light-eJ-hLW7d.js +0 -1
  1178. package/dist/console/runtime/public/console/chunks/nim-C7z2AtKH.js +0 -1
  1179. package/dist/console/runtime/public/console/chunks/nix-IvuFDN5E.js +0 -1
  1180. package/dist/console/runtime/public/console/chunks/nord-BFh54Nqz-Cb4Vim4T.js +0 -1
  1181. package/dist/console/runtime/public/console/chunks/nord-Cb4Vim4T.js +0 -1
  1182. package/dist/console/runtime/public/console/chunks/nsis-CjNLYCLg.js +0 -1
  1183. package/dist/console/runtime/public/console/chunks/nushell--0fT3PI1.js +0 -1
  1184. package/dist/console/runtime/public/console/chunks/objective-c-D1A_Heim.js +0 -1
  1185. package/dist/console/runtime/public/console/chunks/objective-cpp-BsSzOQcm.js +0 -1
  1186. package/dist/console/runtime/public/console/chunks/ocaml-O90oeIOV.js +0 -1
  1187. package/dist/console/runtime/public/console/chunks/odin-B1RWQWA5.js +0 -1
  1188. package/dist/console/runtime/public/console/chunks/one-dark-pro-C6YyR8OD.js +0 -1
  1189. package/dist/console/runtime/public/console/chunks/one-dark-pro-zDovGosB-C6YyR8OD.js +0 -1
  1190. package/dist/console/runtime/public/console/chunks/one-light-D7Lr4KcI.js +0 -1
  1191. package/dist/console/runtime/public/console/chunks/one-light-gmHK3iK6-D7Lr4KcI.js +0 -1
  1192. package/dist/console/runtime/public/console/chunks/openscad-BUDT5pXO.js +0 -1
  1193. package/dist/console/runtime/public/console/chunks/org-DYUOjVHR.js +0 -1
  1194. package/dist/console/runtime/public/console/chunks/pascal-4ZHwLPI5.js +0 -1
  1195. package/dist/console/runtime/public/console/chunks/patch-diff-CD7Eu2gO.js +0 -1
  1196. package/dist/console/runtime/public/console/chunks/perl-BAFITj1w.js +0 -1
  1197. package/dist/console/runtime/public/console/chunks/php-C1opCiHJ.js +0 -1
  1198. package/dist/console/runtime/public/console/chunks/pierre-code-view-T7V67hwT-XcPks0Ko.js +0 -168
  1199. package/dist/console/runtime/public/console/chunks/pierre-dark-DDWDl8g6-CpLgRqie.js +0 -1
  1200. package/dist/console/runtime/public/console/chunks/pierre-dark-protanopia-deuteranopia-C35UMuvO-B35FxJx-.js +0 -1
  1201. package/dist/console/runtime/public/console/chunks/pierre-dark-soft-Bb-4-biO-kZQmAZld.js +0 -1
  1202. package/dist/console/runtime/public/console/chunks/pierre-dark-tritanopia-CIJISGWF-CpjhbsIL.js +0 -1
  1203. package/dist/console/runtime/public/console/chunks/pierre-dark-vibrant-8oZzB3gw-CpQYzh95.js +0 -1
  1204. package/dist/console/runtime/public/console/chunks/pierre-light-CWhW4NrH-CoaEpmwp.js +0 -1
  1205. package/dist/console/runtime/public/console/chunks/pierre-light-protanopia-deuteranopia-u0U7N4Hn-0fSaH845.js +0 -1
  1206. package/dist/console/runtime/public/console/chunks/pierre-light-soft-BCU6fuhO-lWLdNTOI.js +0 -1
  1207. package/dist/console/runtime/public/console/chunks/pierre-light-tritanopia-3c8Yx3co-CEbqgOJL.js +0 -1
  1208. package/dist/console/runtime/public/console/chunks/pierre-light-vibrant-Cwh332o_-D80Fkn33.js +0 -1
  1209. package/dist/console/runtime/public/console/chunks/pkl-ot-7Btpt.js +0 -1
  1210. package/dist/console/runtime/public/console/chunks/plastic-DQwYfKfQ.js +0 -1
  1211. package/dist/console/runtime/public/console/chunks/plastic-DtdaCjub-DQwYfKfQ.js +0 -1
  1212. package/dist/console/runtime/public/console/chunks/plsql-DGHpHOYJ.js +0 -1
  1213. package/dist/console/runtime/public/console/chunks/po-BiJDBrnU.js +0 -1
  1214. package/dist/console/runtime/public/console/chunks/poimandres-DRFjx7u4.js +0 -1
  1215. package/dist/console/runtime/public/console/chunks/poimandres-Hdda6aHK-DRFjx7u4.js +0 -1
  1216. package/dist/console/runtime/public/console/chunks/polar-C7UOKdEL.js +0 -1
  1217. package/dist/console/runtime/public/console/chunks/postcss-BXeXVLqQ.js +0 -1
  1218. package/dist/console/runtime/public/console/chunks/powerquery-DNMTfnFr.js +0 -1
  1219. package/dist/console/runtime/public/console/chunks/powershell-QtSnmXcu.js +0 -1
  1220. package/dist/console/runtime/public/console/chunks/preload-helper-uBIymjUX.js +0 -1
  1221. package/dist/console/runtime/public/console/chunks/presence-BGvCcBvS.js +0 -1
  1222. package/dist/console/runtime/public/console/chunks/prisma-DMgNhnYS.js +0 -1
  1223. package/dist/console/runtime/public/console/chunks/prolog-iXnhIJG7.js +0 -1
  1224. package/dist/console/runtime/public/console/chunks/proto-DB4EqR-F.js +0 -1
  1225. package/dist/console/runtime/public/console/chunks/pug-ChIfOLQs.js +0 -1
  1226. package/dist/console/runtime/public/console/chunks/puppet-CDv2pdJW.js +0 -1
  1227. package/dist/console/runtime/public/console/chunks/purescript-9MfHhQsQ.js +0 -1
  1228. package/dist/console/runtime/public/console/chunks/python-gzcpVVnB.js +0 -1
  1229. package/dist/console/runtime/public/console/chunks/qml-BAjZcRJm.js +0 -1
  1230. package/dist/console/runtime/public/console/chunks/qmldir-DCQb3MpD.js +0 -1
  1231. package/dist/console/runtime/public/console/chunks/qss-Fe1Jh2GI.js +0 -1
  1232. package/dist/console/runtime/public/console/chunks/r-CnJIyxn2.js +0 -1
  1233. package/dist/console/runtime/public/console/chunks/racket-DcIDlBhZ.js +0 -1
  1234. package/dist/console/runtime/public/console/chunks/raku-B3gFvitq.js +0 -1
  1235. package/dist/console/runtime/public/console/chunks/razor-Bk3VGUqz.js +0 -1
  1236. package/dist/console/runtime/public/console/chunks/rbs-C0MpOrj4.js +0 -1
  1237. package/dist/console/runtime/public/console/chunks/read-only-DJWK7nHC.js +0 -1
  1238. package/dist/console/runtime/public/console/chunks/red-CYlAq2b0.js +0 -1
  1239. package/dist/console/runtime/public/console/chunks/red-VqZFRByZ-CYlAq2b0.js +0 -1
  1240. package/dist/console/runtime/public/console/chunks/reg-CRGYupPL.js +0 -1
  1241. package/dist/console/runtime/public/console/chunks/regexp-CF4aByxb.js +0 -1
  1242. package/dist/console/runtime/public/console/chunks/rel-BtDbiS_P.js +0 -1
  1243. package/dist/console/runtime/public/console/chunks/riscv-Ckw8ddFX.js +0 -1
  1244. package/dist/console/runtime/public/console/chunks/rolldown-runtime-DK3Fl9T5.js +0 -1
  1245. package/dist/console/runtime/public/console/chunks/ron-VUp2lXgN.js +0 -1
  1246. package/dist/console/runtime/public/console/chunks/rose-pine-DiTkEueR-aMsaMD1D.js +0 -1
  1247. package/dist/console/runtime/public/console/chunks/rose-pine-aMsaMD1D.js +0 -1
  1248. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-8PwUyIlP.js +0 -1
  1249. package/dist/console/runtime/public/console/chunks/rose-pine-dawn-tfo5y2X0-8PwUyIlP.js +0 -1
  1250. package/dist/console/runtime/public/console/chunks/rose-pine-moon-C0gON9XN-DO-qXg-I.js +0 -1
  1251. package/dist/console/runtime/public/console/chunks/rose-pine-moon-DO-qXg-I.js +0 -1
  1252. package/dist/console/runtime/public/console/chunks/rosmsg-CAekHB0j.js +0 -1
  1253. package/dist/console/runtime/public/console/chunks/rst-D8R3YvuX.js +0 -1
  1254. package/dist/console/runtime/public/console/chunks/ruby-BDvumEf2.js +0 -1
  1255. package/dist/console/runtime/public/console/chunks/rust-DpiIf5JO.js +0 -1
  1256. package/dist/console/runtime/public/console/chunks/sas-CDxiwfn1.js +0 -1
  1257. package/dist/console/runtime/public/console/chunks/sass-DXrisJhu.js +0 -1
  1258. package/dist/console/runtime/public/console/chunks/scala-BiFt_7mu.js +0 -1
  1259. package/dist/console/runtime/public/console/chunks/scheme-DQCgrYNe.js +0 -1
  1260. package/dist/console/runtime/public/console/chunks/scss-BPiS1nMZ.js +0 -1
  1261. package/dist/console/runtime/public/console/chunks/scss-DuikUNMR.js +0 -1
  1262. package/dist/console/runtime/public/console/chunks/sdbl-bTVj8UrX.js +0 -1
  1263. package/dist/console/runtime/public/console/chunks/sections-aIkyV8J9.js +0 -8
  1264. package/dist/console/runtime/public/console/chunks/shaderlab-TOUzSsQk.js +0 -1
  1265. package/dist/console/runtime/public/console/chunks/shellscript-CgLkv1T0.js +0 -1
  1266. package/dist/console/runtime/public/console/chunks/shellscript-DStN_0YR.js +0 -1
  1267. package/dist/console/runtime/public/console/chunks/shellsession-C_5QA7eC.js +0 -1
  1268. package/dist/console/runtime/public/console/chunks/slack-dark-DnToyrRv.js +0 -1
  1269. package/dist/console/runtime/public/console/chunks/slack-dark-v8P_eXr6-DnToyrRv.js +0 -1
  1270. package/dist/console/runtime/public/console/chunks/slack-ochin-B2OO5cIa.js +0 -1
  1271. package/dist/console/runtime/public/console/chunks/slack-ochin-D8SyEdKz-B2OO5cIa.js +0 -1
  1272. package/dist/console/runtime/public/console/chunks/smalltalk-BHpQb5nM.js +0 -1
  1273. package/dist/console/runtime/public/console/chunks/smithy-Dgaz7aur.js +0 -1
  1274. package/dist/console/runtime/public/console/chunks/snazzy-light-4G7pJPwS.js +0 -1
  1275. package/dist/console/runtime/public/console/chunks/snazzy-light-BtkQkvXb-4G7pJPwS.js +0 -1
  1276. package/dist/console/runtime/public/console/chunks/solarized-dark-B8nAdMfM-b97czJOk.js +0 -1
  1277. package/dist/console/runtime/public/console/chunks/solarized-dark-b97czJOk.js +0 -1
  1278. package/dist/console/runtime/public/console/chunks/solarized-light-B-3F1INj-DFPxpIYQ.js +0 -1
  1279. package/dist/console/runtime/public/console/chunks/solarized-light-DFPxpIYQ.js +0 -1
  1280. package/dist/console/runtime/public/console/chunks/solidity-Bj7E1mRn.js +0 -1
  1281. package/dist/console/runtime/public/console/chunks/soy-Drvj0-hN.js +0 -1
  1282. package/dist/console/runtime/public/console/chunks/sparql-D_iOobhT.js +0 -1
  1283. package/dist/console/runtime/public/console/chunks/splunk-BC2Px7Mm.js +0 -1
  1284. package/dist/console/runtime/public/console/chunks/sql-7uki0mN6.js +0 -1
  1285. package/dist/console/runtime/public/console/chunks/sql-DvnUxQaA.js +0 -1
  1286. package/dist/console/runtime/public/console/chunks/ssh-config-BgfXC-Er.js +0 -1
  1287. package/dist/console/runtime/public/console/chunks/stata-5ekhIp_w.js +0 -1
  1288. package/dist/console/runtime/public/console/chunks/stylus-B6D30XZt.js +0 -1
  1289. package/dist/console/runtime/public/console/chunks/surrealql-BggsF-oc.js +0 -1
  1290. package/dist/console/runtime/public/console/chunks/svelte-BOzpv3zx.js +0 -1
  1291. package/dist/console/runtime/public/console/chunks/swift-CyEgAFGc.js +0 -1
  1292. package/dist/console/runtime/public/console/chunks/synthwave-84-DcsXCF_c-nFMaYfgc.js +0 -1
  1293. package/dist/console/runtime/public/console/chunks/synthwave-84-nFMaYfgc.js +0 -1
  1294. package/dist/console/runtime/public/console/chunks/system-verilog-Dh5ihWbf.js +0 -1
  1295. package/dist/console/runtime/public/console/chunks/systemd-BxMlprV5.js +0 -1
  1296. package/dist/console/runtime/public/console/chunks/talonscript-CohzipZa.js +0 -1
  1297. package/dist/console/runtime/public/console/chunks/tasl-DMoTqEGO.js +0 -1
  1298. package/dist/console/runtime/public/console/chunks/tcl-CZd0xW_V.js +0 -1
  1299. package/dist/console/runtime/public/console/chunks/templ-fdyF5dsr.js +0 -1
  1300. package/dist/console/runtime/public/console/chunks/terraform-DswuEJGm.js +0 -1
  1301. package/dist/console/runtime/public/console/chunks/tex-DHA47n0s.js +0 -1
  1302. package/dist/console/runtime/public/console/chunks/tokyo-night-Bvpqduda-oM2G3aXe.js +0 -1
  1303. package/dist/console/runtime/public/console/chunks/tokyo-night-oM2G3aXe.js +0 -1
  1304. package/dist/console/runtime/public/console/chunks/toml-CcmNWLt0.js +0 -1
  1305. package/dist/console/runtime/public/console/chunks/ts-tags-FylMzM_u.js +0 -1
  1306. package/dist/console/runtime/public/console/chunks/tsv-sltzmVWM.js +0 -1
  1307. package/dist/console/runtime/public/console/chunks/tsx-B8qh6jDH.js +0 -1
  1308. package/dist/console/runtime/public/console/chunks/tsx-Ge9e86uq.js +0 -1
  1309. package/dist/console/runtime/public/console/chunks/turtle-ByJddavk.js +0 -1
  1310. package/dist/console/runtime/public/console/chunks/twig-r9Dsv_Ri.js +0 -1
  1311. package/dist/console/runtime/public/console/chunks/typescript-C2Eu6twH.js +0 -1
  1312. package/dist/console/runtime/public/console/chunks/typescript-CiUCm0l2.js +0 -1
  1313. package/dist/console/runtime/public/console/chunks/typespec-BGhR2SqG.js +0 -1
  1314. package/dist/console/runtime/public/console/chunks/typst-BCkRs6d9.js +0 -1
  1315. package/dist/console/runtime/public/console/chunks/url-uI6JSUZP.js +0 -4
  1316. package/dist/console/runtime/public/console/chunks/useForwardScopeId-mJ8JPuYU.js +0 -1
  1317. package/dist/console/runtime/public/console/chunks/usePortal-BqI7uIRp.js +0 -3
  1318. package/dist/console/runtime/public/console/chunks/v-DBj4K9d_.js +0 -1
  1319. package/dist/console/runtime/public/console/chunks/vala-zf12oZj6.js +0 -1
  1320. package/dist/console/runtime/public/console/chunks/vb-DOwzaHZ0.js +0 -1
  1321. package/dist/console/runtime/public/console/chunks/verilog-B2gwz-sJ.js +0 -1
  1322. package/dist/console/runtime/public/console/chunks/vesper-CfxmMOy3-DdrHHSXu.js +0 -1
  1323. package/dist/console/runtime/public/console/chunks/vesper-DdrHHSXu.js +0 -1
  1324. package/dist/console/runtime/public/console/chunks/vhdl-BroJfC0k.js +0 -1
  1325. package/dist/console/runtime/public/console/chunks/viml-DvXPmvsu.js +0 -1
  1326. package/dist/console/runtime/public/console/chunks/vitesse-black-D9-_1mjV-fwtXNY1n.js +0 -1
  1327. package/dist/console/runtime/public/console/chunks/vitesse-black-fwtXNY1n.js +0 -1
  1328. package/dist/console/runtime/public/console/chunks/vitesse-dark-BZCL-v6S.js +0 -1
  1329. package/dist/console/runtime/public/console/chunks/vitesse-dark-DlSMLlr9-BZCL-v6S.js +0 -1
  1330. package/dist/console/runtime/public/console/chunks/vitesse-light-KRWWWztf-VbXTXTou.js +0 -1
  1331. package/dist/console/runtime/public/console/chunks/vitesse-light-VbXTXTou.js +0 -1
  1332. package/dist/console/runtime/public/console/chunks/vue-Bc1L0ruR.js +0 -3
  1333. package/dist/console/runtime/public/console/chunks/vue-CGPRTtAM.js +0 -1
  1334. package/dist/console/runtime/public/console/chunks/vue-CHGs_ru8.js +0 -1
  1335. package/dist/console/runtime/public/console/chunks/vue-html-CU_0vU6P.js +0 -1
  1336. package/dist/console/runtime/public/console/chunks/vue-vine-BrC7uwb8.js +0 -1
  1337. package/dist/console/runtime/public/console/chunks/vueuse-DCpBt1pZ.js +0 -4
  1338. package/dist/console/runtime/public/console/chunks/vyper-CgoNMtux.js +0 -1
  1339. package/dist/console/runtime/public/console/chunks/wasm-BnjxR4X6.js +0 -1
  1340. package/dist/console/runtime/public/console/chunks/wasm-ByWQv1Qj.js +0 -1
  1341. package/dist/console/runtime/public/console/chunks/wenyan-C8pVoKbM.js +0 -1
  1342. package/dist/console/runtime/public/console/chunks/wgsl-BsKzXJz4.js +0 -1
  1343. package/dist/console/runtime/public/console/chunks/wikitext-ClFFjSW2.js +0 -1
  1344. package/dist/console/runtime/public/console/chunks/wit-DdvCle-K.js +0 -1
  1345. package/dist/console/runtime/public/console/chunks/wolfram-DLL8P-h_.js +0 -1
  1346. package/dist/console/runtime/public/console/chunks/xml-Bx1i6T7B.js +0 -1
  1347. package/dist/console/runtime/public/console/chunks/xsl-DR5M53i7.js +0 -1
  1348. package/dist/console/runtime/public/console/chunks/yaml-CZmR-Icd.js +0 -1
  1349. package/dist/console/runtime/public/console/chunks/yaml-a9wqVlBt.js +0 -1
  1350. package/dist/console/runtime/public/console/chunks/zenscript-BnlCZFoB.js +0 -1
  1351. package/dist/console/runtime/public/console/chunks/zig-CMLA9XwU.js +0 -1
  1352. package/dist/console/runtime/public/console/console-QjK_HKoM.css +0 -2
  1353. package/dist/console/runtime/public/console/console-j0_7kmR5.js +0 -21
  1354. package/dist/console/runtime/public/console/page-tool-Cji0S8q-.js +0 -1
  1355. package/dist/console/runtime/server/auth-manage.d.ts +0 -7
  1356. package/dist/console/runtime/server/auth-manage.js +0 -155
  1357. package/dist/console/runtime/server/client.get.d.ts +0 -3
  1358. package/dist/console/runtime/server/client.get.js +0 -11
  1359. package/dist/console/runtime/server/env-manage.d.ts +0 -5
  1360. package/dist/console/runtime/server/env-manage.js +0 -10
  1361. package/dist/console/runtime/server/mcp-authorization-server.d.ts +0 -11
  1362. package/dist/console/runtime/server/mcp-authorization-server.js +0 -71
  1363. package/dist/console/runtime/server/mcp-discovery.d.ts +0 -7
  1364. package/dist/console/runtime/server/mcp-discovery.js +0 -20
  1365. package/dist/console/runtime/server/mcp-metadata.d.ts +0 -11
  1366. package/dist/console/runtime/server/mcp-metadata.js +0 -54
  1367. package/dist/console/runtime/server/mcp.d.ts +0 -16
  1368. package/dist/console/runtime/server/mcp.js +0 -364
  1369. package/dist/console/runtime/server/page.get.d.ts +0 -4
  1370. package/dist/console/runtime/server/page.get.js +0 -49
  1371. package/dist/console/runtime/server/schedule-run.d.ts +0 -36
  1372. package/dist/console/runtime/server/schedule-run.js +0 -213
  1373. package/dist/console/runtime/server/sign-in.d.ts +0 -5
  1374. package/dist/console/runtime/server/sign-in.js +0 -11
  1375. package/dist/content/presets/cms.d.ts +0 -2
  1376. package/dist/content/presets/cms.js +0 -2
  1377. package/dist/database/drizzle.d.ts +0 -1
  1378. package/dist/database/drizzle.js +0 -2
  1379. package/dist/database-DLPk6HVu.d.ts +0 -7
  1380. package/dist/database-hyYo7JVD.d.ts +0 -11
  1381. package/dist/definitions-BJGSpYGa.d.ts +0 -209
  1382. package/dist/definitions-Y0pIwSQm.d.ts +0 -19
  1383. package/dist/diagnostics-YTWM3K3t.js +0 -74
  1384. package/dist/diagnostics-lT85pbVx.d.ts +0 -6
  1385. package/dist/document-metadata-nXusaMSq.js +0 -6
  1386. package/dist/documents-BRt3-fIu.d.ts +0 -72
  1387. package/dist/email/server.d.ts +0 -1
  1388. package/dist/email/server.js +0 -2
  1389. package/dist/env/auth.d.ts +0 -1
  1390. package/dist/env/auth.js +0 -2
  1391. package/dist/env/http.d.ts +0 -1
  1392. package/dist/env/http.js +0 -2
  1393. package/dist/env/presets.d.ts +0 -1
  1394. package/dist/env/presets.js +0 -2
  1395. package/dist/env/provider.d.ts +0 -1
  1396. package/dist/env/provider.js +0 -2
  1397. package/dist/env/schema.d.ts +0 -1
  1398. package/dist/env/schema.js +0 -2
  1399. package/dist/env/secret.d.ts +0 -1
  1400. package/dist/env/secret.js +0 -2
  1401. package/dist/error-diagnostics-n7V-_SPy.js +0 -160
  1402. package/dist/h3-v1-request-DDGXJ9E7.js +0 -166
  1403. package/dist/index-CWk5rJOo.d.ts +0 -247
  1404. package/dist/internal-Ca7DYHpa.js +0 -311
  1405. package/dist/internal-VvXn0bX4.d.ts +0 -25
  1406. package/dist/invocations-DkjhdkpT.js +0 -1151
  1407. package/dist/invocations-TvN9ux06.d.ts +0 -47
  1408. package/dist/loopback-DAr1IFQP.js +0 -43
  1409. package/dist/media-BBybn3NP.js +0 -512
  1410. package/dist/operation-contributions-BXHKgT_w.d.ts +0 -18
  1411. package/dist/operations-4uDh4zah.js +0 -38
  1412. package/dist/operations-7RHOMAHT.js +0 -455
  1413. package/dist/operations-Bgklf9hM.d.ts +0 -149
  1414. package/dist/operations-CwqEItfA.js +0 -468
  1415. package/dist/package-BsfDnNm8.js +0 -1119
  1416. package/dist/page-tools-B3g4CQ5c.js +0 -402
  1417. package/dist/page-tools-C5dufxVz.d.ts +0 -16
  1418. package/dist/page-tools-shared-D-amu6sx.js +0 -53
  1419. package/dist/project-registry-BT7RcCcQ.js +0 -39
  1420. package/dist/registry-dSdI2Oa3.js +0 -142
  1421. package/dist/request-BT6g-Fwf.js +0 -326
  1422. package/dist/request-DOvvVgpI.d.ts +0 -52
  1423. package/dist/retention-DBXuVtQL.js +0 -257
  1424. package/dist/rolldown-runtime-8H4AJuhK.js +0 -14
  1425. package/dist/runtime/h3.d.ts +0 -2
  1426. package/dist/runtime/h3.js +0 -2
  1427. package/dist/runtime/node.d.ts +0 -1
  1428. package/dist/runtime/node.js +0 -2
  1429. package/dist/runtime-DPqC3MTX.js +0 -60
  1430. package/dist/scan-module-TmHMoGKw.js +0 -148
  1431. package/dist/secret-DrgWMRms.js +0 -47
  1432. package/dist/sections-BVtKNenQ.js +0 -108
  1433. package/dist/sections-C985LlW2.d.ts +0 -31
  1434. package/dist/sections-Drj-o4_z.d.ts +0 -141
  1435. package/dist/source/file.d.ts +0 -1
  1436. package/dist/source/file.js +0 -2
  1437. package/dist/source/files.d.ts +0 -1
  1438. package/dist/source/files.js +0 -2
  1439. package/dist/source/github.d.ts +0 -1
  1440. package/dist/source/github.js +0 -2
  1441. package/dist/source/glob.d.ts +0 -1
  1442. package/dist/source/glob.js +0 -2
  1443. package/dist/source/markdown.d.ts +0 -1
  1444. package/dist/source/markdown.js +0 -2
  1445. package/dist/src-CaqWiza-.js +0 -7910
  1446. package/dist/task.d.ts +0 -3
  1447. package/dist/task.js +0 -2
  1448. package/dist/types-BsuwNk3q.js +0 -256
  1449. package/dist/ui/attachment.d.ts +0 -1
  1450. package/dist/ui/attachment.js +0 -2
  1451. package/dist/ui/avatar-stack.d.ts +0 -1
  1452. package/dist/ui/avatar-stack.js +0 -2
  1453. package/dist/ui/bubble.d.ts +0 -1
  1454. package/dist/ui/bubble.js +0 -2
  1455. package/dist/ui/chat-message.d.ts +0 -1
  1456. package/dist/ui/chat-message.js +0 -2
  1457. package/dist/ui/chat-session.d.ts +0 -1
  1458. package/dist/ui/chat-session.js +0 -2
  1459. package/dist/ui/chat.d.ts +0 -1
  1460. package/dist/ui/chat.js +0 -2
  1461. package/dist/ui/code-block.d.ts +0 -1
  1462. package/dist/ui/code-block.js +0 -2
  1463. package/dist/ui/code-view.d.ts +0 -1
  1464. package/dist/ui/code-view.js +0 -2
  1465. package/dist/ui/comments.d.ts +0 -1
  1466. package/dist/ui/comments.js +0 -2
  1467. package/dist/ui/connection-status.d.ts +0 -1
  1468. package/dist/ui/connection-status.js +0 -2
  1469. package/dist/ui/file-diff.d.ts +0 -1
  1470. package/dist/ui/file-diff.js +0 -2
  1471. package/dist/ui/file-tree.d.ts +0 -1
  1472. package/dist/ui/file-tree.js +0 -2
  1473. package/dist/ui/file-view.d.ts +0 -1
  1474. package/dist/ui/file-view.js +0 -2
  1475. package/dist/ui/markdown.d.ts +0 -1
  1476. package/dist/ui/markdown.js +0 -2
  1477. package/dist/ui/marker.d.ts +0 -1
  1478. package/dist/ui/marker.js +0 -2
  1479. package/dist/ui/message-parts.d.ts +0 -1
  1480. package/dist/ui/message-parts.js +0 -2
  1481. package/dist/ui/message.d.ts +0 -1
  1482. package/dist/ui/message.js +0 -2
  1483. package/dist/ui/multi-file-diff.d.ts +0 -1
  1484. package/dist/ui/multi-file-diff.js +0 -2
  1485. package/dist/ui/nuxt.d.ts +0 -3
  1486. package/dist/ui/nuxt.js +0 -3
  1487. package/dist/ui/patch-diff.d.ts +0 -1
  1488. package/dist/ui/patch-diff.js +0 -2
  1489. package/dist/ui/prompt-input.d.ts +0 -1
  1490. package/dist/ui/prompt-input.js +0 -2
  1491. package/dist/ui/sync-status.d.ts +0 -1
  1492. package/dist/ui/sync-status.js +0 -2
  1493. package/dist/ui/tool-list.d.ts +0 -1
  1494. package/dist/ui/tool-list.js +0 -2
  1495. package/dist/ui/trace-run.d.ts +0 -1
  1496. package/dist/ui/trace-run.js +0 -2
  1497. package/dist/ui/trace.d.ts +0 -1
  1498. package/dist/ui/trace.js +0 -2
  1499. package/dist/ui/unresolved-file.d.ts +0 -1
  1500. package/dist/ui/unresolved-file.js +0 -2
@@ -0,0 +1,1125 @@
1
+ import { i as consoleStatusDiagnosticCode, t as consoleDiagnostic } from "../../../diagnostics-D0DefmQj.js";
2
+ import { n as consoleProjectBuildOf } from "../../../project-link-Qi7nltHM.js";
3
+ import { createAuthClient, useAuthQuery } from "better-auth/client";
4
+ import { organizationClient } from "better-auth/client/plugins";
5
+ //#region ../../node_modules/.pnpm/@better-auth+core@1.7.15_@better-auth+utils@0.5.1_@better-fetch+fetch@1.3.3_@openteleme_616fd187915fb28e29504b61d755935b/node_modules/@better-auth/core/dist/utils/error-codes.mjs
6
+ function defineErrorCodes(codes) {
7
+ return Object.fromEntries(Object.entries(codes).map(([key, value]) => [key, {
8
+ code: key,
9
+ message: value,
10
+ toString: () => key
11
+ }]));
12
+ }
13
+ //#endregion
14
+ //#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.15_70ea9c824adc5de32c12d7251315bda0/node_modules/@better-auth/passkey/dist/version-BYvYGwzu.mjs
15
+ const PASSKEY_ERROR_CODES = defineErrorCodes({
16
+ CHALLENGE_NOT_FOUND: "Challenge not found",
17
+ YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: "You are not allowed to register this passkey",
18
+ FAILED_TO_VERIFY_REGISTRATION: "Failed to verify registration",
19
+ PASSKEY_NOT_FOUND: "Passkey not found",
20
+ AUTHENTICATION_FAILED: "Authentication failed",
21
+ UNABLE_TO_CREATE_SESSION: "Unable to create session",
22
+ USER_NOT_FOUND: "User not found",
23
+ FAILED_TO_UPDATE_PASSKEY: "Failed to update passkey",
24
+ PREVIOUSLY_REGISTERED: "Previously registered",
25
+ REGISTRATION_CANCELLED: "Registration cancelled",
26
+ AUTH_CANCELLED: "Auth cancelled",
27
+ UNKNOWN_ERROR: "Unknown error",
28
+ SESSION_REQUIRED: "Passkey registration requires an authenticated session",
29
+ RESOLVE_USER_REQUIRED: "Passkey registration requires either an authenticated session or a resolveUser callback when requireSession is false",
30
+ RESOLVED_USER_INVALID: "Resolved user is invalid"
31
+ });
32
+ const PACKAGE_VERSION = "1.7.15";
33
+ //#endregion
34
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/bufferToBase64URLString.js
35
+ /**
36
+ * Convert the given array buffer into a Base64URL-encoded string. Ideal for converting various
37
+ * credential response ArrayBuffers to string for sending back to the server as JSON.
38
+ *
39
+ * Helper method to compliment `base64URLStringToBuffer`
40
+ */
41
+ function bufferToBase64URLString(buffer) {
42
+ const bytes = new Uint8Array(buffer);
43
+ let str = "";
44
+ for (const charCode of bytes) str += String.fromCharCode(charCode);
45
+ return btoa(str).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
46
+ }
47
+ //#endregion
48
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/base64URLStringToBuffer.js
49
+ /**
50
+ * Convert from a Base64URL-encoded string to an Array Buffer. Best used when converting a
51
+ * credential ID from a JSON string to an ArrayBuffer, like in allowCredentials or
52
+ * excludeCredentials
53
+ *
54
+ * Helper method to compliment `bufferToBase64URLString`
55
+ */
56
+ function base64URLStringToBuffer(base64URLString) {
57
+ const base64 = base64URLString.replace(/-/g, "+").replace(/_/g, "/");
58
+ /**
59
+ * Pad with '=' until it's a multiple of four
60
+ * (4 - (85 % 4 = 1) = 3) % 4 = 3 padding
61
+ * (4 - (86 % 4 = 2) = 2) % 4 = 2 padding
62
+ * (4 - (87 % 4 = 3) = 1) % 4 = 1 padding
63
+ * (4 - (88 % 4 = 0) = 4) % 4 = 0 padding
64
+ */
65
+ const padLength = (4 - base64.length % 4) % 4;
66
+ const padded = base64.padEnd(base64.length + padLength, "=");
67
+ const binary = atob(padded);
68
+ const buffer = new ArrayBuffer(binary.length);
69
+ const bytes = new Uint8Array(buffer);
70
+ for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
71
+ return buffer;
72
+ }
73
+ //#endregion
74
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/browserSupportsWebAuthn.js
75
+ /**
76
+ * Determine if the browser is capable of Webauthn
77
+ */
78
+ function browserSupportsWebAuthn() {
79
+ return _browserSupportsWebAuthnInternals.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential === "function");
80
+ }
81
+ /**
82
+ * Make it possible to stub the return value during testing
83
+ * @ignore Don't include this in docs output
84
+ */
85
+ const _browserSupportsWebAuthnInternals = { stubThis: (value) => value };
86
+ //#endregion
87
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/toPublicKeyCredentialDescriptor.js
88
+ function toPublicKeyCredentialDescriptor(descriptor) {
89
+ const { id } = descriptor;
90
+ return {
91
+ ...descriptor,
92
+ id: base64URLStringToBuffer(id),
93
+ /**
94
+ * `descriptor.transports` is an array of our `AuthenticatorTransportFuture` that includes newer
95
+ * transports that TypeScript's DOM lib is ignorant of. Convince TS that our list of transports
96
+ * are fine to pass to WebAuthn since browsers will recognize the new value.
97
+ */
98
+ transports: descriptor.transports
99
+ };
100
+ }
101
+ //#endregion
102
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/isValidDomain.js
103
+ /**
104
+ * A simple test to determine if a hostname is a properly-formatted domain name
105
+ *
106
+ * A "valid domain" is defined here: https://url.spec.whatwg.org/#valid-domain
107
+ *
108
+ * Regex was originally sourced from here, then remixed to add punycode support:
109
+ * https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch08s15.html
110
+ */
111
+ function isValidDomain(hostname) {
112
+ return hostname === "localhost" || /^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(hostname);
113
+ }
114
+ //#endregion
115
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/webAuthnError.js
116
+ /**
117
+ * A custom Error used to return a more nuanced error detailing _why_ one of the eight documented
118
+ * errors in the spec was raised after calling `navigator.credentials.create()` or
119
+ * `navigator.credentials.get()`:
120
+ *
121
+ * - `AbortError`
122
+ * - `ConstraintError`
123
+ * - `InvalidStateError`
124
+ * - `NotAllowedError`
125
+ * - `NotSupportedError`
126
+ * - `SecurityError`
127
+ * - `TypeError`
128
+ * - `UnknownError`
129
+ *
130
+ * Error messages were determined through investigation of the spec to determine under which
131
+ * scenarios a given error would be raised.
132
+ */
133
+ var WebAuthnError = class extends Error {
134
+ constructor({ message, code, cause, name }) {
135
+ super(message, { cause });
136
+ Object.defineProperty(this, "code", {
137
+ enumerable: true,
138
+ configurable: true,
139
+ writable: true,
140
+ value: void 0
141
+ });
142
+ this.name = name ?? cause.name;
143
+ this.code = code;
144
+ }
145
+ };
146
+ //#endregion
147
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/identifyRegistrationError.js
148
+ /**
149
+ * Attempt to intuit _why_ an error was raised after calling `navigator.credentials.create()`
150
+ */
151
+ function identifyRegistrationError({ error, options }) {
152
+ const { publicKey } = options;
153
+ if (!publicKey) throw Error("options was missing required publicKey property");
154
+ if (error.name === "AbortError") {
155
+ if (options.signal instanceof AbortSignal) return new WebAuthnError({
156
+ message: "Registration ceremony was sent an abort signal",
157
+ code: "ERROR_CEREMONY_ABORTED",
158
+ cause: error
159
+ });
160
+ } else if (error.name === "ConstraintError") {
161
+ if (publicKey.authenticatorSelection?.requireResidentKey === true) return new WebAuthnError({
162
+ message: "Discoverable credentials were required but no available authenticator supported it",
163
+ code: "ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",
164
+ cause: error
165
+ });
166
+ else if (options.mediation === "conditional" && publicKey.authenticatorSelection?.userVerification === "required") return new WebAuthnError({
167
+ message: "User verification was required during automatic registration but it could not be performed",
168
+ code: "ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",
169
+ cause: error
170
+ });
171
+ else if (publicKey.authenticatorSelection?.userVerification === "required") return new WebAuthnError({
172
+ message: "User verification was required but no available authenticator supported it",
173
+ code: "ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",
174
+ cause: error
175
+ });
176
+ } else if (error.name === "InvalidStateError") return new WebAuthnError({
177
+ message: "The authenticator was previously registered",
178
+ code: "ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",
179
+ cause: error
180
+ });
181
+ else if (error.name === "NotAllowedError")
182
+ /**
183
+ * Pass the error directly through. Platforms are overloading this error beyond what the spec
184
+ * defines and we don't want to overwrite potentially useful error messages.
185
+ */
186
+ return new WebAuthnError({
187
+ message: error.message,
188
+ code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
189
+ cause: error
190
+ });
191
+ else if (error.name === "NotSupportedError") {
192
+ if (publicKey.pubKeyCredParams.filter((param) => param.type === "public-key").length === 0) return new WebAuthnError({
193
+ message: "No entry in pubKeyCredParams was of type \"public-key\"",
194
+ code: "ERROR_MALFORMED_PUBKEYCREDPARAMS",
195
+ cause: error
196
+ });
197
+ return new WebAuthnError({
198
+ message: "No available authenticator supported any of the specified pubKeyCredParams algorithms",
199
+ code: "ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",
200
+ cause: error
201
+ });
202
+ } else if (error.name === "SecurityError") {
203
+ const effectiveDomain = globalThis.location.hostname;
204
+ if (!isValidDomain(effectiveDomain)) return new WebAuthnError({
205
+ message: `${globalThis.location.hostname} is an invalid domain`,
206
+ code: "ERROR_INVALID_DOMAIN",
207
+ cause: error
208
+ });
209
+ else if (publicKey.rp.id !== effectiveDomain) return new WebAuthnError({
210
+ message: `The RP ID "${publicKey.rp.id}" is invalid for this domain`,
211
+ code: "ERROR_INVALID_RP_ID",
212
+ cause: error
213
+ });
214
+ } else if (error.name === "TypeError") {
215
+ if (publicKey.user.id.byteLength < 1 || publicKey.user.id.byteLength > 64) return new WebAuthnError({
216
+ message: "User ID was not between 1 and 64 characters",
217
+ code: "ERROR_INVALID_USER_ID_LENGTH",
218
+ cause: error
219
+ });
220
+ } else if (error.name === "UnknownError") return new WebAuthnError({
221
+ message: "The authenticator was unable to process the specified options, or could not create a new credential",
222
+ code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
223
+ cause: error
224
+ });
225
+ return error;
226
+ }
227
+ //#endregion
228
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/webAuthnAbortService.js
229
+ var BaseWebAuthnAbortService = class {
230
+ constructor() {
231
+ Object.defineProperty(this, "controller", {
232
+ enumerable: true,
233
+ configurable: true,
234
+ writable: true,
235
+ value: void 0
236
+ });
237
+ }
238
+ createNewAbortSignal() {
239
+ if (this.controller) {
240
+ const abortError = /* @__PURE__ */ new Error("Cancelling existing WebAuthn API call for new one");
241
+ abortError.name = "AbortError";
242
+ this.controller.abort(abortError);
243
+ }
244
+ const newController = new AbortController();
245
+ this.controller = newController;
246
+ return newController.signal;
247
+ }
248
+ cancelCeremony() {
249
+ if (this.controller) {
250
+ const abortError = /* @__PURE__ */ new Error("Manually cancelling existing WebAuthn API call");
251
+ abortError.name = "AbortError";
252
+ this.controller.abort(abortError);
253
+ this.controller = void 0;
254
+ }
255
+ }
256
+ };
257
+ /**
258
+ * A service singleton to help ensure that only a single WebAuthn ceremony is active at a time.
259
+ *
260
+ * Users of **@simplewebauthn/browser** shouldn't typically need to use this, but it can help e.g.
261
+ * developers building projects that use client-side routing to better control the behavior of
262
+ * their UX in response to router navigation events.
263
+ */
264
+ const WebAuthnAbortService = new BaseWebAuthnAbortService();
265
+ //#endregion
266
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/toAuthenticatorAttachment.js
267
+ const attachments = ["cross-platform", "platform"];
268
+ /**
269
+ * If possible coerce a `string` value into a known `AuthenticatorAttachment`
270
+ */
271
+ function toAuthenticatorAttachment(attachment) {
272
+ if (!attachment) return;
273
+ if (attachments.indexOf(attachment) < 0) return;
274
+ return attachment;
275
+ }
276
+ //#endregion
277
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/methods/startRegistration.js
278
+ /**
279
+ * Begin authenticator "registration" via WebAuthn attestation
280
+ *
281
+ * @param optionsJSON Output from **@simplewebauthn/server**'s `generateRegistrationOptions()`
282
+ * @param useAutoRegister (Optional) Try to silently create a passkey with the password manager that the user just signed in with. Defaults to `false`.
283
+ */
284
+ async function startRegistration(options) {
285
+ if (!options.optionsJSON && options.challenge) {
286
+ console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.");
287
+ options = { optionsJSON: options };
288
+ }
289
+ const { optionsJSON, useAutoRegister = false } = options;
290
+ if (!browserSupportsWebAuthn()) throw new Error("WebAuthn is not supported in this browser");
291
+ const publicKey = {
292
+ ...optionsJSON,
293
+ challenge: base64URLStringToBuffer(optionsJSON.challenge),
294
+ user: {
295
+ ...optionsJSON.user,
296
+ id: base64URLStringToBuffer(optionsJSON.user.id)
297
+ },
298
+ excludeCredentials: optionsJSON.excludeCredentials?.map(toPublicKeyCredentialDescriptor)
299
+ };
300
+ const createOptions = {};
301
+ /**
302
+ * Try to use conditional create to register a passkey for the user with the password manager
303
+ * the user just used to authenticate with. The user won't be shown any prominent UI by the
304
+ * browser.
305
+ */
306
+ if (useAutoRegister) createOptions.mediation = "conditional";
307
+ createOptions.publicKey = publicKey;
308
+ createOptions.signal = WebAuthnAbortService.createNewAbortSignal();
309
+ let credential;
310
+ try {
311
+ credential = await navigator.credentials.create(createOptions);
312
+ } catch (err) {
313
+ throw identifyRegistrationError({
314
+ error: err,
315
+ options: createOptions
316
+ });
317
+ }
318
+ if (!credential) throw new Error("Registration was not completed");
319
+ const { id, rawId, response, type } = credential;
320
+ let transports = void 0;
321
+ if (typeof response.getTransports === "function") transports = response.getTransports();
322
+ let responsePublicKeyAlgorithm = void 0;
323
+ if (typeof response.getPublicKeyAlgorithm === "function") try {
324
+ responsePublicKeyAlgorithm = response.getPublicKeyAlgorithm();
325
+ } catch (error) {
326
+ warnOnBrokenImplementation("getPublicKeyAlgorithm()", error);
327
+ }
328
+ let responsePublicKey = void 0;
329
+ if (typeof response.getPublicKey === "function") try {
330
+ const _publicKey = response.getPublicKey();
331
+ if (_publicKey !== null) responsePublicKey = bufferToBase64URLString(_publicKey);
332
+ } catch (error) {
333
+ warnOnBrokenImplementation("getPublicKey()", error);
334
+ }
335
+ let responseAuthenticatorData;
336
+ if (typeof response.getAuthenticatorData === "function") try {
337
+ responseAuthenticatorData = bufferToBase64URLString(response.getAuthenticatorData());
338
+ } catch (error) {
339
+ warnOnBrokenImplementation("getAuthenticatorData()", error);
340
+ }
341
+ return {
342
+ id,
343
+ rawId: bufferToBase64URLString(rawId),
344
+ response: {
345
+ attestationObject: bufferToBase64URLString(response.attestationObject),
346
+ clientDataJSON: bufferToBase64URLString(response.clientDataJSON),
347
+ transports,
348
+ publicKeyAlgorithm: responsePublicKeyAlgorithm,
349
+ publicKey: responsePublicKey,
350
+ authenticatorData: responseAuthenticatorData
351
+ },
352
+ type,
353
+ clientExtensionResults: credential.getClientExtensionResults(),
354
+ authenticatorAttachment: toAuthenticatorAttachment(credential.authenticatorAttachment)
355
+ };
356
+ }
357
+ /**
358
+ * Visibly warn when we detect an issue related to a passkey provider intercepting WebAuthn API
359
+ * calls
360
+ */
361
+ function warnOnBrokenImplementation(methodName, cause) {
362
+ console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${methodName}. You should report this error to them.\n`, cause);
363
+ }
364
+ //#endregion
365
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/browserSupportsWebAuthnAutofill.js
366
+ /**
367
+ * Determine if the browser supports conditional UI, so that WebAuthn credentials can
368
+ * be shown to the user in the browser's typical password autofill popup.
369
+ */
370
+ function browserSupportsWebAuthnAutofill() {
371
+ if (!browserSupportsWebAuthn()) return _browserSupportsWebAuthnAutofillInternals.stubThis(new Promise((resolve) => resolve(false)));
372
+ /**
373
+ * I don't like the `as unknown` here but there's a `declare var PublicKeyCredential` in
374
+ * TS' DOM lib that's making it difficult for me to just go `as PublicKeyCredentialFuture` as I
375
+ * want. I think I'm fine with this for now since it's _supposed_ to be temporary, until TS types
376
+ * have a chance to catch up.
377
+ */
378
+ const globalPublicKeyCredential = globalThis.PublicKeyCredential;
379
+ if (globalPublicKeyCredential?.isConditionalMediationAvailable === void 0) return _browserSupportsWebAuthnAutofillInternals.stubThis(new Promise((resolve) => resolve(false)));
380
+ return _browserSupportsWebAuthnAutofillInternals.stubThis(globalPublicKeyCredential.isConditionalMediationAvailable());
381
+ }
382
+ const _browserSupportsWebAuthnAutofillInternals = { stubThis: (value) => value };
383
+ //#endregion
384
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/identifyAuthenticationError.js
385
+ /**
386
+ * Attempt to intuit _why_ an error was raised after calling `navigator.credentials.get()`
387
+ */
388
+ function identifyAuthenticationError({ error, options }) {
389
+ const { publicKey } = options;
390
+ if (!publicKey) throw Error("options was missing required publicKey property");
391
+ if (error.name === "AbortError") {
392
+ if (options.signal instanceof AbortSignal) return new WebAuthnError({
393
+ message: "Authentication ceremony was sent an abort signal",
394
+ code: "ERROR_CEREMONY_ABORTED",
395
+ cause: error
396
+ });
397
+ } else if (error.name === "NotAllowedError")
398
+ /**
399
+ * Pass the error directly through. Platforms are overloading this error beyond what the spec
400
+ * defines and we don't want to overwrite potentially useful error messages.
401
+ */
402
+ return new WebAuthnError({
403
+ message: error.message,
404
+ code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
405
+ cause: error
406
+ });
407
+ else if (error.name === "SecurityError") {
408
+ const effectiveDomain = globalThis.location.hostname;
409
+ if (!isValidDomain(effectiveDomain)) return new WebAuthnError({
410
+ message: `${globalThis.location.hostname} is an invalid domain`,
411
+ code: "ERROR_INVALID_DOMAIN",
412
+ cause: error
413
+ });
414
+ else if (publicKey.rpId !== effectiveDomain) return new WebAuthnError({
415
+ message: `The RP ID "${publicKey.rpId}" is invalid for this domain`,
416
+ code: "ERROR_INVALID_RP_ID",
417
+ cause: error
418
+ });
419
+ } else if (error.name === "UnknownError") return new WebAuthnError({
420
+ message: "The authenticator was unable to process the specified options, or could not create a new assertion signature",
421
+ code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
422
+ cause: error
423
+ });
424
+ return error;
425
+ }
426
+ //#endregion
427
+ //#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/methods/startAuthentication.js
428
+ /**
429
+ * Begin authenticator "login" via WebAuthn assertion
430
+ *
431
+ * @param optionsJSON Output from **@simplewebauthn/server**'s `generateAuthenticationOptions()`
432
+ * @param useBrowserAutofill (Optional) Initialize conditional UI to enable logging in via browser autofill prompts. Defaults to `false`.
433
+ * @param verifyBrowserAutofillInput (Optional) Ensure a suitable `<input>` element is present when `useBrowserAutofill` is `true`. Defaults to `true`.
434
+ */
435
+ async function startAuthentication(options) {
436
+ if (!options.optionsJSON && options.challenge) {
437
+ console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.");
438
+ options = { optionsJSON: options };
439
+ }
440
+ const { optionsJSON, useBrowserAutofill = false, verifyBrowserAutofillInput = true } = options;
441
+ if (!browserSupportsWebAuthn()) throw new Error("WebAuthn is not supported in this browser");
442
+ let allowCredentials;
443
+ if (optionsJSON.allowCredentials?.length !== 0) allowCredentials = optionsJSON.allowCredentials?.map(toPublicKeyCredentialDescriptor);
444
+ const publicKey = {
445
+ ...optionsJSON,
446
+ challenge: base64URLStringToBuffer(optionsJSON.challenge),
447
+ allowCredentials
448
+ };
449
+ const getOptions = {};
450
+ /**
451
+ * Set up the page to prompt the user to select a credential for authentication via the browser's
452
+ * input autofill mechanism.
453
+ */
454
+ if (useBrowserAutofill) {
455
+ if (!await browserSupportsWebAuthnAutofill()) throw Error("Browser does not support WebAuthn autofill");
456
+ if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && verifyBrowserAutofillInput) throw Error("No <input> with \"webauthn\" as the only or last value in its `autocomplete` attribute was detected");
457
+ getOptions.mediation = "conditional";
458
+ publicKey.allowCredentials = [];
459
+ }
460
+ getOptions.publicKey = publicKey;
461
+ getOptions.signal = WebAuthnAbortService.createNewAbortSignal();
462
+ let credential;
463
+ try {
464
+ credential = await navigator.credentials.get(getOptions);
465
+ } catch (err) {
466
+ throw identifyAuthenticationError({
467
+ error: err,
468
+ options: getOptions
469
+ });
470
+ }
471
+ if (!credential) throw new Error("Authentication was not completed");
472
+ const { id, rawId, response, type } = credential;
473
+ let userHandle = void 0;
474
+ if (response.userHandle) userHandle = bufferToBase64URLString(response.userHandle);
475
+ return {
476
+ id,
477
+ rawId: bufferToBase64URLString(rawId),
478
+ response: {
479
+ authenticatorData: bufferToBase64URLString(response.authenticatorData),
480
+ clientDataJSON: bufferToBase64URLString(response.clientDataJSON),
481
+ signature: bufferToBase64URLString(response.signature),
482
+ userHandle
483
+ },
484
+ type,
485
+ clientExtensionResults: credential.getClientExtensionResults(),
486
+ authenticatorAttachment: toAuthenticatorAttachment(credential.authenticatorAttachment)
487
+ };
488
+ }
489
+ //#endregion
490
+ //#region ../../node_modules/.pnpm/nanostores@1.5.4/node_modules/nanostores/clean-stores/index.js
491
+ const clean = Symbol("clean");
492
+ //#endregion
493
+ //#region ../../node_modules/.pnpm/nanostores@1.5.4/node_modules/nanostores/atom/index.js
494
+ let listenerQueue = [];
495
+ let lqIndex = 0;
496
+ const QUEUE_ITEMS_PER_LISTENER = 4;
497
+ const nanostoresGlobal = globalThis.nanostoresGlobal ||= { epoch: 0 };
498
+ let drainQueue = () => {
499
+ let thrown;
500
+ let i;
501
+ while (lqIndex < listenerQueue.length) {
502
+ i = lqIndex;
503
+ lqIndex += QUEUE_ITEMS_PER_LISTENER;
504
+ try {
505
+ listenerQueue[i](listenerQueue[i + 1].value, listenerQueue[i + 2], listenerQueue[i + 3]);
506
+ } catch (e) {
507
+ thrown = e;
508
+ }
509
+ }
510
+ listenerQueue.length = lqIndex = 0;
511
+ if (thrown) throw thrown;
512
+ };
513
+ const atom = /* @__NO_SIDE_EFFECTS__ */ (initialValue) => {
514
+ let listeners = [];
515
+ let $atom = {
516
+ eq: Object.is,
517
+ get() {
518
+ if (!$atom.lc) $atom.listen(() => {})();
519
+ return $atom.value;
520
+ },
521
+ init: initialValue,
522
+ lc: 0,
523
+ listen(listener) {
524
+ $atom.lc = listeners.push(listener);
525
+ return () => {
526
+ for (let i = lqIndex; i < listenerQueue.length;) if (listenerQueue[i] === listener && listenerQueue[i + 1] === $atom) listenerQueue.splice(i, QUEUE_ITEMS_PER_LISTENER);
527
+ else i += QUEUE_ITEMS_PER_LISTENER;
528
+ let index = listeners.indexOf(listener);
529
+ if (~index) {
530
+ listeners.splice(index, 1);
531
+ if (!--$atom.lc) $atom.off();
532
+ }
533
+ };
534
+ },
535
+ notify(oldValue, changedKey) {
536
+ nanostoresGlobal.epoch++;
537
+ let runListenerQueue = !listenerQueue.length && true;
538
+ for (let listener of listeners) listenerQueue.push(listener, $atom, oldValue, changedKey);
539
+ if (runListenerQueue) drainQueue();
540
+ },
541
+ off() {},
542
+ set(newValue) {
543
+ let oldValue = $atom.value;
544
+ if (!$atom.eq(oldValue, newValue)) {
545
+ $atom.value = newValue;
546
+ $atom.notify(oldValue);
547
+ }
548
+ },
549
+ subscribe(listener) {
550
+ let unbind = $atom.listen(listener);
551
+ listener($atom.value);
552
+ return unbind;
553
+ },
554
+ value: initialValue
555
+ };
556
+ if (process.env.NODE_ENV !== "production") $atom[clean] = () => {
557
+ listeners = [];
558
+ $atom.lc = 0;
559
+ $atom.off();
560
+ };
561
+ return $atom;
562
+ };
563
+ //#endregion
564
+ //#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.15_70ea9c824adc5de32c12d7251315bda0/node_modules/@better-auth/passkey/dist/client.mjs
565
+ const getPasskeyActions = ($fetch, { $listPasskeys, $store }) => {
566
+ const signInPasskey = async (opts, options) => {
567
+ const response = await $fetch("/passkey/generate-authenticate-options", {
568
+ method: "GET",
569
+ throw: false
570
+ });
571
+ if (!response.data) return response;
572
+ const mergedExtensions = response.data.extensions || opts?.extensions ? {
573
+ ...response.data.extensions || {},
574
+ ...opts?.extensions || {}
575
+ } : void 0;
576
+ let res;
577
+ try {
578
+ res = await startAuthentication({
579
+ optionsJSON: {
580
+ ...response.data,
581
+ extensions: mergedExtensions
582
+ },
583
+ useBrowserAutofill: opts?.autoFill
584
+ });
585
+ } catch (err) {
586
+ return {
587
+ data: null,
588
+ error: {
589
+ code: err instanceof WebAuthnError ? err.code : "AUTH_CANCELLED",
590
+ message: PASSKEY_ERROR_CODES.AUTH_CANCELLED.message,
591
+ status: 400,
592
+ statusText: "BAD_REQUEST"
593
+ }
594
+ };
595
+ }
596
+ try {
597
+ const { clientExtensionResults, ...responseBody } = res;
598
+ const verified = await $fetch("/passkey/verify-authentication", {
599
+ body: { response: responseBody },
600
+ ...opts?.fetchOptions,
601
+ ...options,
602
+ method: "POST",
603
+ throw: false
604
+ });
605
+ $listPasskeys.set(Math.random());
606
+ $store.notify("$sessionSignal");
607
+ if (opts?.returnWebAuthnResponse) return {
608
+ ...verified,
609
+ webauthn: {
610
+ response: res,
611
+ clientExtensionResults
612
+ }
613
+ };
614
+ return verified;
615
+ } catch (err) {
616
+ console.error(`[Better Auth] Error verifying passkey`, err);
617
+ return {
618
+ data: null,
619
+ error: {
620
+ code: "AUTH_CANCELLED",
621
+ message: PASSKEY_ERROR_CODES.AUTH_CANCELLED.message,
622
+ status: 400,
623
+ statusText: "BAD_REQUEST"
624
+ }
625
+ };
626
+ }
627
+ };
628
+ const registerPasskey = async (opts, fetchOpts) => {
629
+ const options = await $fetch("/passkey/generate-register-options", {
630
+ method: "GET",
631
+ query: {
632
+ ...opts?.authenticatorAttachment && { authenticatorAttachment: opts.authenticatorAttachment },
633
+ ...opts?.name && { name: opts.name },
634
+ ...opts?.context && { context: opts.context }
635
+ },
636
+ throw: false
637
+ });
638
+ if (!options.data) return options;
639
+ try {
640
+ const mergedExtensions = options.data.extensions || opts?.extensions ? {
641
+ ...options.data.extensions || {},
642
+ ...opts?.extensions || {}
643
+ } : void 0;
644
+ const res = await startRegistration({
645
+ optionsJSON: {
646
+ ...options.data,
647
+ extensions: mergedExtensions
648
+ },
649
+ useAutoRegister: opts?.useAutoRegister
650
+ });
651
+ const { clientExtensionResults, ...responseBody } = res;
652
+ const verified = await $fetch("/passkey/verify-registration", {
653
+ ...opts?.fetchOptions,
654
+ ...fetchOpts,
655
+ body: {
656
+ response: responseBody,
657
+ name: opts?.name,
658
+ ...opts?.createSession && { createSession: true }
659
+ },
660
+ method: "POST",
661
+ throw: false
662
+ });
663
+ if (!verified.data) return verified;
664
+ $listPasskeys.set(Math.random());
665
+ if (verified.data.session) $store.notify("$sessionSignal");
666
+ if (opts?.returnWebAuthnResponse) return {
667
+ ...verified,
668
+ webauthn: {
669
+ response: res,
670
+ clientExtensionResults
671
+ }
672
+ };
673
+ return verified;
674
+ } catch (e) {
675
+ if (e instanceof WebAuthnError) {
676
+ if (e.code === "ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED") return {
677
+ data: null,
678
+ error: {
679
+ code: e.code,
680
+ message: PASSKEY_ERROR_CODES.PREVIOUSLY_REGISTERED.message,
681
+ status: 400,
682
+ statusText: "BAD_REQUEST"
683
+ }
684
+ };
685
+ if (e.code === "ERROR_CEREMONY_ABORTED") return {
686
+ data: null,
687
+ error: {
688
+ code: e.code,
689
+ message: PASSKEY_ERROR_CODES.REGISTRATION_CANCELLED.message,
690
+ status: 400,
691
+ statusText: "BAD_REQUEST"
692
+ }
693
+ };
694
+ return {
695
+ data: null,
696
+ error: {
697
+ code: e.code,
698
+ message: e.message,
699
+ status: 400,
700
+ statusText: "BAD_REQUEST"
701
+ }
702
+ };
703
+ }
704
+ return {
705
+ data: null,
706
+ error: {
707
+ code: "UNKNOWN_ERROR",
708
+ message: e instanceof Error ? e.message : PASSKEY_ERROR_CODES.UNKNOWN_ERROR.message,
709
+ status: 500,
710
+ statusText: "INTERNAL_SERVER_ERROR"
711
+ }
712
+ };
713
+ }
714
+ };
715
+ return {
716
+ signIn: {
717
+ /**
718
+ * Sign in with a registered passkey
719
+ */
720
+ passkey: signInPasskey },
721
+ passkey: {
722
+ /**
723
+ * Add a passkey to the user account
724
+ */
725
+ addPasskey: registerPasskey },
726
+ /**
727
+ * Inferred Internal Types
728
+ */
729
+ $Infer: {}
730
+ };
731
+ };
732
+ const passkeyClient = () => {
733
+ const $listPasskeys = /* @__PURE__ */ atom();
734
+ return {
735
+ id: "passkey",
736
+ version: PACKAGE_VERSION,
737
+ $InferServerPlugin: {},
738
+ getActions: ($fetch, $store) => getPasskeyActions($fetch, {
739
+ $listPasskeys,
740
+ $store
741
+ }),
742
+ getAtoms($fetch) {
743
+ return {
744
+ listPasskeys: useAuthQuery($listPasskeys, "/passkey/list-user-passkeys", $fetch, { method: "GET" }),
745
+ $listPasskeys
746
+ };
747
+ },
748
+ pathMethods: {
749
+ "/passkey/register": "POST",
750
+ "/passkey/authenticate": "POST"
751
+ },
752
+ atomListeners: [{
753
+ matcher(path) {
754
+ return path === "/passkey/verify-registration" || path === "/passkey/delete-passkey" || path === "/passkey/update-passkey" || path === "/sign-out";
755
+ },
756
+ signal: "$listPasskeys"
757
+ }, {
758
+ matcher: (path) => path === "/passkey/verify-authentication",
759
+ signal: "$sessionSignal"
760
+ }],
761
+ $ERROR_CODES: PASSKEY_ERROR_CODES
762
+ };
763
+ };
764
+ //#endregion
765
+ //#region src/console/runtime/client/account.ts
766
+ /**
767
+ * The account of a Console that runs as its own app, such as console.vitehub.dev. People sign in to the Console with
768
+ * GitHub or a passkey. Projects belong to teams, and every account has a personal team. The Console server keeps a
769
+ * private key for each project, and signs the calls of the page that it forwards to `/p/<project>/_vitehub/...`.
770
+ */
771
+ /** The origin of the Console page. Read without DOM types, like `isRemoteProject()`, for the package's server build. */
772
+ function pageOrigin() {
773
+ const location = Reflect.get(globalThis, "location");
774
+ const origin = location instanceof Object ? Reflect.get(location, "origin") : void 0;
775
+ return String(origin) === origin ? origin : "";
776
+ }
777
+ let client;
778
+ function createClient() {
779
+ return createAuthClient({
780
+ baseURL: `${pageOrigin()}/api/auth`,
781
+ plugins: [organizationClient(), passkeyClient()]
782
+ });
783
+ }
784
+ function auth() {
785
+ client ??= createClient();
786
+ return client;
787
+ }
788
+ function failure(error, fallback) {
789
+ return consoleDiagnostic(consoleStatusDiagnosticCode(error?.status ?? 500), error?.message || fallback);
790
+ }
791
+ async function json(path, init = {}) {
792
+ const response = await fetch(path, {
793
+ ...init,
794
+ credentials: "same-origin",
795
+ headers: {
796
+ accept: "application/json",
797
+ ...init.body ? { "content-type": "application/json" } : {}
798
+ }
799
+ });
800
+ const body = await response.json().catch(() => void 0);
801
+ if (!response.ok) {
802
+ const message = body instanceof Object ? Reflect.get(body, "message") : void 0;
803
+ const fix = body instanceof Object ? Reflect.get(body, "fix") : void 0;
804
+ const why = String(message) === message && message ? message : `The Console answered ${response.status}.`;
805
+ throw failure({ status: response.status }, String(fix) === fix && fix ? `${why} ${fix}` : why);
806
+ }
807
+ return body;
808
+ }
809
+ let signInMethods;
810
+ /** The sign-in methods of this Console. They do not change while the page is open, so the page asks once. */
811
+ function loadConsoleSignInMethods() {
812
+ signInMethods ??= json("/api/sign-in-methods").catch(() => ({ github: false }));
813
+ return signInMethods;
814
+ }
815
+ /** Leave for GitHub. GitHub sends the browser back to `callbackURL`. */
816
+ async function signInWithGitHub(callbackURL) {
817
+ const { error } = await auth().signIn.social({
818
+ provider: "github",
819
+ callbackURL
820
+ });
821
+ if (error) throw failure(error, "GitHub sign-in did not start.");
822
+ }
823
+ async function signInWithPasskey() {
824
+ const result = await auth().signIn.passkey();
825
+ if (result.error) throw failure(result.error, "The passkey did not sign you in.");
826
+ }
827
+ /** Make an account with a new passkey. `name` is the name that the Console shows. */
828
+ async function signUpWithPasskey(name) {
829
+ const result = await auth().passkey.addPasskey({
830
+ context: name,
831
+ createSession: true,
832
+ name: "ViteHub Console"
833
+ });
834
+ if (result.error) throw failure(result.error, "The passkey was not saved.");
835
+ }
836
+ /** Add a passkey to the signed-in account. */
837
+ async function addConsolePasskey() {
838
+ const result = await auth().passkey.addPasskey({ name: "ViteHub Console" });
839
+ if (result.error) throw failure(result.error, "The passkey was not saved.");
840
+ }
841
+ /** Add GitHub sign-in to the signed-in account. */
842
+ async function linkConsoleGitHub(callbackURL) {
843
+ const { error } = await auth().linkSocial({
844
+ provider: "github",
845
+ callbackURL
846
+ });
847
+ if (error) throw failure(error, "GitHub did not start.");
848
+ }
849
+ /** End the session of the Console server. `signOutConsole()` also deletes the stored answers and loads the page again. */
850
+ async function endConsoleSession() {
851
+ const { error } = await auth().signOut();
852
+ if (error) throw failure(error, "Sign out failed.");
853
+ }
854
+ async function switchConsoleTeam(teamId) {
855
+ const { error } = await auth().organization.setActive({ organizationId: teamId });
856
+ if (error) throw failure(error, "The team did not open.");
857
+ }
858
+ /** Make a team, with the person as its owner, and open it. */
859
+ async function createConsoleTeam(name) {
860
+ const trimmed = name.replace(/\s+/g, " ").trim();
861
+ if (!trimmed) throw consoleDiagnostic("CONSOLE_REQUEST_INVALID", "Enter a team name.");
862
+ const slug = `${trimmed.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 32) || "team"}-${crypto.randomUUID().slice(0, 6)}`;
863
+ const { data, error } = await auth().organization.create({
864
+ name: trimmed,
865
+ slug
866
+ });
867
+ if (error || !data) throw failure(error, "The team was not created.");
868
+ await switchConsoleTeam(data.id);
869
+ }
870
+ /** Invite a person by the email address of their GitHub account. They accept on `/invite/<id>`. */
871
+ async function inviteConsoleMember(email, role) {
872
+ const { data, error } = await auth().organization.inviteMember({
873
+ email: email.trim(),
874
+ role
875
+ });
876
+ if (error || !data) throw failure(error, "The invitation was not created.");
877
+ return invitationLink(data.id);
878
+ }
879
+ async function acceptConsoleInvitation(invitationId) {
880
+ const { data, error } = await auth().organization.acceptInvitation({ invitationId });
881
+ if (error || !data) throw failure(error, "The invitation was not accepted.");
882
+ await switchConsoleTeam(data.invitation.organizationId);
883
+ }
884
+ function invitationLink(id) {
885
+ return `${pageOrigin()}/invite/${encodeURIComponent(id)}`;
886
+ }
887
+ /** The members and the pending invitations of the active team. */
888
+ async function loadConsoleTeam() {
889
+ const { data, error } = await auth().organization.getFullOrganization();
890
+ if (error || !data) throw failure(error, "The team did not load.");
891
+ return {
892
+ members: data.members.map((member) => ({
893
+ id: member.id,
894
+ role: String(member.role),
895
+ createdAt: new Date(member.createdAt).toISOString(),
896
+ user: {
897
+ id: member.user.id,
898
+ name: member.user.name,
899
+ email: member.user.email,
900
+ image: member.user.image
901
+ }
902
+ })),
903
+ invitations: data.invitations.filter((invitation) => invitation.status === "pending" && new Date(invitation.expiresAt).getTime() > Date.now()).map((invitation) => ({
904
+ id: invitation.id,
905
+ email: invitation.email,
906
+ role: String(invitation.role),
907
+ expiresAt: new Date(invitation.expiresAt).toISOString(),
908
+ link: invitationLink(invitation.id)
909
+ }))
910
+ };
911
+ }
912
+ async function removeConsoleMember(memberId) {
913
+ const { error } = await auth().organization.removeMember({ memberIdOrEmail: memberId });
914
+ if (error) throw failure(error, "The member was not removed.");
915
+ }
916
+ async function cancelConsoleInvitation(invitationId) {
917
+ const { error } = await auth().organization.cancelInvitation({ invitationId });
918
+ if (error) throw failure(error, "The invitation was not canceled.");
919
+ }
920
+ async function renameConsoleTeam(name) {
921
+ const trimmed = name.replace(/\s+/g, " ").trim();
922
+ if (!trimmed) throw consoleDiagnostic("CONSOLE_REQUEST_INVALID", "Enter a team name.");
923
+ const { error } = await auth().organization.update({ data: { name: trimmed } });
924
+ if (error) throw failure(error, "The team was not renamed.");
925
+ }
926
+ /**
927
+ * Leave a team. The session then opens `next`, another team of the person. The last owner of a team cannot leave it,
928
+ * and the Console server refuses that.
929
+ */
930
+ async function leaveConsoleTeam(teamId, next) {
931
+ const { error } = await auth().organization.leave({ organizationId: teamId });
932
+ if (error) throw failure(error, "You did not leave the team.");
933
+ if (next) await switchConsoleTeam(next);
934
+ }
935
+ async function listConsolePasskeys() {
936
+ const { data, error } = await auth().passkey.listUserPasskeys();
937
+ if (error) throw failure(error, "The passkeys did not load.");
938
+ return (data ?? []).map((passkey) => ({
939
+ id: passkey.id,
940
+ name: passkey.name,
941
+ ...passkey.createdAt ? { createdAt: new Date(passkey.createdAt).toISOString() } : {}
942
+ }));
943
+ }
944
+ async function deleteConsolePasskey(id) {
945
+ const { error } = await auth().passkey.deletePasskey({ id });
946
+ if (error) throw failure(error, "The passkey was not removed.");
947
+ }
948
+ /** The sign-in providers of the signed-in account, such as `github`. Passkeys are not in the list. */
949
+ async function listConsoleSignInProviders() {
950
+ const { data, error } = await auth().listAccounts();
951
+ if (error) throw failure(error, "The sign-in methods did not load.");
952
+ return (data ?? []).map((account) => account.providerId);
953
+ }
954
+ async function renameConsoleAccount(name) {
955
+ const trimmed = name.replace(/\s+/g, " ").trim();
956
+ if (!trimmed) throw consoleDiagnostic("CONSOLE_REQUEST_INVALID", "Enter a name.");
957
+ const { error } = await auth().updateUser({ name: trimmed });
958
+ if (error) throw failure(error, "The name was not saved.");
959
+ }
960
+ async function listConsoleApiKeys() {
961
+ return (await json("/api/api-keys")).apiKeys;
962
+ }
963
+ /** Make an API key in the active team. The answer holds the key once: show it, then forget it. */
964
+ async function createConsoleApiKey(input) {
965
+ return await json("/api/api-keys", {
966
+ body: JSON.stringify(input),
967
+ method: "POST"
968
+ });
969
+ }
970
+ async function revokeConsoleApiKey(id) {
971
+ const response = await fetch(`/api/api-keys/${encodeURIComponent(id)}`, {
972
+ credentials: "same-origin",
973
+ method: "DELETE"
974
+ });
975
+ if (!response.ok && response.status !== 404) throw failure({ status: response.status }, `The Console answered ${response.status}.`);
976
+ }
977
+ /** What each status says, in the sidebar and on Home. */
978
+ const accountAppStatusLabels = {
979
+ checking: "Checking",
980
+ connected: "Connected",
981
+ setup: "Variable not set",
982
+ unconfigured: "Not connected",
983
+ unreachable: "Not reachable"
984
+ };
985
+ const variableProblems = /* @__PURE__ */ new Set([
986
+ "CONSOLE_KEY_NOT_CONFIGURED",
987
+ "CONSOLE_KEY_UNKNOWN",
988
+ "CONSOLE_SIGNATURE_INVALID"
989
+ ]);
990
+ /** Whether the app keeps the public key of the link: the Console server calls the app with a signed request. */
991
+ async function checkConsoleAccountProject(id) {
992
+ const result = await json(`/api/projects/${encodeURIComponent(id)}/check`, { method: "POST" });
993
+ if (result.linked) {
994
+ const name = result.answer instanceof Object ? Reflect.get(result.answer, "name") : void 0;
995
+ const build = consoleProjectBuildOf(result.answer instanceof Object ? Reflect.get(result.answer, "build") : void 0);
996
+ return {
997
+ status: "connected",
998
+ code: result.status,
999
+ ...String(name) === name && name.trim() ? { name: name.trim() } : {},
1000
+ ...build ? { build } : {}
1001
+ };
1002
+ }
1003
+ const answerCode = result.answer instanceof Object ? Reflect.get(result.answer, "code") : void 0;
1004
+ const code = String(answerCode);
1005
+ return {
1006
+ status: variableProblems.has(code) ? "setup" : code.startsWith("CONSOLE_FORWARD_") ? "unreachable" : "unconfigured",
1007
+ code: result.status
1008
+ };
1009
+ }
1010
+ /** Link an app to the active team. The answer names the variable and the public key to set on the app. */
1011
+ async function linkConsoleAccountProject(url, label) {
1012
+ const { project } = await json("/api/projects", {
1013
+ body: JSON.stringify({
1014
+ url,
1015
+ ...label ? { label } : {}
1016
+ }),
1017
+ method: "POST"
1018
+ });
1019
+ return project;
1020
+ }
1021
+ /** Rename an app of the active team. An empty name removes the label, so the Console shows the name that the app reports. */
1022
+ async function renameConsoleAccountProject(id, label) {
1023
+ const name = label.replace(/\s+/g, " ").trim();
1024
+ const { project } = await json(`/api/projects/${encodeURIComponent(id)}`, {
1025
+ body: JSON.stringify({ label: name || null }),
1026
+ method: "PATCH"
1027
+ });
1028
+ return project;
1029
+ }
1030
+ async function unlinkConsoleAccountProject(id) {
1031
+ const response = await fetch(`/api/projects/${encodeURIComponent(id)}`, {
1032
+ credentials: "same-origin",
1033
+ method: "DELETE"
1034
+ });
1035
+ if (!response.ok && response.status !== 404) throw failure({ status: response.status }, `The Console answered ${response.status}.`);
1036
+ }
1037
+ async function loadConsoleSignInState() {
1038
+ const [passkeys, providers, methods] = await Promise.all([
1039
+ listConsolePasskeys(),
1040
+ listConsoleSignInProviders(),
1041
+ loadConsoleSignInMethods()
1042
+ ]);
1043
+ return {
1044
+ passkeys,
1045
+ providers,
1046
+ methods
1047
+ };
1048
+ }
1049
+ /**
1050
+ * A load that starts before its page opens, such as when the pointer reaches the page's link. The page takes it when it
1051
+ * opens, so it renders the answer at once. An answer older than 30 seconds is loaded again.
1052
+ */
1053
+ function early(load) {
1054
+ let pending;
1055
+ const fresh = () => pending !== void 0 && Date.now() - pending.at < 3e4;
1056
+ return {
1057
+ /** Starts the load, and resolves when it ends, also when it fails. */
1058
+ start() {
1059
+ if (fresh()) return pending.answer.catch(() => void 0);
1060
+ const answer = load();
1061
+ answer.catch(() => {
1062
+ if (pending?.answer === answer) pending = void 0;
1063
+ });
1064
+ pending = {
1065
+ at: Date.now(),
1066
+ answer
1067
+ };
1068
+ return answer.catch(() => void 0);
1069
+ },
1070
+ take() {
1071
+ const answer = fresh() ? pending.answer : load();
1072
+ pending = void 0;
1073
+ return answer;
1074
+ }
1075
+ };
1076
+ }
1077
+ /** The data of the Members page, loaded early. */
1078
+ const earlyConsoleTeam = early(loadConsoleTeam);
1079
+ /** The data of Account settings, loaded early. */
1080
+ const earlyConsoleSignInState = early(loadConsoleSignInState);
1081
+ function envPath(projectId, ...parts) {
1082
+ return [`/api/projects/${encodeURIComponent(projectId)}/env`, ...parts.map(encodeURIComponent)].join("/");
1083
+ }
1084
+ async function loadConsoleEnvStage(projectId, stage) {
1085
+ const response = await fetch(envPath(projectId, stage), {
1086
+ credentials: "same-origin",
1087
+ headers: { accept: "application/json" }
1088
+ });
1089
+ const body = await response.json().catch(() => void 0);
1090
+ const field = (name) => body instanceof Object ? Reflect.get(body, name) : void 0;
1091
+ const message = field("message");
1092
+ if (field("code") === "CONSOLE_ENV_VALUES_OFF") return {
1093
+ message: String(message),
1094
+ off: true
1095
+ };
1096
+ if (!response.ok) throw failure({ status: response.status }, typeof message === "string" && message ? message : `The Console answered ${response.status}.`);
1097
+ return {
1098
+ ...body,
1099
+ off: false
1100
+ };
1101
+ }
1102
+ /** Set or replace a value. Only owners and admins. The page never shows the value again. */
1103
+ async function setConsoleEnvValue(projectId, stage, name, value) {
1104
+ await json(envPath(projectId, stage, name), {
1105
+ body: JSON.stringify({ value }),
1106
+ method: "PUT"
1107
+ });
1108
+ }
1109
+ async function deleteConsoleEnvValue(projectId, stage, name) {
1110
+ const response = await fetch(envPath(projectId, stage, name), {
1111
+ credentials: "same-origin",
1112
+ method: "DELETE"
1113
+ });
1114
+ if (!response.ok && response.status !== 404) throw failure({ status: response.status }, `The Console answered ${response.status}.`);
1115
+ }
1116
+ /** Read one value. The Console writes who read it in the env activity first. */
1117
+ async function revealConsoleEnvValue(projectId, stage, name) {
1118
+ const { values } = await json(envPath(projectId, stage, "reveal"), {
1119
+ body: JSON.stringify({ names: [name] }),
1120
+ method: "POST"
1121
+ });
1122
+ return values[name];
1123
+ }
1124
+ //#endregion
1125
+ export { acceptConsoleInvitation, accountAppStatusLabels, addConsolePasskey, cancelConsoleInvitation, checkConsoleAccountProject, createConsoleApiKey, createConsoleTeam, deleteConsoleEnvValue, deleteConsolePasskey, earlyConsoleSignInState, earlyConsoleTeam, endConsoleSession, inviteConsoleMember, leaveConsoleTeam, linkConsoleAccountProject, linkConsoleGitHub, listConsoleApiKeys, listConsolePasskeys, listConsoleSignInProviders, loadConsoleEnvStage, loadConsoleSignInMethods, loadConsoleSignInState, loadConsoleTeam, removeConsoleMember, renameConsoleAccount, renameConsoleAccountProject, renameConsoleTeam, revealConsoleEnvValue, revokeConsoleApiKey, setConsoleEnvValue, signInWithGitHub, signInWithPasskey, signUpWithPasskey, switchConsoleTeam, unlinkConsoleAccountProject };