nuxt-backend 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/README.md +8 -4
  2. package/dist/capabilities/registry.js +1 -1
  3. package/dist/chunks/catalog.mjs +1 -1
  4. package/dist/chunks/{index.mjs → devtools.mjs} +2 -2
  5. package/dist/chunks/doctor.mjs +14 -6
  6. package/dist/chunks/email-previews.mjs +1 -1
  7. package/dist/chunks/health.mjs +2 -2
  8. package/dist/chunks/install.mjs +4 -4
  9. package/dist/chunks/run.mjs +1 -1
  10. package/dist/chunks/server.mjs +15 -4
  11. package/dist/cli.mjs +28 -8
  12. package/dist/convex/access-tickets.d.ts +17 -2
  13. package/dist/convex/access-tickets.d.ts.map +1 -1
  14. package/dist/convex/account-data.d.ts +4 -4
  15. package/dist/convex/account-data.d.ts.map +1 -1
  16. package/dist/convex/account-data.js +5 -4
  17. package/dist/convex/account-data.js.map +1 -1
  18. package/dist/convex/app.d.ts +1 -0
  19. package/dist/convex/app.d.ts.map +1 -1
  20. package/dist/convex/app.js +2 -1
  21. package/dist/convex/app.js.map +1 -1
  22. package/dist/convex/client/better-auth-options.d.ts.map +1 -1
  23. package/dist/convex/client/better-auth-options.js +12 -3
  24. package/dist/convex/client/better-auth-options.js.map +1 -1
  25. package/dist/convex/client/component.d.ts +4 -0
  26. package/dist/convex/client/component.d.ts.map +1 -1
  27. package/dist/convex/client/index.d.ts +5 -0
  28. package/dist/convex/client/index.d.ts.map +1 -1
  29. package/dist/convex/client/launch-gate.d.ts.map +1 -1
  30. package/dist/convex/client/launch-gate.js +30 -1
  31. package/dist/convex/client/launch-gate.js.map +1 -1
  32. package/dist/convex/client/plugins.d.ts.map +1 -1
  33. package/dist/convex/client/plugins.js +3 -0
  34. package/dist/convex/client/plugins.js.map +1 -1
  35. package/dist/convex/client/two-factor.d.ts +7 -0
  36. package/dist/convex/client/two-factor.d.ts.map +1 -0
  37. package/dist/convex/client/two-factor.js +57 -0
  38. package/dist/convex/client/two-factor.js.map +1 -0
  39. package/dist/convex/components/backend/_generated/api.d.ts +2 -0
  40. package/dist/convex/components/backend/_generated/api.d.ts.map +1 -1
  41. package/dist/convex/components/backend/_generated/api.js.map +1 -1
  42. package/dist/convex/components/backend/_generated/component.d.ts +292 -10
  43. package/dist/convex/components/backend/_generated/component.d.ts.map +1 -1
  44. package/dist/convex/components/backend/account.d.ts +63 -17
  45. package/dist/convex/components/backend/account.d.ts.map +1 -1
  46. package/dist/convex/components/backend/account.js +24 -1
  47. package/dist/convex/components/backend/account.js.map +1 -1
  48. package/dist/convex/components/backend/adapter.d.ts.map +1 -1
  49. package/dist/convex/components/backend/adapter.js +7 -2
  50. package/dist/convex/components/backend/adapter.js.map +1 -1
  51. package/dist/convex/components/backend/ai.d.ts +1 -1
  52. package/dist/convex/components/backend/billing.d.ts +10 -0
  53. package/dist/convex/components/backend/billing.d.ts.map +1 -1
  54. package/dist/convex/components/backend/billing.js +2 -1
  55. package/dist/convex/components/backend/billing.js.map +1 -1
  56. package/dist/convex/components/backend/commerce.d.ts +229 -0
  57. package/dist/convex/components/backend/commerce.d.ts.map +1 -0
  58. package/dist/convex/components/backend/commerce.js +392 -0
  59. package/dist/convex/components/backend/commerce.js.map +1 -0
  60. package/dist/convex/components/backend/funnel.d.ts +6 -6
  61. package/dist/convex/components/backend/jobs.d.ts +1 -1
  62. package/dist/convex/components/backend/referrals.d.ts +2 -2
  63. package/dist/convex/components/backend/schema.d.ts +327 -21
  64. package/dist/convex/components/backend/schema.d.ts.map +1 -1
  65. package/dist/convex/components/backend/schema.js +108 -1
  66. package/dist/convex/components/backend/schema.js.map +1 -1
  67. package/dist/convex/components/backend/waitlist.d.ts +42 -6
  68. package/dist/convex/components/backend/waitlist.d.ts.map +1 -1
  69. package/dist/convex/components/backend/waitlist.js +142 -39
  70. package/dist/convex/components/backend/waitlist.js.map +1 -1
  71. package/dist/convex/email-templates.d.ts +12 -0
  72. package/dist/convex/email-templates.d.ts.map +1 -1
  73. package/dist/convex/email-templates.js +3 -0
  74. package/dist/convex/email-templates.js.map +1 -1
  75. package/dist/convex/emails/waitlist-friend-joined.d.ts +9 -0
  76. package/dist/convex/emails/waitlist-friend-joined.d.ts.map +1 -0
  77. package/dist/convex/emails/waitlist-friend-joined.js +22 -0
  78. package/dist/convex/emails/waitlist-friend-joined.js.map +1 -0
  79. package/dist/convex/errors.d.ts +6 -6
  80. package/dist/convex/errors.d.ts.map +1 -1
  81. package/dist/convex/errors.js +14 -2
  82. package/dist/convex/errors.js.map +1 -1
  83. package/dist/convex/events.d.ts +19 -0
  84. package/dist/convex/events.d.ts.map +1 -1
  85. package/dist/convex/events.js +14 -0
  86. package/dist/convex/events.js.map +1 -1
  87. package/dist/convex/integrations/billing/checkout.d.ts +2 -2
  88. package/dist/convex/integrations/billing/checkout.d.ts.map +1 -1
  89. package/dist/convex/integrations/billing/checkout.js +79 -11
  90. package/dist/convex/integrations/billing/checkout.js.map +1 -1
  91. package/dist/convex/integrations/billing/commerce-entitlements.d.ts +12 -0
  92. package/dist/convex/integrations/billing/commerce-entitlements.d.ts.map +1 -0
  93. package/dist/convex/integrations/billing/commerce-entitlements.js +78 -0
  94. package/dist/convex/integrations/billing/commerce-entitlements.js.map +1 -0
  95. package/dist/convex/integrations/billing/commerce-events.d.ts +15 -0
  96. package/dist/convex/integrations/billing/commerce-events.d.ts.map +1 -0
  97. package/dist/convex/integrations/billing/commerce-events.js +433 -0
  98. package/dist/convex/integrations/billing/commerce-events.js.map +1 -0
  99. package/dist/convex/integrations/billing/commerce-history.d.ts +20 -0
  100. package/dist/convex/integrations/billing/commerce-history.d.ts.map +1 -0
  101. package/dist/convex/integrations/billing/commerce-history.js +106 -0
  102. package/dist/convex/integrations/billing/commerce-history.js.map +1 -0
  103. package/dist/convex/integrations/billing/commerce-webhooks.d.ts +23 -0
  104. package/dist/convex/integrations/billing/commerce-webhooks.d.ts.map +1 -0
  105. package/dist/convex/integrations/billing/commerce-webhooks.js +49 -0
  106. package/dist/convex/integrations/billing/commerce-webhooks.js.map +1 -0
  107. package/dist/convex/integrations/billing/commerce.d.ts +100 -0
  108. package/dist/convex/integrations/billing/commerce.d.ts.map +1 -0
  109. package/dist/convex/integrations/billing/commerce.js +323 -0
  110. package/dist/convex/integrations/billing/commerce.js.map +1 -0
  111. package/dist/convex/integrations/billing/context.d.ts +8 -0
  112. package/dist/convex/integrations/billing/context.d.ts.map +1 -1
  113. package/dist/convex/integrations/billing/context.js +14 -2
  114. package/dist/convex/integrations/billing/context.js.map +1 -1
  115. package/dist/convex/integrations/billing/credits.d.ts +1 -1
  116. package/dist/convex/integrations/billing/credits.d.ts.map +1 -1
  117. package/dist/convex/integrations/billing/credits.js +49 -28
  118. package/dist/convex/integrations/billing/credits.js.map +1 -1
  119. package/dist/convex/integrations/billing/customers.d.ts +1 -1
  120. package/dist/convex/integrations/billing/customers.d.ts.map +1 -1
  121. package/dist/convex/integrations/billing/customers.js +15 -1
  122. package/dist/convex/integrations/billing/customers.js.map +1 -1
  123. package/dist/convex/integrations/billing/entitlements.d.ts +1 -1
  124. package/dist/convex/integrations/billing/entitlements.d.ts.map +1 -1
  125. package/dist/convex/integrations/billing/entitlements.js +6 -1
  126. package/dist/convex/integrations/billing/entitlements.js.map +1 -1
  127. package/dist/convex/integrations/billing/erasure.d.ts +1 -1
  128. package/dist/convex/integrations/billing/erasure.d.ts.map +1 -1
  129. package/dist/convex/integrations/billing/erasure.js +10 -5
  130. package/dist/convex/integrations/billing/erasure.js.map +1 -1
  131. package/dist/convex/integrations/billing/free-plan.d.ts +6 -1
  132. package/dist/convex/integrations/billing/free-plan.d.ts.map +1 -1
  133. package/dist/convex/integrations/billing/free-plan.js +22 -4
  134. package/dist/convex/integrations/billing/free-plan.js.map +1 -1
  135. package/dist/convex/integrations/billing/functions.d.ts +1 -1
  136. package/dist/convex/integrations/billing/functions.d.ts.map +1 -1
  137. package/dist/convex/integrations/billing/functions.js +3 -2
  138. package/dist/convex/integrations/billing/functions.js.map +1 -1
  139. package/dist/convex/integrations/billing/gifts.d.ts.map +1 -1
  140. package/dist/convex/integrations/billing/gifts.js +3 -0
  141. package/dist/convex/integrations/billing/gifts.js.map +1 -1
  142. package/dist/convex/integrations/billing/history.d.ts +1 -1
  143. package/dist/convex/integrations/billing/history.d.ts.map +1 -1
  144. package/dist/convex/integrations/billing/history.js +6 -1
  145. package/dist/convex/integrations/billing/history.js.map +1 -1
  146. package/dist/convex/integrations/billing/lifecycle.d.ts +1 -1
  147. package/dist/convex/integrations/billing/lifecycle.d.ts.map +1 -1
  148. package/dist/convex/integrations/billing/lifecycle.js +4 -1
  149. package/dist/convex/integrations/billing/lifecycle.js.map +1 -1
  150. package/dist/convex/integrations/billing/providers/capabilities.d.ts +17 -0
  151. package/dist/convex/integrations/billing/providers/capabilities.d.ts.map +1 -0
  152. package/dist/convex/integrations/billing/providers/capabilities.js +77 -0
  153. package/dist/convex/integrations/billing/providers/capabilities.js.map +1 -0
  154. package/dist/convex/integrations/billing/providers/consent.d.ts +52 -0
  155. package/dist/convex/integrations/billing/providers/consent.d.ts.map +1 -0
  156. package/dist/convex/integrations/billing/providers/consent.js +79 -0
  157. package/dist/convex/integrations/billing/providers/consent.js.map +1 -0
  158. package/dist/convex/integrations/billing/providers/creem.d.ts +22 -0
  159. package/dist/convex/integrations/billing/providers/creem.d.ts.map +1 -0
  160. package/dist/convex/integrations/billing/providers/creem.js +208 -0
  161. package/dist/convex/integrations/billing/providers/creem.js.map +1 -0
  162. package/dist/convex/integrations/billing/providers/dodo.d.ts +15 -0
  163. package/dist/convex/integrations/billing/providers/dodo.d.ts.map +1 -0
  164. package/dist/convex/integrations/billing/providers/dodo.js +197 -0
  165. package/dist/convex/integrations/billing/providers/dodo.js.map +1 -0
  166. package/dist/convex/integrations/billing/providers/http.d.ts +41 -0
  167. package/dist/convex/integrations/billing/providers/http.d.ts.map +1 -0
  168. package/dist/convex/integrations/billing/providers/http.js +146 -0
  169. package/dist/convex/integrations/billing/providers/http.js.map +1 -0
  170. package/dist/convex/integrations/billing/providers/index.d.ts +35 -0
  171. package/dist/convex/integrations/billing/providers/index.d.ts.map +1 -0
  172. package/dist/convex/integrations/billing/providers/index.js +62 -0
  173. package/dist/convex/integrations/billing/providers/index.js.map +1 -0
  174. package/dist/convex/integrations/billing/providers/stripe.d.ts +28 -0
  175. package/dist/convex/integrations/billing/providers/stripe.d.ts.map +1 -0
  176. package/dist/convex/integrations/billing/providers/stripe.js +327 -0
  177. package/dist/convex/integrations/billing/providers/stripe.js.map +1 -0
  178. package/dist/convex/integrations/billing/providers/types.d.ts +263 -0
  179. package/dist/convex/integrations/billing/providers/types.d.ts.map +1 -0
  180. package/dist/convex/integrations/billing/providers/types.js +48 -0
  181. package/dist/convex/integrations/billing/providers/types.js.map +1 -0
  182. package/dist/convex/integrations/billing/subscriptions.d.ts +1 -1
  183. package/dist/convex/integrations/billing/subscriptions.d.ts.map +1 -1
  184. package/dist/convex/integrations/billing/subscriptions.js +20 -6
  185. package/dist/convex/integrations/billing/subscriptions.js.map +1 -1
  186. package/dist/convex/integrations/billing/types/setup.d.ts +64 -1
  187. package/dist/convex/integrations/billing/types/setup.d.ts.map +1 -1
  188. package/dist/convex/integrations/billing.d.ts +4 -1
  189. package/dist/convex/integrations/billing.d.ts.map +1 -1
  190. package/dist/convex/integrations/billing.js +12 -2
  191. package/dist/convex/integrations/billing.js.map +1 -1
  192. package/dist/convex/integrations/email.d.ts +1 -1
  193. package/dist/convex/integrations/email.d.ts.map +1 -1
  194. package/dist/convex/integrations/email.js.map +1 -1
  195. package/dist/convex/integrations/launch.d.ts +27 -2
  196. package/dist/convex/integrations/launch.d.ts.map +1 -1
  197. package/dist/convex/integrations/launch.js +15 -3
  198. package/dist/convex/integrations/launch.js.map +1 -1
  199. package/dist/convex/integrations/presence.d.ts +110 -0
  200. package/dist/convex/integrations/presence.d.ts.map +1 -0
  201. package/dist/convex/integrations/presence.js +92 -0
  202. package/dist/convex/integrations/presence.js.map +1 -0
  203. package/dist/convex/integrations/waitlist.d.ts +41 -7
  204. package/dist/convex/integrations/waitlist.d.ts.map +1 -1
  205. package/dist/convex/integrations/waitlist.js +45 -6
  206. package/dist/convex/integrations/waitlist.js.map +1 -1
  207. package/dist/convex/integrations/webhook-guard.d.ts +8 -0
  208. package/dist/convex/integrations/webhook-guard.d.ts.map +1 -1
  209. package/dist/convex/integrations/webhook-guard.js +11 -4
  210. package/dist/convex/integrations/webhook-guard.js.map +1 -1
  211. package/dist/convex/label-groups/admin.d.ts +9 -0
  212. package/dist/convex/label-groups/admin.d.ts.map +1 -1
  213. package/dist/convex/label-groups/admin.js +9 -0
  214. package/dist/convex/label-groups/admin.js.map +1 -1
  215. package/dist/convex/label-groups/audit.d.ts +2 -0
  216. package/dist/convex/label-groups/audit.d.ts.map +1 -1
  217. package/dist/convex/label-groups/audit.js +2 -0
  218. package/dist/convex/label-groups/audit.js.map +1 -1
  219. package/dist/convex/label-groups/auth.d.ts +9 -0
  220. package/dist/convex/label-groups/auth.d.ts.map +1 -1
  221. package/dist/convex/label-groups/auth.js +10 -0
  222. package/dist/convex/label-groups/auth.js.map +1 -1
  223. package/dist/convex/label-groups/email.d.ts +6 -0
  224. package/dist/convex/label-groups/email.d.ts.map +1 -1
  225. package/dist/convex/label-groups/email.js +7 -0
  226. package/dist/convex/label-groups/email.js.map +1 -1
  227. package/dist/convex/label-groups/errors.d.ts +4 -0
  228. package/dist/convex/label-groups/errors.d.ts.map +1 -1
  229. package/dist/convex/label-groups/errors.js +4 -0
  230. package/dist/convex/label-groups/errors.js.map +1 -1
  231. package/dist/convex/label-groups/security.d.ts +19 -0
  232. package/dist/convex/label-groups/security.d.ts.map +1 -1
  233. package/dist/convex/label-groups/security.js +20 -0
  234. package/dist/convex/label-groups/security.js.map +1 -1
  235. package/dist/convex/label-groups/waitlist.d.ts +8 -0
  236. package/dist/convex/label-groups/waitlist.d.ts.map +1 -1
  237. package/dist/convex/label-groups/waitlist.js +9 -0
  238. package/dist/convex/label-groups/waitlist.js.map +1 -1
  239. package/dist/convex/label-translations.d.ts.map +1 -1
  240. package/dist/convex/label-translations.js +24 -0
  241. package/dist/convex/label-translations.js.map +1 -1
  242. package/dist/convex/labels.d.ts +57 -0
  243. package/dist/convex/labels.d.ts.map +1 -1
  244. package/dist/convex/log.js +2 -0
  245. package/dist/convex/log.js.map +1 -1
  246. package/dist/convex/sensitive-actions.d.ts.map +1 -1
  247. package/dist/convex/sensitive-actions.js +11 -0
  248. package/dist/convex/sensitive-actions.js.map +1 -1
  249. package/dist/convex/waitlist-rules.d.ts +63 -9
  250. package/dist/convex/waitlist-rules.d.ts.map +1 -1
  251. package/dist/convex/waitlist-rules.js +38 -7
  252. package/dist/convex/waitlist-rules.js.map +1 -1
  253. package/dist/devtools-client/_nuxt/DHNi4uhO.js +6 -0
  254. package/dist/devtools-client/index.html +1 -1
  255. package/dist/env-registry.js +9 -0
  256. package/dist/module.d.ts +14 -2
  257. package/dist/module.js +2 -2
  258. package/dist/module.json +2 -2
  259. package/dist/runtime/locales/de.json +58 -1
  260. package/dist/runtime/locales/en.json +60 -3
  261. package/dist/runtime/locales/es.json +58 -1
  262. package/dist/runtime/locales/fr.json +58 -1
  263. package/dist/runtime/locales/ru.json +58 -1
  264. package/dist/runtime/server/monitoring/backend-calls.d.ts +3 -3
  265. package/dist/runtime/server/monitoring/backend-calls.js +2 -2
  266. package/dist/runtime/server/monitoring/health.js +2 -2
  267. package/dist/runtime/vue/auth-client.d.ts +3 -2
  268. package/dist/runtime/vue/auth-client.js +2 -1
  269. package/dist/runtime/vue/components/account/SecuritySettings.d.vue.ts +25 -2
  270. package/dist/runtime/vue/components/account/SecuritySettings.vue +52 -2
  271. package/dist/runtime/vue/components/account/SecuritySettings.vue.d.ts +25 -2
  272. package/dist/runtime/vue/components/account/SecurityTwoFactor.css +1 -0
  273. package/dist/runtime/vue/components/account/SecurityTwoFactor.d.vue.ts +4 -0
  274. package/dist/runtime/vue/components/account/SecurityTwoFactor.vue +107 -0
  275. package/dist/runtime/vue/components/account/SecurityTwoFactor.vue.d.ts +4 -0
  276. package/dist/runtime/vue/components/account/security-settings.d.ts +18 -1
  277. package/dist/runtime/vue/components/admin/AdminUsers.d.vue.ts +11 -2
  278. package/dist/runtime/vue/components/admin/AdminUsers.vue.d.ts +11 -2
  279. package/dist/runtime/vue/components/admin/AdminWaitlist.css +1 -1
  280. package/dist/runtime/vue/components/admin/AdminWaitlistActions.vue +41 -1
  281. package/dist/runtime/vue/components/admin/AdminWorkspaces.d.vue.ts +9 -0
  282. package/dist/runtime/vue/components/admin/AdminWorkspaces.vue.d.ts +9 -0
  283. package/dist/runtime/vue/components/admin/admin-waitlist-tab.js +28 -0
  284. package/dist/runtime/vue/components/auth/AuthForm.d.vue.ts +9 -0
  285. package/dist/runtime/vue/components/auth/AuthForm.vue +8 -0
  286. package/dist/runtime/vue/components/auth/AuthForm.vue.d.ts +9 -0
  287. package/dist/runtime/vue/components/auth/AuthFormTwoFactor.css +1 -0
  288. package/dist/runtime/vue/components/auth/AuthFormTwoFactor.d.vue.ts +3 -0
  289. package/dist/runtime/vue/components/auth/AuthFormTwoFactor.vue +70 -0
  290. package/dist/runtime/vue/components/auth/AuthFormTwoFactor.vue.d.ts +3 -0
  291. package/dist/runtime/vue/components/auth/AuthFormWaitlisted.vue +7 -2
  292. package/dist/runtime/vue/components/auth/WaitlistForm.d.vue.ts +8 -0
  293. package/dist/runtime/vue/components/auth/WaitlistForm.vue.d.ts +8 -0
  294. package/dist/runtime/vue/components/auth/WaitlistPlace.css +1 -1
  295. package/dist/runtime/vue/components/auth/WaitlistPlace.vue +37 -0
  296. package/dist/runtime/vue/components/auth/WaitlistShare.vue +2 -2
  297. package/dist/runtime/vue/components/auth/auth-form.d.ts +2 -0
  298. package/dist/runtime/vue/components/workspaces/AuditLog.d.vue.ts +2 -0
  299. package/dist/runtime/vue/components/workspaces/AuditLog.vue.d.ts +2 -0
  300. package/dist/runtime/vue/components/workspaces/WorkspaceSettings.d.vue.ts +2 -2
  301. package/dist/runtime/vue/components/workspaces/WorkspaceSettings.vue.d.ts +2 -2
  302. package/dist/runtime/vue/composables/use-login-flow.d.ts +19 -4
  303. package/dist/runtime/vue/composables/use-login-flow.js +31 -0
  304. package/dist/runtime/vue/composables/use-room-presence.d.ts +63 -0
  305. package/dist/runtime/vue/composables/use-room-presence.js +31 -0
  306. package/dist/runtime/vue/composables/use-two-factor.d.ts +58 -0
  307. package/dist/runtime/vue/composables/use-two-factor.js +49 -0
  308. package/dist/runtime/vue/composables/use-waitlist-admin.d.ts +5 -0
  309. package/dist/runtime/vue/composables/use-waitlist-admin.js +5 -1
  310. package/dist/runtime/vue/composables/use-waitlist.d.ts +4 -0
  311. package/dist/runtime/vue/composables/use-waitlist.js +1 -1
  312. package/dist/runtime/vue/parts.d.ts +8 -1
  313. package/dist/runtime/vue/two-factor-client.d.ts +15 -0
  314. package/dist/runtime/vue/two-factor-client.js +19 -0
  315. package/dist/runtime/vue/utils/auth-session.js +10 -1
  316. package/dist/runtime/vue/utils/login-bindings.js +1 -0
  317. package/dist/runtime/vue/utils/page-guard.d.ts +2 -2
  318. package/dist/runtime/vue/utils/page-guard.js +2 -2
  319. package/dist/shared/{nuxt-backend.CBvrM7pG.mjs → nuxt-backend.CM_p0XQE.mjs} +1 -1
  320. package/dist/shared/{nuxt-backend.Dikfaocl.mjs → nuxt-backend.C_Y_BtBs.mjs} +128 -5
  321. package/dist/shared/{nuxt-backend.DbaXvH__.mjs → nuxt-backend.ChvlbHQq.mjs} +203 -9
  322. package/dist/shared/{nuxt-backend.BqXAZChe.mjs → nuxt-backend.D16peTIt.mjs} +57 -35
  323. package/dist/shared/{nuxt-backend.DH1Ya3uB.mjs → nuxt-backend.D4JXvCP6.mjs} +3 -2
  324. package/dist/types.d.ts +1 -1
  325. package/package.json +19 -10
  326. package/skills/nuxt-backend/SKILL.md +18 -18
  327. package/skills/nuxt-backend/references/api.md +31 -6
  328. package/skills/nuxt-backend/references/install.md +9 -6
  329. package/skills/nuxt-backend/references/renames.json +8 -0
  330. package/skills/nuxt-backend/references/surface.json +62 -2
  331. package/skills/nuxt-backend-auth/SKILL.md +8 -2
  332. package/skills/nuxt-backend-auth/references/api.md +3 -1
  333. package/skills/nuxt-backend-billing/SKILL.md +15 -0
  334. package/skills/nuxt-backend-billing/references/api.md +14 -1
  335. package/skills/nuxt-backend-data/SKILL.md +1 -0
  336. package/skills/nuxt-backend-data/references/api.md +10 -1
  337. package/skills/nuxt-backend-email/references/api.md +1 -1
  338. package/skills/nuxt-backend-ship/SKILL.md +2 -1
  339. package/skills/nuxt-backend-upgrade/references/upgrade.md +6 -0
  340. package/src/convex/access-tickets.ts +10 -2
  341. package/src/convex/account-data.ts +5 -4
  342. package/src/convex/app.ts +2 -1
  343. package/src/convex/client/better-auth-options.ts +12 -3
  344. package/src/convex/client/launch-gate.ts +28 -1
  345. package/src/convex/client/plugins.ts +3 -0
  346. package/src/convex/client/two-factor.ts +66 -0
  347. package/src/convex/components/backend/_generated/api.ts +2 -0
  348. package/src/convex/components/backend/_generated/component.ts +500 -2
  349. package/src/convex/components/backend/account.ts +25 -1
  350. package/src/convex/components/backend/adapter.ts +7 -2
  351. package/src/convex/components/backend/billing.ts +2 -1
  352. package/src/convex/components/backend/commerce.ts +408 -0
  353. package/src/convex/components/backend/schema.ts +110 -1
  354. package/src/convex/components/backend/waitlist.ts +144 -40
  355. package/src/convex/email-templates.ts +16 -0
  356. package/src/convex/emails/waitlist-friend-joined.ts +23 -0
  357. package/src/convex/errors.ts +15 -2
  358. package/src/convex/events.ts +14 -0
  359. package/src/convex/integrations/billing/checkout.ts +78 -11
  360. package/src/convex/integrations/billing/commerce-entitlements.ts +92 -0
  361. package/src/convex/integrations/billing/commerce-events.ts +487 -0
  362. package/src/convex/integrations/billing/commerce-history.ts +110 -0
  363. package/src/convex/integrations/billing/commerce-webhooks.ts +69 -0
  364. package/src/convex/integrations/billing/commerce.ts +366 -0
  365. package/src/convex/integrations/billing/context.ts +19 -2
  366. package/src/convex/integrations/billing/credits.ts +47 -27
  367. package/src/convex/integrations/billing/customers.ts +15 -1
  368. package/src/convex/integrations/billing/entitlements.ts +5 -1
  369. package/src/convex/integrations/billing/erasure.ts +11 -6
  370. package/src/convex/integrations/billing/free-plan.ts +30 -5
  371. package/src/convex/integrations/billing/functions.ts +3 -2
  372. package/src/convex/integrations/billing/gifts.ts +2 -0
  373. package/src/convex/integrations/billing/history.ts +9 -0
  374. package/src/convex/integrations/billing/lifecycle.ts +3 -1
  375. package/src/convex/integrations/billing/providers/capabilities.ts +78 -0
  376. package/src/convex/integrations/billing/providers/consent.ts +94 -0
  377. package/src/convex/integrations/billing/providers/creem.ts +225 -0
  378. package/src/convex/integrations/billing/providers/dodo.ts +214 -0
  379. package/src/convex/integrations/billing/providers/http.ts +168 -0
  380. package/src/convex/integrations/billing/providers/index.ts +65 -0
  381. package/src/convex/integrations/billing/providers/stripe.ts +345 -0
  382. package/src/convex/integrations/billing/providers/types.ts +281 -0
  383. package/src/convex/integrations/billing/subscriptions.ts +20 -6
  384. package/src/convex/integrations/billing/types/setup.ts +63 -1
  385. package/src/convex/integrations/billing.ts +46 -3
  386. package/src/convex/integrations/email.ts +1 -0
  387. package/src/convex/integrations/launch.ts +45 -7
  388. package/src/convex/integrations/presence.ts +160 -0
  389. package/src/convex/integrations/waitlist.ts +84 -12
  390. package/src/convex/integrations/webhook-guard.ts +20 -4
  391. package/src/convex/label-groups/admin.ts +9 -0
  392. package/src/convex/label-groups/audit.ts +2 -0
  393. package/src/convex/label-groups/auth.ts +10 -0
  394. package/src/convex/label-groups/email.ts +7 -0
  395. package/src/convex/label-groups/errors.ts +4 -0
  396. package/src/convex/label-groups/security.ts +20 -0
  397. package/src/convex/label-groups/waitlist.ts +9 -0
  398. package/src/convex/label-translations.ts +24 -0
  399. package/src/convex/log.ts +2 -0
  400. package/src/convex/sensitive-actions.ts +11 -0
  401. package/src/convex/waitlist-rules.ts +84 -8
  402. package/src/runtime/vue/components/account/SecuritySettings.vue +58 -4
  403. package/src/runtime/vue/components/account/SecurityTwoFactor.css +68 -0
  404. package/src/runtime/vue/components/account/SecurityTwoFactor.vue +113 -0
  405. package/src/runtime/vue/components/admin/AdminWaitlist.css +1 -0
  406. package/src/runtime/vue/components/admin/AdminWaitlistActions.vue +44 -2
  407. package/src/runtime/vue/components/auth/AuthForm.vue +8 -0
  408. package/src/runtime/vue/components/auth/AuthFormTwoFactor.css +40 -0
  409. package/src/runtime/vue/components/auth/AuthFormTwoFactor.vue +75 -0
  410. package/src/runtime/vue/components/auth/AuthFormWaitlisted.vue +11 -4
  411. package/src/runtime/vue/components/auth/WaitlistPlace.css +16 -0
  412. package/src/runtime/vue/components/auth/WaitlistPlace.vue +49 -2
  413. package/src/runtime/vue/components/auth/WaitlistShare.vue +4 -3
  414. package/dist/devtools-client/_nuxt/CiCAOwUc.js +0 -5
@@ -1,9 +1,9 @@
1
1
  import { spawnSync } from 'node:child_process';
2
2
  import { existsSync, readFileSync, writeFileSync } from 'node:fs';
3
3
  import { createRequire } from 'node:module';
4
- import { join, dirname } from 'node:path';
5
- import { u as scaffoldBackendFiles, aR as mountPagesInAppComponent, aS as ensureDefaultLayout, aT as writeAgentFiles, U as installedVersion, M as MCP_SDK, V as packageDir } from './nuxt-backend.DbaXvH__.mjs';
6
- import { a as adoptBackendDevScript, r as renderEnvExample } from './nuxt-backend.CBvrM7pG.mjs';
4
+ import { join, dirname, relative } from 'node:path';
5
+ import { aX as PROJECT_SKILLS, aY as CORE_SKILL, k as readTextIfPresent, u as scaffoldBackendFiles, aZ as mountPagesInAppComponent, a_ as ensureDefaultLayout, a$ as ensureIndexPage, b0 as writeAgentFiles, U as installedVersion, M as MCP_SDK, V as packageDir } from './nuxt-backend.ChvlbHQq.mjs';
6
+ import { a as adoptBackendDevScript, r as renderEnvExample } from './nuxt-backend.CM_p0XQE.mjs';
7
7
 
8
8
  const LOCKFILES = [
9
9
  ["pnpm-lock.yaml", "pnpm"],
@@ -48,6 +48,121 @@ function execBinary(manager, binary) {
48
48
  }
49
49
  }
50
50
 
51
+ const PNPM_WORKSPACE = "pnpm-workspace.yaml";
52
+ const PERMISSIONS_SINCE = { major: 12, minor: 11 };
53
+ const ENTRY_COMMENT = "# The nuxt-backend agent skills are in .agents/skills, where `npx nuxt-backend init` copies them";
54
+ function pinnedPnpm(rootDir) {
55
+ try {
56
+ const field = JSON.parse(readFileSync(join(rootDir, "package.json"), "utf8")).packageManager;
57
+ return typeof field === "string" ? /^pnpm@(\d+\.\d+\.\d+)/.exec(field)?.[1] : void 0;
58
+ } catch {
59
+ return void 0;
60
+ }
61
+ }
62
+ function pnpmVersionIn(rootDir) {
63
+ const known = pinnedPnpm(rootDir) ?? /^pnpm\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent ?? "")?.[1];
64
+ if (known) return known;
65
+ const result = spawnSync("pnpm", ["--version"], { cwd: rootDir, encoding: "utf8", shell: process.platform === "win32", timeout: 1e4 });
66
+ return result.status === 0 ? /\d+\.\d+\.\d+/.exec(result.stdout)?.[0] : void 0;
67
+ }
68
+ function pnpmReadsPermissions(version) {
69
+ const [major = 0, minor = 0] = (version ?? "").split(".").map(Number);
70
+ return major > PERMISSIONS_SINCE.major || major === PERMISSIONS_SINCE.major && minor >= PERMISSIONS_SINCE.minor;
71
+ }
72
+ function pnpmWorkspaceFile(rootDir) {
73
+ for (let dir = rootDir; ; dir = dirname(dir)) {
74
+ const path = join(dir, PNPM_WORKSPACE);
75
+ const source = readTextIfPresent(path);
76
+ if (source !== void 0) return { path, source };
77
+ if (dir === dirname(dir)) return { path: join(rootDir, PNPM_WORKSPACE) };
78
+ }
79
+ }
80
+ function keyAt(line, indent) {
81
+ const rest = line.startsWith(indent) ? line.slice(indent.length) : "";
82
+ const colon = rest.search(/:(?:\s|$)/);
83
+ if (colon <= 0 || /^[\s#\-{[!&*?|>]/.test(rest)) return void 0;
84
+ return rest.slice(0, colon).trim().replace(/^(["'])(.*)\1$/, "$2");
85
+ }
86
+ const indentOf = (line) => /^ */.exec(line)[0];
87
+ const isContent = (line) => line.trim() !== "" && !line.trimStart().startsWith("#");
88
+ function blockAfter(lines, index, indent) {
89
+ const block = [];
90
+ for (let at = index + 1; at < lines.length; at++) {
91
+ const line = lines[at];
92
+ if (isContent(line) && indentOf(line).length <= indent.length) break;
93
+ block.push(at);
94
+ }
95
+ return block;
96
+ }
97
+ function isBlockMapping(lines) {
98
+ const content = lines.filter(isContent).filter((line) => !line.startsWith("%"));
99
+ if (/^---\s*(?:#.*)?$/.test(content[0] ?? "")) content.shift();
100
+ if (content.some((line) => /^(?:---|\.\.\.)(?:\s|$)/.test(line))) return false;
101
+ return content.length === 0 || keyAt(content[0], "") !== void 0;
102
+ }
103
+ const inlineValue = (line) => line.slice(line.indexOf(":") + 1).replace(/\s#.*$/, "").trim();
104
+ const entryLines = (indent, step) => [`${indent}${ENTRY_COMMENT}`, `${indent}${CORE_SKILL.name}:`, `${indent}${step}skills: false`];
105
+ function denyPnpmSkills(source) {
106
+ if (source === void 0) return { action: "created", content: ["permissions:", ...entryLines(" ", " "), ""].join("\n") };
107
+ const eol = source.includes("\r\n") ? "\r\n" : "\n";
108
+ const lines = source.split(/\r?\n/);
109
+ if (!isBlockMapping(lines)) return { action: "manual" };
110
+ const top = lines.findIndex((line) => keyAt(line, "") === "permissions");
111
+ if (top === -1) {
112
+ const end = lines.at(-1) === "" ? lines.length - 1 : lines.length;
113
+ lines.splice(end, 0, "permissions:", ...entryLines(" ", " "));
114
+ if (lines.at(-1) !== "") lines.push("");
115
+ return { action: "added", content: lines.join(eol) };
116
+ }
117
+ const action = denyUnderPermissions(lines, top);
118
+ return action === "added" ? { action, content: lines.join(eol) } : { action };
119
+ }
120
+ function blockKeys(lines, at, indent, fallback) {
121
+ const keys = blockAfter(lines, at, indent).filter((index) => isContent(lines[index]));
122
+ if (keys.length === 0) return { keys, indent: fallback };
123
+ const inner = indentOf(lines[keys[0]]);
124
+ return keyAt(lines[keys[0]], inner) === void 0 ? void 0 : { keys, indent: inner };
125
+ }
126
+ function denyUnderPermissions(lines, top) {
127
+ if (inlineValue(lines[top]) !== "") return "manual";
128
+ const packages = blockKeys(lines, top, "", " ");
129
+ if (!packages) return "manual";
130
+ const own = packages.keys.find((at) => keyAt(lines[at], packages.indent) === CORE_SKILL.name);
131
+ if (own === void 0) {
132
+ lines.splice(top + 1, 0, ...entryLines(packages.indent, packages.indent));
133
+ return "added";
134
+ }
135
+ const value = inlineValue(lines[own]);
136
+ if (value !== "") return /\bskills\s*:/.test(value) ? "unchanged" : "manual";
137
+ const settings = blockKeys(lines, own, packages.indent, packages.indent.repeat(2));
138
+ if (!settings) return "manual";
139
+ if (settings.keys.some((at) => keyAt(lines[at], settings.indent) === "skills")) return "unchanged";
140
+ lines.splice(own + 1, 0, `${settings.indent}skills: false`);
141
+ return "added";
142
+ }
143
+ function recordPnpmSkillsDenial(rootDir, { version = pnpmVersionIn } = {}) {
144
+ if (packageManagerOf(rootDir) !== "pnpm") return null;
145
+ if (!existsSync(join(rootDir, PROJECT_SKILLS, CORE_SKILL.name, "SKILL.md"))) return null;
146
+ if (!pnpmReadsPermissions(version(rootDir))) return null;
147
+ const { path, source } = pnpmWorkspaceFile(rootDir);
148
+ const { action, content } = denyPnpmSkills(source);
149
+ if (content !== void 0) writeFileSync(path, content, { flag: source === void 0 ? "wx" : "w" });
150
+ return { action, file: relative(rootDir, path).replace(/\\/g, "/") };
151
+ }
152
+ function pnpmWorkspaceMessage({ action, file }) {
153
+ const why = `its agent skills are in ${PROJECT_SKILLS} already, so pnpm links no second copy and stops listing it as awaiting approval`;
154
+ switch (action) {
155
+ case "created":
156
+ return `Created ${file} with skills: false for nuxt-backend under permissions: ${why}`;
157
+ case "added":
158
+ return `Added skills: false for nuxt-backend under permissions in ${file}: ${why}`;
159
+ case "manual":
160
+ return `${file} is written in a form init does not edit line by line (a flow mapping, or more than one document), so it was left alone. Run \`pnpm approve '!nuxt-backend'\`: the agent skills are in ${PROJECT_SKILLS} already`;
161
+ default:
162
+ return void 0;
163
+ }
164
+ }
165
+
51
166
  const ENV_EXAMPLE = renderEnvExample();
52
167
  function declareConvexDependency(rootDir) {
53
168
  return declarePeer(rootDir, "convex", "dependencies");
@@ -93,8 +208,13 @@ function setUpProject(rootDir, { force = false, agents = true, print }) {
93
208
  created.push(layout);
94
209
  print(`[nuxt-backend] Created ${layout}: <AppShell> around your pages, with the brand, the workspace switcher and the account menu`);
95
210
  }
211
+ const indexPage = ensureIndexPage(rootDir);
212
+ if (indexPage) {
213
+ created.push(indexPage);
214
+ print(`[nuxt-backend] Created ${indexPage}: the home page, with the app's name and a link to sign in, since nothing answered at /`);
215
+ }
96
216
  const agentFiles = agents ? setUpAgentFiles(rootDir, force, print) : null;
97
- return { created, agentsMd: agentFiles?.agentsMd ?? null, mcpJson: agentFiles?.mcpJson ?? null, skills: agentFiles?.skills ?? null, appComponent, ...adoptProjectFiles(rootDir, print), mcpSdkDependency: agentFiles?.mcpSdkDependency ?? null };
217
+ return { created, agentsMd: agentFiles?.agentsMd ?? null, mcpJson: agentFiles?.mcpJson ?? null, skills: agentFiles?.skills ?? null, pnpmWorkspace: agentFiles?.pnpmWorkspace ?? null, appComponent, ...adoptProjectFiles(rootDir, print), mcpSdkDependency: agentFiles?.mcpSdkDependency ?? null };
98
218
  }
99
219
  function writeEnvExample(rootDir, force, print) {
100
220
  const envExamplePath = join(rootDir, ".env.example");
@@ -108,7 +228,10 @@ function setUpAgentFiles(rootDir, force, print) {
108
228
  for (const message of agentFiles.messages) print(`[nuxt-backend] ${message}`);
109
229
  const mcpSdkDependency = declareMcpSdkDependency(rootDir) ?? null;
110
230
  if (mcpSdkDependency) print(`[nuxt-backend] Added ${MCP_SDK}@${mcpSdkDependency} to devDependencies (the nuxt-backend server in .mcp.json runs on it)`);
111
- return { ...agentFiles, mcpSdkDependency };
231
+ const pnpmWorkspace = recordPnpmSkillsDenial(rootDir);
232
+ const pnpmMessage = pnpmWorkspace && pnpmWorkspaceMessage(pnpmWorkspace);
233
+ if (pnpmMessage) print(`[nuxt-backend] ${pnpmMessage}`);
234
+ return { ...agentFiles, mcpSdkDependency, pnpmWorkspace: pnpmWorkspace?.action ?? null };
112
235
  }
113
236
  function adoptProjectFiles(rootDir, print) {
114
237
  const devScript = adoptBackendDevScript(rootDir);
@@ -69,7 +69,9 @@ const AUTH_FINDINGS = {
69
69
  // An account with the admin role, read off the deployment; --fix asks for its address.
70
70
  "admin-bootstrap": { title: "First administrator", fixable: true },
71
71
  // The deployment's paths (auth:authConfig) against nuxt.config's: the auth route and the pages its emails link to.
72
- "page-paths": { title: "Page paths" }
72
+ "page-paths": { title: "Page paths" },
73
+ // `backend.auth: 'convex-auth'`: sign-in only, and what is off with it.
74
+ "auth-provider": { title: "Auth provider" }
73
75
  };
74
76
 
75
77
  const BILLING_FINDINGS = {
@@ -447,7 +449,7 @@ const CAPABILITIES = {
447
449
  purpose: "Plans with monthly and yearly prices, prepaid credits, a server-rendered pricing page, feature gates, gifts and the customer portal, from a catalog in code.",
448
450
  providers: [{ name: "Polar", gives: "products, checkout, subscriptions, meters and the customer portal" }],
449
451
  development: "the billing provider's sandbox, with a test card",
450
- env: ["BILLING_ACCESS_TOKEN", "BILLING_WEBHOOK_SECRET"],
452
+ env: ["BILLING_PROVIDER", "BILLING_ACCESS_TOKEN", "BILLING_WEBHOOK_SECRET"],
451
453
  findings: ["billing"],
452
454
  docs: "/docs/build/billing",
453
455
  devtools: "billing",
@@ -654,6 +656,15 @@ const BACKEND_ENV = {
654
656
  dotenv: true,
655
657
  findings: ["deployment-email-dev-inbox"]
656
658
  },
659
+ BILLING_PROVIDER: {
660
+ side: "deployment",
661
+ whenFlagged: true,
662
+ without: "billing sells through Polar, on the Convex component setupBilling is built on",
663
+ values: "`polar`, `stripe` (Stripe Managed Payments), `dodo` (Dodo Payments) or `creem`: the merchant of record `setupBilling` sells through. `stripe`, `dodo` and `creem` need `setupBilling({ commerce })`, with the catalog and the provider's product ids. Any other name fails the deploy",
664
+ example: "polar",
665
+ dotenv: true,
666
+ findings: []
667
+ },
657
668
  BILLING_ACCESS_TOKEN: {
658
669
  side: "deployment",
659
670
  without: 'billing reads answer empty; on production billing is not launched (the pricing reads "Plans open soon" and every sale is refused as not_launched), elsewhere a checkout is refused as not_configured',
@@ -885,7 +896,7 @@ const TASK_SKILLS = [
885
896
  covers: "sign-in, sessions, passkeys, roles, user-scoped functions, workspaces and invitations, invite codes and the waitlist, the admin console with impersonation, the activity trail, consents, and account export and deletion",
886
897
  docs: ["/docs/build/auth", "/docs/build/growth/launch"],
887
898
  entrypoints: ["nuxt-backend/auth", "nuxt-backend/auth.config", "nuxt-backend/access", "nuxt-backend/audit", "nuxt-backend/account", "nuxt-backend/admin"],
888
- composables: ["useAuth", "useLoginFlow", "useReturnPath", "useEmailChange", "useWorkspace", "usePasskeys", "useSessions", "useSignInAlerts", "useHumanCheck", "useReauthentication", "useAccessPhase", "useInvite", "useMemberTicket", "useAccessAdmin", "useWaitlist", "useWaitlistAdmin", "useAuditLog", "useAccount", "useConsents", "useAdmin"],
899
+ composables: ["useAuth", "useLoginFlow", "useReturnPath", "useEmailChange", "useWorkspace", "usePasskeys", "useTwoFactor", "useSessions", "useSignInAlerts", "useHumanCheck", "useReauthentication", "useAccessPhase", "useInvite", "useMemberTicket", "useAccessAdmin", "useWaitlist", "useWaitlistAdmin", "useAuditLog", "useAccount", "useConsents", "useAdmin"],
889
900
  components: ["AuthForm", "WaitlistForm", "ConsentPrompt", "AccessDenied", "AcceptInvitation", "WorkspaceSettings", "ProfileSettings", "SecuritySettings", "ReauthenticateDialog", "AuditLog", "AccountData", "AdminUsers", "AdminWorkspaces"],
890
901
  server: ["backendAuth"],
891
902
  commands: ["access admit"],
@@ -933,10 +944,10 @@ const TASK_SKILLS = [
933
944
  },
934
945
  {
935
946
  name: "nuxt-backend-data",
936
- covers: "the function tiers, queries and mutations, errors, search, workflows, uploads, share links, retention, tokens and the Convex components for counts, queues, cached actions, crons and migrations",
947
+ covers: "the function tiers, queries and mutations, errors, search, workflows, uploads, share links, presence, retention, tokens and the Convex components for counts, queues, cached actions, crons and migrations",
937
948
  docs: ["/docs/build/data"],
938
- entrypoints: ["nuxt-backend/functions", "nuxt-backend/search", "nuxt-backend/workflows", "nuxt-backend/storage"],
939
- composables: ["getBackendError", "useBackendClient", "useConnectionState", "useSearch", "useWorkflowStatus", "useShareLink", "useUploadField", "preparePhoto", "isPhotoFile", "PhotoPrepError"],
949
+ entrypoints: ["nuxt-backend/functions", "nuxt-backend/search", "nuxt-backend/workflows", "nuxt-backend/storage", "nuxt-backend/presence"],
950
+ composables: ["getBackendError", "useBackendClient", "useConnectionState", "useSearch", "useWorkflowStatus", "useRoomPresence", "useShareLink", "useUploadField", "preparePhoto", "isPhotoFile", "PhotoPrepError"],
940
951
  components: ["ConnectionStatus", "UploadField"]
941
952
  },
942
953
  {
@@ -2253,7 +2264,7 @@ function parsePathsFile(text) {
2253
2264
  var __freeze = Object.freeze;
2254
2265
  var __defProp = Object.defineProperty;
2255
2266
  var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw || cooked.slice()) }));
2256
- var _a;
2267
+ var _a, _b;
2257
2268
  const AUTH_CONFIG_TEMPLATE = dedent`
2258
2269
  import { defineBackendAuthConfig } from 'nuxt-backend/auth.config'
2259
2270
  import { paths } from './paths.generated'
@@ -2832,6 +2843,63 @@ const BACKEND_FILE_TEMPLATES = {
2832
2843
  [LABELS_FILE]: renderLabelsFile({})
2833
2844
  };
2834
2845
  const DEFAULT_LAYOUT_TEMPLATE = dedent(_a || (_a = __template(['\n <script setup lang="ts">\n // The frame of the app: the header with your brand, the workspace switcher,\n // the notification bell and the account menu, then the app-wide notices and\n // your page. Put your links in the `nav` slot, and your buttons before the\n // account menu in `actions`. `<AppShell :switcher="false">` hides the\n // switcher for an app whose people never share a workspace.\n const { brand } = useBackendConfig()\n <\/script>\n\n <template>\n <AppShell>\n <template #brand>\n <NuxtLink to="/">\n {{ brand.name || \'Your app\' }}\n </NuxtLink>\n </template>\n <slot />\n </AppShell>\n </template>\n '], ['\n <script setup lang="ts">\n // The frame of the app: the header with your brand, the workspace switcher,\n // the notification bell and the account menu, then the app-wide notices and\n // your page. Put your links in the \\`nav\\` slot, and your buttons before the\n // account menu in \\`actions\\`. \\`<AppShell :switcher="false">\\` hides the\n // switcher for an app whose people never share a workspace.\n const { brand } = useBackendConfig()\n <\/script>\n\n <template>\n <AppShell>\n <template #brand>\n <NuxtLink to="/">\n {{ brand.name || \'Your app\' }}\n </NuxtLink>\n </template>\n <slot />\n </AppShell>\n </template>\n ']))) + "\n";
2846
+ const DEFAULT_INDEX_PAGE_TEMPLATE = dedent(_b || (_b = __template([`
2847
+ <script setup lang="ts">
2848
+ // The app's home page, which \`npx nuxt-backend init\` wrote because nothing
2849
+ // answered at /: make it yours. It names the app, and links to the sign-in
2850
+ // page, or to the account once signed in.
2851
+ const { brand } = useBackendConfig()
2852
+ const { isSignedIn } = useAuth()
2853
+ const login = useBackendPagePath('login')
2854
+ const profile = useBackendPagePath('profile')
2855
+ <\/script>
2856
+
2857
+ <template>
2858
+ <div>
2859
+ <h1>{{ brand.name || 'Your app' }}</h1>
2860
+ <NuxtLink
2861
+ v-if="isSignedIn && profile"
2862
+ :to="profile"
2863
+ >
2864
+ Your account
2865
+ </NuxtLink>
2866
+ <NuxtLink
2867
+ v-else-if="!isSignedIn && login"
2868
+ :to="login"
2869
+ >
2870
+ Sign in
2871
+ </NuxtLink>
2872
+ </div>
2873
+ </template>
2874
+ `], [`
2875
+ <script setup lang="ts">
2876
+ // The app's home page, which \\\`npx nuxt-backend init\\\` wrote because nothing
2877
+ // answered at /: make it yours. It names the app, and links to the sign-in
2878
+ // page, or to the account once signed in.
2879
+ const { brand } = useBackendConfig()
2880
+ const { isSignedIn } = useAuth()
2881
+ const login = useBackendPagePath('login')
2882
+ const profile = useBackendPagePath('profile')
2883
+ <\/script>
2884
+
2885
+ <template>
2886
+ <div>
2887
+ <h1>{{ brand.name || 'Your app' }}</h1>
2888
+ <NuxtLink
2889
+ v-if="isSignedIn && profile"
2890
+ :to="profile"
2891
+ >
2892
+ Your account
2893
+ </NuxtLink>
2894
+ <NuxtLink
2895
+ v-else-if="!isSignedIn && login"
2896
+ :to="login"
2897
+ >
2898
+ Sign in
2899
+ </NuxtLink>
2900
+ </div>
2901
+ </template>
2902
+ `]))) + "\n";
2835
2903
 
2836
2904
  const DEFAULT_FUNCTIONS_DIR = "backend";
2837
2905
  const STANDARD_FUNCTIONS_DIR = "convex";
@@ -2905,8 +2973,71 @@ function normalizeFunctionsDir(functionsDir) {
2905
2973
  const normalized = functionsDir.replace(/^\.?\//, "").replace(/\/+$/, "");
2906
2974
  return normalized || void 0;
2907
2975
  }
2976
+ const NUXT_CONFIG_FILES = ["nuxt.config.ts", "nuxt.config.js", "nuxt.config.mjs", "nuxt.config.mts"];
2977
+ const withoutComments = (code) => code.replace(/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\/[^\n]*|\/\*[\s\S]*?\*\//g, (match) => match.startsWith("/") ? " " : match);
2978
+ function closingQuote(code, open) {
2979
+ let at = open + 1;
2980
+ while (at < code.length && code[at] !== code[open]) at += code[at] === "\\" ? 2 : 1;
2981
+ return at;
2982
+ }
2983
+ function objectProperties(code, open) {
2984
+ const properties = /* @__PURE__ */ new Map();
2985
+ const add = (entry) => {
2986
+ if (entry.trim().startsWith("...")) properties.set("...", entry.trim());
2987
+ const match = /^(?:(["'])([^"']+)\1|([\w$]+))\s*:([\s\S]*)$/.exec(entry.trim());
2988
+ if (match) properties.set(match[2] ?? match[3], match[4].trim());
2989
+ };
2990
+ let depth = 0;
2991
+ let start = open + 1;
2992
+ for (let at = open; at < code.length; at++) {
2993
+ const char = code[at];
2994
+ if ("\"'`".includes(char)) {
2995
+ at = closingQuote(code, at);
2996
+ } else if ("{[(".includes(char)) {
2997
+ depth++;
2998
+ } else if ("}])".includes(char) && --depth === 0) {
2999
+ add(code.slice(start, at));
3000
+ break;
3001
+ } else if (char === "," && depth === 1) {
3002
+ add(code.slice(start, at));
3003
+ start = at + 1;
3004
+ }
3005
+ }
3006
+ return properties;
3007
+ }
3008
+ const stringValue = (value) => /^(["'`])([^"'`$\\]+)\1$/.exec(value ?? "")?.[2];
3009
+ function readSourceConfig(dir) {
3010
+ const source = NUXT_CONFIG_FILES.map((name) => readTextIfPresent(join(dir, name))).find((text) => text !== void 0) ?? "";
3011
+ const code = withoutComments(source);
3012
+ const open = /\bdefineNuxtConfig\s*\(\s*\{|\bexport\s+default\s*\{/.exec(code);
3013
+ const config = open ? objectProperties(code, open.index + open[0].length - 1) : /* @__PURE__ */ new Map();
3014
+ const folders = config.get("dir");
3015
+ const unread = code.trim() !== "" && (!open || config.has("..."));
3016
+ return {
3017
+ srcDir: stringValue(config.get("srcDir")),
3018
+ pages: folders?.startsWith("{") ? stringValue(objectProperties(folders, 0).get("pages")) : void 0,
3019
+ extendsLayer: unread || config.has("extends")
3020
+ };
3021
+ }
3022
+ function sourceDir(dir, config = readSourceConfig(dir)) {
3023
+ if (config.srcDir) return resolve(dir, config.srcDir);
3024
+ const app = join(dir, "app");
3025
+ let files;
3026
+ try {
3027
+ files = readdirSync(app);
3028
+ } catch {
3029
+ return dir;
3030
+ }
3031
+ if (files.some((file) => file !== "spa-loading-template.html" && !file.startsWith("router.options"))) return app;
3032
+ const legacy = ["app.vue", "App.vue", "assets", "layouts", "middleware", config.pages ?? "pages", "plugins"];
3033
+ return legacy.some((name) => existsSync(resolve(dir, name))) ? dir : app;
3034
+ }
3035
+ function pagesDir(dir, config = readSourceConfig(dir)) {
3036
+ return resolve(sourceDir(dir, config), config.pages ?? "pages");
3037
+ }
2908
3038
  function resolveAppComponent(rootDir) {
2909
- return ["app/app.vue", "app.vue"].map((name) => ({ name, path: join(rootDir, name) })).find(({ path }) => existsSync(path));
3039
+ const folder = sourceDir(rootDir);
3040
+ return ["app.vue", "App.vue"].map((file) => join(folder, file)).filter(existsSync).map((path) => ({ name: relative(rootDir, path).replace(/\\/g, "/"), path }))[0];
2910
3041
  }
2911
3042
  function appComponentIsStarter(rootDir) {
2912
3043
  const component = resolveAppComponent(rootDir);
@@ -2934,6 +3065,45 @@ function ensureDefaultLayout(rootDir) {
2934
3065
  writeFileSync(join(folder, "default.vue"), DEFAULT_LAYOUT_TEMPLATE);
2935
3066
  return join(dirname(component.name), "layouts/default.vue").replace(/\\/g, "/").replace(/^\.\//, "");
2936
3067
  }
3068
+ const ROOT_PAGE_FILE = /^(?:index|\[\[[^\]]+\]\]|\[\.\.\.[^\]]+\])(?:\.(?:client|server))?\.(?:vue|[cm]?[jt]sx?)$/;
3069
+ const ROOT_PAGE_FOLDER = /^(?:index|\(.+\)|\[\[[^\]]+\]\]|\[\.\.\.[^\]]+\])$/;
3070
+ const PAGE_FILE = /\.(?:vue|[cm]?[jt]sx?)$/;
3071
+ const withoutStrings = (code) => code.replace(/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/g, (match) => `${match[0]}${" ".repeat(match.length - 2)}${match[0]}`);
3072
+ function declaresRootPath(path) {
3073
+ const source = readTextIfPresent(path) ?? "";
3074
+ const script = path.endsWith(".vue") ? [...source.matchAll(/<script\b[^>]*>([\s\S]*?)<\/script\b[^>]*>/gi)].map((match) => match[1]).join("\n") : source;
3075
+ const code = withoutComments(script);
3076
+ const call = /\bdefinePageMeta\s*\(\s*\{/.exec(withoutStrings(code));
3077
+ return call !== null && stringValue(objectProperties(code, call.index + call[0].length - 1).get("path")) === "/";
3078
+ }
3079
+ function pagesServeRoot(dir, atRoot = true) {
3080
+ let entries;
3081
+ try {
3082
+ entries = readdirSync(dir, { withFileTypes: true });
3083
+ } catch {
3084
+ return false;
3085
+ }
3086
+ return entries.some((entry) => {
3087
+ const path = join(dir, entry.name);
3088
+ if (entry.isDirectory()) return pagesServeRoot(path, atRoot && ROOT_PAGE_FOLDER.test(entry.name));
3089
+ return atRoot && ROOT_PAGE_FILE.test(entry.name) || PAGE_FILE.test(entry.name) && declaresRootPath(path);
3090
+ });
3091
+ }
3092
+ function localLayerPages(rootDir) {
3093
+ const layers = join(rootDir, "layers");
3094
+ if (!existsSync(layers)) return [];
3095
+ return readdirSync(layers, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => pagesDir(join(layers, entry.name)));
3096
+ }
3097
+ function ensureIndexPage(rootDir) {
3098
+ const component = resolveAppComponent(rootDir);
3099
+ if (!component || !readFileSync(component.path, "utf-8").includes("<NuxtPage")) return void 0;
3100
+ const config = readSourceConfig(rootDir);
3101
+ if (config.extendsLayer) return void 0;
3102
+ const pages = pagesDir(rootDir, config);
3103
+ if ([pages, ...localLayerPages(rootDir)].some((folder) => pagesServeRoot(folder))) return void 0;
3104
+ const page = join(pages, "index.vue");
3105
+ return writeUnlessPresent(page, DEFAULT_INDEX_PAGE_TEMPLATE) ? relative(rootDir, page).replace(/\\/g, "/") : void 0;
3106
+ }
2937
3107
 
2938
3108
  const STRINGS_AND_COMMENTS = /(['"`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*[\s\S]*?\*\/|\/\/[^\n]*/g;
2939
3109
  function sourceFiles(dir) {
@@ -3684,6 +3854,28 @@ function formatPreflightSummary(findings) {
3684
3854
  return `${problems.length} finding${problems.length === 1 ? "" : "s"}: ${problems.map((f) => f.id).join(", ")}`;
3685
3855
  }
3686
3856
 
3857
+ const CONVEX_AUTH_DOCS_URL = "https://nuxt-backend.dev/docs/build/auth/convex-auth";
3858
+ function authProviderOf(option) {
3859
+ return option === "convex-auth" ? "convex-auth" : "better-auth";
3860
+ }
3861
+ function configuredAuthOption(options) {
3862
+ const modules = Array.isArray(options.modules) ? options.modules : [];
3863
+ const inline = modules.flatMap((entry) => Array.isArray(entry) && entry[0] === "nuxt-backend" && entry[1] && typeof entry[1] === "object" && "auth" in entry[1] ? [entry[1].auth] : []);
3864
+ return inline[0] ?? options.backend?.auth;
3865
+ }
3866
+ function authOptionProblems(option) {
3867
+ if (option === void 0 || option === "better-auth" || option === "convex-auth") return [];
3868
+ return [`\`backend.auth\` is \`${JSON.stringify(option) ?? typeof option}\`. It takes \`'better-auth'\` (the default) or \`'convex-auth'\`.`];
3869
+ }
3870
+ function baseAuthOverrides(provider, { betterAuth, loginPath }) {
3871
+ if (provider === "convex-auth") return { betterAuth: false, convexAuth: { loginPath }, polar: false };
3872
+ return { betterAuth, convexAuth: false, polar: true };
3873
+ }
3874
+ function pagesOff() {
3875
+ return Object.fromEntries(BACKEND_PAGE_DEFS.map((def) => [def.key, false]));
3876
+ }
3877
+ const CONVEX_AUTH_NOTICE = "Convex Auth mode (`backend.auth: 'convex-auth'`): sign-in runs on @convex-dev/auth through the base module (magic links, OAuth, passkeys, passwords). The package's pages, its page guard, workspaces, billing, AI credits and the account features are off, as they run on Better Auth's accounts. Guard a page with `definePageMeta({ middleware: 'convex-auth' })`.";
3878
+
3687
3879
  function pathsFileLocation(rootDir) {
3688
3880
  const functionsDir = resolveFunctionsDir(rootDir);
3689
3881
  return { name: `${functionsDir}/${PATHS_FILE}`, path: join(rootDir, functionsDir, PATHS_FILE) };
@@ -3928,6 +4120,7 @@ const UI_ENTRIES = [
3928
4120
  part({ name: "AuthFormWaitlisted", parent: "AuthForm", folder: "auth", capability: "auth" }),
3929
4121
  part({ name: "AuthFormInviteCode", parent: "AuthForm", folder: "auth", capability: "auth" }),
3930
4122
  part({ name: "AuthFormAge", parent: "AuthForm", folder: "auth", capability: "auth" }),
4123
+ part({ name: "AuthFormTwoFactor", parent: "AuthForm", folder: "auth", capability: "auth" }),
3931
4124
  part({ name: "AuthFormUndeliverable", parent: "AuthForm", folder: "auth", capability: "auth" }),
3932
4125
  part({ name: "AuthFormPasskeyOffer", parent: "AuthForm", folder: "auth", capability: "auth" }),
3933
4126
  part({ name: "AuthFormAgreement", parent: "AuthForm", folder: "auth", capability: "auth" }),
@@ -3948,6 +4141,7 @@ const UI_ENTRIES = [
3948
4141
  part({ name: "ProfilePreferencesSection", parent: "ProfileSettings", folder: "account", capability: "auth" }),
3949
4142
  component({ name: "SecuritySettings", folder: "account", capability: "auth" }),
3950
4143
  part({ name: "SecurityPasskeys", parent: "SecuritySettings", folder: "account", capability: "auth" }),
4144
+ part({ name: "SecurityTwoFactor", parent: "SecuritySettings", folder: "account", capability: "auth" }),
3951
4145
  part({ name: "SecuritySessions", parent: "SecuritySettings", folder: "account", capability: "auth" }),
3952
4146
  part({ name: "SecurityAlerts", parent: "SecuritySettings", folder: "account", capability: "auth" }),
3953
4147
  component({ name: "ConsentPrompt", folder: "account", capability: "auth" }),
@@ -4122,4 +4316,4 @@ const UI_SHARED_STYLES = [
4122
4316
  { file: "admin/admin.css", capability: "auth" }
4123
4317
  ];
4124
4318
 
4125
- export { runEnvPush as $, syncBrandFile as A, BACKEND_ENV_NAMES as B, CAPABILITY_STATES as C, DERIVED_DEPLOYMENT_ENV as D, brandFileLocation as E, appLabelsOf as F, syncLabelsFile as G, labelsFileLocation as H, isDevDeploymentId as I, computeDeployment as J, appMonitoringDsn as K, monitoringSdkInstalled as L, MCP_SDK as M, detectCapabilities as N, DEPLOYMENT_KIND_LABEL as O, CAPABILITY_NAMES as P, REGISTERED_UI as Q, RESYNC_ENTITLEMENTS_FUNCTION as R, uiPath as S, BACKEND_PAGE_DEFS as T, installedVersion as U, packageDir as V, uiEntry as W, agentsMdVersion as X, packageVersion as Y, doctorReport as Z, formatPreflightSummary as _, deploymentEnvNames as a, finding as a$, devPushRefusal as a0, pagePathShape as a1, collectPreflightFindings as a2, OPTIONAL_DEPLOYMENT_ENV as a3, REQUIRED_DEPLOYMENT_ENV as a4, deriveDeploymentUrls as a5, provisionedEnvNames as a6, appComponentIsStarter as a7, resolveSiteUrl as a8, needsSetup as a9, maskableIcons as aA, MANIFEST_ROUTE as aB, APPLE_TOUCH_ICON as aC, themeColorMeta as aD, UI_SHARED_STYLES as aE, UI_ENTRIES as aF, UI_INTERNALS as aG, moduleDir as aH, VISITOR_IP_ROUTE as aI, resolvePagePath as aJ, dependencyRange as aK, runsFromSource as aL, resolveConvexCli as aM, RECENT_SIGN_IN_SECONDS as aN, BACKEND_ENV as aO, capabilityOfEnv as aP, REMOVED_DEPLOYMENT_ENV as aQ, mountPagesInAppComponent as aR, ensureDefaultLayout as aS, writeAgentFiles as aT, isDevDeployment as aU, RPC_NAMESPACE as aV, DEVTOOLS_UI_ROUTE as aW, DEVTOOLS_UI_LOCAL_PORT as aX, envNames as aY, DEV_ONLY_DEPLOYMENT_ENV as aZ, DEV_SITE_URL as a_, AGENT_HINT as aa, HEALTH_ROUTE as ab, LOCAL_LOG_ROUTE as ac, monitoringSdkVersion as ad, MONITORING_SDK as ae, TUNNEL_SDK_VERSION as af, SOURCE_MAP_ENV as ag, sdkServesTunnel as ah, installableProblems as ai, pagesOptionProblems as aj, resolvedBackendPages as ak, DEFAULT_AUTH_ROUTE as al, publishedBackendPages as am, isPageOff as an, privatePagePaths as ao, collectExistingPagePaths as ap, adoptChildPages as aq, pageRouteRules as ar, cachingRulesOver as as, PUSH_WORKER_URL as at, ownsManifest as au, MANIFEST_MODULES as av, namedIconWarnings as aw, installableGaps as ax, installIcons as ay, webAppManifest as az, deploymentBackendEnvironment as b, parseBackendEnvironment as b0, proofKeys as b1, TEST_CHALLENGE_SITE_KEYS as b2, deploymentEnvId as b3, protectionTakes as b4, TEST_CHALLENGE_SECRET_KEYS as b5, PROTECTED_AUTH_ROUTES as b6, PROOF_HEADER as b7, signProof as b8, proofAudience as b9, installableFinding as bA, gatewayKeyIsTheFix as bB, DEFAULT_MODERATION_MODEL as bC, mountsComponent as bD, GATEWAY_KEY_FIX as bE, CAPABILITIES as bF, isEnvProvisioned as bG, markEnvProvisioned as bH, readSource as bI, parse as bJ, keyOf$1 as bK, writeSource as bL, REMOVED_ENV as bM, applyEdits as bN, walk as bO, BACKEND_FILE_TEMPLATES as bP, deploymentSiteOrigin as ba, isLocalDeploymentId as bb, capabilityOfGroup as bc, agentFilesFinding as bd, chosenRoutes as be, chosenGateways as bf, pinnedRegion as bg, namedModels as bh, usesProvenance as bi, moderationProviders as bj, monitoringDsnFinding as bk, monitoringFindings as bl, usageAlertsFinding as bm, readUsageLimits as bn, applyProductionPosture as bo, billingWebhookSecretHint as bp, BACKEND_PATH_KEYS as bq, pathOption as br, aiFeatures as bs, pathsFileFinding as bt, brandFileFinding as bu, labelsFileFinding as bv, checksImages as bw, namesModerationModel as bx, GATEWAY_ORDER_UNREAD as by, routeKeyFor as bz, billingEnvironment as c, deploymentFunctionSpec as d, deployKeyType as e, runConvex as f, deploymentFlags as g, ConvexCliError as h, isHttpUrl as i, resolveFunctionsDir as j, readTextIfPresent as k, executeEnvPush as l, generateAuthSecret as m, nonProductionDeployKey as n, setDeploymentEnv as o, isLoopbackUrl as p, configuredDeployment as q, readEnvFiles as r, siteFromCloudUrl as s, spawnConvex as t, scaffoldBackendFiles as u, pathsSourceOf as v, syncPathsFile as w, backendPathsOf as x, pathsFileLocation as y, appBrandOf as z };
4319
+ export { runEnvPush as $, syncBrandFile as A, BACKEND_ENV_NAMES as B, CAPABILITY_STATES as C, DERIVED_DEPLOYMENT_ENV as D, brandFileLocation as E, appLabelsOf as F, syncLabelsFile as G, labelsFileLocation as H, isDevDeploymentId as I, computeDeployment as J, appMonitoringDsn as K, monitoringSdkInstalled as L, MCP_SDK as M, detectCapabilities as N, DEPLOYMENT_KIND_LABEL as O, CAPABILITY_NAMES as P, REGISTERED_UI as Q, RESYNC_ENTITLEMENTS_FUNCTION as R, uiPath as S, BACKEND_PAGE_DEFS as T, installedVersion as U, packageDir as V, uiEntry as W, agentsMdVersion as X, packageVersion as Y, doctorReport as Z, formatPreflightSummary as _, deploymentEnvNames as a, ensureIndexPage as a$, devPushRefusal as a0, pagePathShape as a1, collectPreflightFindings as a2, OPTIONAL_DEPLOYMENT_ENV as a3, REQUIRED_DEPLOYMENT_ENV as a4, deriveDeploymentUrls as a5, provisionedEnvNames as a6, appComponentIsStarter as a7, resolveSiteUrl as a8, needsSetup as a9, webAppManifest as aA, maskableIcons as aB, MANIFEST_ROUTE as aC, APPLE_TOUCH_ICON as aD, themeColorMeta as aE, UI_SHARED_STYLES as aF, UI_ENTRIES as aG, UI_INTERNALS as aH, moduleDir as aI, authProviderOf as aJ, configuredAuthOption as aK, pagesOff as aL, VISITOR_IP_ROUTE as aM, CONVEX_AUTH_NOTICE as aN, resolvePagePath as aO, baseAuthOverrides as aP, dependencyRange as aQ, runsFromSource as aR, resolveConvexCli as aS, RECENT_SIGN_IN_SECONDS as aT, BACKEND_ENV as aU, capabilityOfEnv as aV, REMOVED_DEPLOYMENT_ENV as aW, PROJECT_SKILLS as aX, CORE_SKILL as aY, mountPagesInAppComponent as aZ, ensureDefaultLayout as a_, AGENT_HINT as aa, HEALTH_ROUTE as ab, LOCAL_LOG_ROUTE as ac, monitoringSdkVersion as ad, MONITORING_SDK as ae, TUNNEL_SDK_VERSION as af, SOURCE_MAP_ENV as ag, sdkServesTunnel as ah, installableProblems as ai, authOptionProblems as aj, pagesOptionProblems as ak, resolvedBackendPages as al, DEFAULT_AUTH_ROUTE as am, publishedBackendPages as an, isPageOff as ao, privatePagePaths as ap, collectExistingPagePaths as aq, adoptChildPages as ar, pageRouteRules as as, cachingRulesOver as at, PUSH_WORKER_URL as au, ownsManifest as av, MANIFEST_MODULES as aw, namedIconWarnings as ax, installableGaps as ay, installIcons as az, deploymentBackendEnvironment as b, writeAgentFiles as b0, isDevDeployment as b1, RPC_NAMESPACE as b2, DEVTOOLS_UI_ROUTE as b3, DEVTOOLS_UI_LOCAL_PORT as b4, envNames as b5, DEV_ONLY_DEPLOYMENT_ENV as b6, DEV_SITE_URL as b7, finding as b8, parseBackendEnvironment as b9, pathOption as bA, aiFeatures as bB, pathsFileFinding as bC, brandFileFinding as bD, labelsFileFinding as bE, checksImages as bF, namesModerationModel as bG, GATEWAY_ORDER_UNREAD as bH, routeKeyFor as bI, installableFinding as bJ, gatewayKeyIsTheFix as bK, DEFAULT_MODERATION_MODEL as bL, mountsComponent as bM, GATEWAY_KEY_FIX as bN, CONVEX_AUTH_DOCS_URL as bO, CAPABILITIES as bP, isEnvProvisioned as bQ, markEnvProvisioned as bR, readSource as bS, parse as bT, keyOf$1 as bU, writeSource as bV, REMOVED_ENV as bW, applyEdits as bX, walk as bY, BACKEND_FILE_TEMPLATES as bZ, proofKeys as ba, TEST_CHALLENGE_SITE_KEYS as bb, deploymentEnvId as bc, protectionTakes as bd, TEST_CHALLENGE_SECRET_KEYS as be, PROTECTED_AUTH_ROUTES as bf, PROOF_HEADER as bg, signProof as bh, proofAudience as bi, deploymentSiteOrigin as bj, isLocalDeploymentId as bk, capabilityOfGroup as bl, agentFilesFinding as bm, chosenRoutes as bn, chosenGateways as bo, pinnedRegion as bp, namedModels as bq, usesProvenance as br, moderationProviders as bs, monitoringDsnFinding as bt, monitoringFindings as bu, usageAlertsFinding as bv, readUsageLimits as bw, applyProductionPosture as bx, billingWebhookSecretHint as by, BACKEND_PATH_KEYS as bz, billingEnvironment as c, deploymentFunctionSpec as d, deployKeyType as e, runConvex as f, deploymentFlags as g, ConvexCliError as h, isHttpUrl as i, resolveFunctionsDir as j, readTextIfPresent as k, executeEnvPush as l, generateAuthSecret as m, nonProductionDeployKey as n, setDeploymentEnv as o, isLoopbackUrl as p, configuredDeployment as q, readEnvFiles as r, siteFromCloudUrl as s, spawnConvex as t, scaffoldBackendFiles as u, pathsSourceOf as v, syncPathsFile as w, backendPathsOf as x, pathsFileLocation as y, appBrandOf as z };