qarpeo 0.1.7 → 0.1.9

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 (317) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +102 -102
  3. package/dist/module.mjs +30 -14
  4. package/dist/runtime/app/components/BlobImage.vue +100 -100
  5. package/dist/runtime/app/components/CMSBlocks.vue +93 -93
  6. package/dist/runtime/app/components/CMSContent.vue +23 -23
  7. package/dist/runtime/app/components/CMSImage.vue +49 -49
  8. package/dist/runtime/app/components/CMSLocaleSwitcher.vue +110 -110
  9. package/dist/runtime/app/components/CMSPreviewBanner.vue +79 -79
  10. package/dist/runtime/app/components/CMSVersionBanner.vue +49 -49
  11. package/dist/runtime/app/components/CMSVersionSwitcher.vue +140 -140
  12. package/dist/runtime/app/components/ContentRenderer.vue +80 -80
  13. package/dist/runtime/app/components/FileUpload.vue +196 -196
  14. package/dist/runtime/app/components/ImpersonationBanner.vue +57 -57
  15. package/dist/runtime/app/components/QarpeoWelcome.vue +84 -0
  16. package/dist/runtime/app/components/SignedIn.vue +13 -13
  17. package/dist/runtime/app/components/SignedOut.vue +13 -13
  18. package/dist/runtime/app/components/shiki.css +34 -34
  19. package/dist/runtime/app/pages/cms.vue +2249 -2249
  20. package/dist/runtime/app/pages/devtools/overview.vue +390 -390
  21. package/dist/runtime/app/pages/devtools/settings.vue +560 -560
  22. package/dist/runtime/app/pages/devtools.vue +165 -165
  23. package/dist/runtime/app/public/sw-notifications.mjs +52 -52
  24. package/dist/runtime/server/utils/cms.mjs +92 -13
  25. package/dist/runtime/types/auth-globals.d.ts +14 -14
  26. package/dist/runtime/types/imports.d.ts +58 -58
  27. package/package.json +3 -3
  28. package/dist/dev/env.d.ts +0 -12
  29. package/dist/dev/wrangler.d.ts +0 -18
  30. package/dist/module.d.ts +0 -17
  31. package/dist/runtime/ai.d.ts +0 -25
  32. package/dist/runtime/analytics.d.ts +0 -24
  33. package/dist/runtime/app/composables/analytics.d.ts +0 -125
  34. package/dist/runtime/app/composables/api-tokens.d.ts +0 -49
  35. package/dist/runtime/app/composables/auth.d.ts +0 -58
  36. package/dist/runtime/app/composables/chat.d.ts +0 -69
  37. package/dist/runtime/app/composables/cms-preview.d.ts +0 -33
  38. package/dist/runtime/app/composables/cms.d.ts +0 -307
  39. package/dist/runtime/app/composables/docs-version.d.ts +0 -35
  40. package/dist/runtime/app/composables/impersonation.d.ts +0 -14
  41. package/dist/runtime/app/composables/notifications.d.ts +0 -35
  42. package/dist/runtime/app/composables/organization.d.ts +0 -127
  43. package/dist/runtime/app/composables/passkey.d.ts +0 -6
  44. package/dist/runtime/app/composables/passwordless.d.ts +0 -7
  45. package/dist/runtime/app/composables/payments.d.ts +0 -43
  46. package/dist/runtime/app/composables/realtime.d.ts +0 -96
  47. package/dist/runtime/app/composables/site.d.ts +0 -35
  48. package/dist/runtime/app/composables/storage.d.ts +0 -60
  49. package/dist/runtime/app/composables/tenant.d.ts +0 -82
  50. package/dist/runtime/app/composables/turnstile.d.ts +0 -3
  51. package/dist/runtime/app/composables/two-factor.d.ts +0 -12
  52. package/dist/runtime/app/middleware/auth.global.d.ts +0 -2
  53. package/dist/runtime/app/plugins/seo.d.ts +0 -2
  54. package/dist/runtime/app/plugins/shortcuts.client.d.ts +0 -6
  55. package/dist/runtime/auth.d.ts +0 -25
  56. package/dist/runtime/bindings.d.ts +0 -27
  57. package/dist/runtime/blob.d.ts +0 -26
  58. package/dist/runtime/bots.d.ts +0 -1
  59. package/dist/runtime/browser.d.ts +0 -21
  60. package/dist/runtime/cache.d.ts +0 -19
  61. package/dist/runtime/cms.d.ts +0 -2
  62. package/dist/runtime/db.d.ts +0 -21
  63. package/dist/runtime/drizzle.d.ts +0 -11
  64. package/dist/runtime/email.d.ts +0 -51
  65. package/dist/runtime/hyperdrive.d.ts +0 -21
  66. package/dist/runtime/index.d.ts +0 -22
  67. package/dist/runtime/kv.d.ts +0 -16
  68. package/dist/runtime/payments.d.ts +0 -2
  69. package/dist/runtime/queue.d.ts +0 -21
  70. package/dist/runtime/rag.d.ts +0 -1
  71. package/dist/runtime/ratelimit.d.ts +0 -21
  72. package/dist/runtime/realtime.d.ts +0 -6
  73. package/dist/runtime/server/db/cms-schema.d.ts +0 -651
  74. package/dist/runtime/server/durable-objects/agent.d.ts +0 -14
  75. package/dist/runtime/server/durable-objects/room.d.ts +0 -34
  76. package/dist/runtime/server/middleware/auth.d.ts +0 -2
  77. package/dist/runtime/server/middleware/devtools.d.ts +0 -2
  78. package/dist/runtime/server/middleware/ratelimit.d.ts +0 -2
  79. package/dist/runtime/server/middleware/tenancy.d.ts +0 -6
  80. package/dist/runtime/server/middleware/tracker.d.ts +0 -7
  81. package/dist/runtime/server/plugins/agents.d.ts +0 -7
  82. package/dist/runtime/server/plugins/cms.d.ts +0 -8
  83. package/dist/runtime/server/plugins/dev-logs.d.ts +0 -1
  84. package/dist/runtime/server/plugins/dev-proxy.d.ts +0 -3
  85. package/dist/runtime/server/plugins/env.d.ts +0 -6
  86. package/dist/runtime/server/plugins/queue.d.ts +0 -6
  87. package/dist/runtime/server/routes/__qarpeo/agents/chat.post.d.ts +0 -20
  88. package/dist/runtime/server/routes/__qarpeo/agents/clear.post.d.ts +0 -7
  89. package/dist/runtime/server/routes/__qarpeo/agents/create.post.d.ts +0 -17
  90. package/dist/runtime/server/routes/__qarpeo/agents/history.get.d.ts +0 -15
  91. package/dist/runtime/server/routes/__qarpeo/agents/list.get.d.ts +0 -5
  92. package/dist/runtime/server/routes/__qarpeo/analytics/events.get.d.ts +0 -64
  93. package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.d.ts +0 -30
  94. package/dist/runtime/server/routes/__qarpeo/auth/revoke-session.post.d.ts +0 -6
  95. package/dist/runtime/server/routes/__qarpeo/auth/sessions.get.d.ts +0 -6
  96. package/dist/runtime/server/routes/__qarpeo/auth/users.get.d.ts +0 -7
  97. package/dist/runtime/server/routes/__qarpeo/blob/files.get.d.ts +0 -22
  98. package/dist/runtime/server/routes/__qarpeo/db/query.post.d.ts +0 -23
  99. package/dist/runtime/server/routes/__qarpeo/db/tables.get.d.ts +0 -31
  100. package/dist/runtime/server/routes/__qarpeo/kv/delete.post.d.ts +0 -11
  101. package/dist/runtime/server/routes/__qarpeo/kv/get.get.d.ts +0 -11
  102. package/dist/runtime/server/routes/__qarpeo/kv/keys.get.d.ts +0 -8
  103. package/dist/runtime/server/routes/__qarpeo/kv/set.post.d.ts +0 -14
  104. package/dist/runtime/server/routes/__qarpeo/logs.delete.d.ts +0 -5
  105. package/dist/runtime/server/routes/__qarpeo/logs.get.d.ts +0 -5
  106. package/dist/runtime/server/routes/__qarpeo/logs.post.d.ts +0 -6
  107. package/dist/runtime/server/routes/__qarpeo/mail/bounce.post.d.ts +0 -5
  108. package/dist/runtime/server/routes/__qarpeo/mail/clear.post.d.ts +0 -4
  109. package/dist/runtime/server/routes/__qarpeo/mail/inbox.get.d.ts +0 -5
  110. package/dist/runtime/server/routes/__qarpeo/mail/send-test.post.d.ts +0 -4
  111. package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.d.ts +0 -2
  112. package/dist/runtime/server/routes/__qarpeo/mail/track/open/[id].get.d.ts +0 -2
  113. package/dist/runtime/server/routes/__qarpeo/overview/health.get.d.ts +0 -8
  114. package/dist/runtime/server/routes/__qarpeo/overview.get.d.ts +0 -32
  115. package/dist/runtime/server/routes/__qarpeo/settings/reset-dev-data.post.d.ts +0 -11
  116. package/dist/runtime/server/routes/__qarpeo/settings.get.d.ts +0 -124
  117. package/dist/runtime/server/routes/__qarpeo/tenants/create.post.d.ts +0 -7
  118. package/dist/runtime/server/routes/__qarpeo/tenants/domain-add.post.d.ts +0 -6
  119. package/dist/runtime/server/routes/__qarpeo/tenants/domain-delete.post.d.ts +0 -7
  120. package/dist/runtime/server/routes/__qarpeo/tenants/domain-verify.post.d.ts +0 -9
  121. package/dist/runtime/server/routes/__qarpeo/tenants/list.get.d.ts +0 -15
  122. package/dist/runtime/server/routes/agents/[agent]/chat.post.d.ts +0 -2
  123. package/dist/runtime/server/routes/agents/[agent]/clear.post.d.ts +0 -4
  124. package/dist/runtime/server/routes/agents/[agent]/history.get.d.ts +0 -4
  125. package/dist/runtime/server/routes/analytics/events.get.d.ts +0 -3
  126. package/dist/runtime/server/routes/analytics/pageviews.get.d.ts +0 -3
  127. package/dist/runtime/server/routes/analytics/summary.get.d.ts +0 -6
  128. package/dist/runtime/server/routes/atom.xml.get.d.ts +0 -2
  129. package/dist/runtime/server/routes/auth/2fa/disable.post.d.ts +0 -4
  130. package/dist/runtime/server/routes/auth/2fa/setup.post.d.ts +0 -6
  131. package/dist/runtime/server/routes/auth/2fa/verify.post.d.ts +0 -6
  132. package/dist/runtime/server/routes/auth/[provider]/callback.d.ts +0 -1
  133. package/dist/runtime/server/routes/auth/[provider].d.ts +0 -3
  134. package/dist/runtime/server/routes/auth/account.delete.d.ts +0 -5
  135. package/dist/runtime/server/routes/auth/impersonate/start.post.d.ts +0 -5
  136. package/dist/runtime/server/routes/auth/impersonate/stop.post.d.ts +0 -5
  137. package/dist/runtime/server/routes/auth/logout-all.post.d.ts +0 -4
  138. package/dist/runtime/server/routes/auth/logout-others.post.d.ts +0 -4
  139. package/dist/runtime/server/routes/auth/logout.post.d.ts +0 -4
  140. package/dist/runtime/server/routes/auth/magic-link/send.post.d.ts +0 -10
  141. package/dist/runtime/server/routes/auth/magic-link/verify.get.d.ts +0 -2
  142. package/dist/runtime/server/routes/auth/organization/create.post.d.ts +0 -5
  143. package/dist/runtime/server/routes/auth/organization/invite.post.d.ts +0 -9
  144. package/dist/runtime/server/routes/auth/organization/join.post.d.ts +0 -6
  145. package/dist/runtime/server/routes/auth/organization/list.get.d.ts +0 -5
  146. package/dist/runtime/server/routes/auth/organization/members/[id].delete.d.ts +0 -4
  147. package/dist/runtime/server/routes/auth/organization/members/index.get.d.ts +0 -6
  148. package/dist/runtime/server/routes/auth/organization/mfa.post.d.ts +0 -6
  149. package/dist/runtime/server/routes/auth/organization/sso/[id].delete.d.ts +0 -4
  150. package/dist/runtime/server/routes/auth/organization/sso/index.get.d.ts +0 -2
  151. package/dist/runtime/server/routes/auth/organization/sso/index.post.d.ts +0 -5
  152. package/dist/runtime/server/routes/auth/organization/switch.post.d.ts +0 -6
  153. package/dist/runtime/server/routes/auth/otp/send.post.d.ts +0 -10
  154. package/dist/runtime/server/routes/auth/otp/verify.post.d.ts +0 -6
  155. package/dist/runtime/server/routes/auth/sessions/[id].delete.d.ts +0 -5
  156. package/dist/runtime/server/routes/auth/sessions.get.d.ts +0 -2
  157. package/dist/runtime/server/routes/auth/sso/login.get.d.ts +0 -2
  158. package/dist/runtime/server/routes/auth/sso/oidc/callback.get.d.ts +0 -2
  159. package/dist/runtime/server/routes/auth/sso/saml/acs.post.d.ts +0 -2
  160. package/dist/runtime/server/routes/auth/tokens/[id].delete.d.ts +0 -4
  161. package/dist/runtime/server/routes/auth/tokens/create.post.d.ts +0 -9
  162. package/dist/runtime/server/routes/auth/tokens/index.get.d.ts +0 -9
  163. package/dist/runtime/server/routes/auth/turnstile/verify.post.d.ts +0 -2
  164. package/dist/runtime/server/routes/auth/user.get.d.ts +0 -2
  165. package/dist/runtime/server/routes/auth/webauthn/login/options.post.d.ts +0 -2
  166. package/dist/runtime/server/routes/auth/webauthn/login/verify.post.d.ts +0 -6
  167. package/dist/runtime/server/routes/auth/webauthn/register/options.post.d.ts +0 -2
  168. package/dist/runtime/server/routes/auth/webauthn/register/verify.post.d.ts +0 -5
  169. package/dist/runtime/server/routes/cms/[collection]/[id]/preview-token.post.d.ts +0 -8
  170. package/dist/runtime/server/routes/cms/[collection]/[id]/publish.post.d.ts +0 -6
  171. package/dist/runtime/server/routes/cms/[collection]/[id]/review.post.d.ts +0 -6
  172. package/dist/runtime/server/routes/cms/[collection]/[id].delete.d.ts +0 -4
  173. package/dist/runtime/server/routes/cms/[collection]/[id].put.d.ts +0 -4
  174. package/dist/runtime/server/routes/cms/[collection]/[slug].get.d.ts +0 -4
  175. package/dist/runtime/server/routes/cms/[collection]/atom.xml.get.d.ts +0 -2
  176. package/dist/runtime/server/routes/cms/[collection]/by-path.get.d.ts +0 -8
  177. package/dist/runtime/server/routes/cms/[collection]/feed.xml.get.d.ts +0 -2
  178. package/dist/runtime/server/routes/cms/[collection]/index.get.d.ts +0 -7
  179. package/dist/runtime/server/routes/cms/[collection]/index.post.d.ts +0 -4
  180. package/dist/runtime/server/routes/cms/[collection]/references.get.d.ts +0 -19
  181. package/dist/runtime/server/routes/cms/[collection]/surroundings.get.d.ts +0 -10
  182. package/dist/runtime/server/routes/cms/collections/[id].delete.d.ts +0 -4
  183. package/dist/runtime/server/routes/cms/collections/[id].put.d.ts +0 -4
  184. package/dist/runtime/server/routes/cms/collections/index.get.d.ts +0 -4
  185. package/dist/runtime/server/routes/cms/collections/index.post.d.ts +0 -4
  186. package/dist/runtime/server/routes/cms/components/index.get.d.ts +0 -17
  187. package/dist/runtime/server/routes/cms/deploy.post.d.ts +0 -4
  188. package/dist/runtime/server/routes/cms/export.post.d.ts +0 -10
  189. package/dist/runtime/server/routes/cms/navigation.get.d.ts +0 -8
  190. package/dist/runtime/server/routes/cms/preview/disable.get.d.ts +0 -9
  191. package/dist/runtime/server/routes/cms/preview/enable.get.d.ts +0 -14
  192. package/dist/runtime/server/routes/cms/publish-scheduled.post.d.ts +0 -11
  193. package/dist/runtime/server/routes/cms/search.get.d.ts +0 -13
  194. package/dist/runtime/server/routes/cms/sync.post.d.ts +0 -7
  195. package/dist/runtime/server/routes/cms/webhooks/[provider].post.d.ts +0 -150
  196. package/dist/runtime/server/routes/docs/search.get.d.ts +0 -15
  197. package/dist/runtime/server/routes/feed.xml.get.d.ts +0 -2
  198. package/dist/runtime/server/routes/mail/bounce.post.d.ts +0 -14
  199. package/dist/runtime/server/routes/mail/inbox/[id].get.d.ts +0 -2
  200. package/dist/runtime/server/routes/mail/inbox.get.d.ts +0 -4
  201. package/dist/runtime/server/routes/mail/suppressions/[email].delete.d.ts +0 -11
  202. package/dist/runtime/server/routes/mail/suppressions/index.get.d.ts +0 -12
  203. package/dist/runtime/server/routes/mail/suppressions/index.post.d.ts +0 -10
  204. package/dist/runtime/server/routes/mail/unsubscribe.d.ts +0 -13
  205. package/dist/runtime/server/routes/mail/webhooks.post.d.ts +0 -12
  206. package/dist/runtime/server/routes/notifications/[id]/read.post.d.ts +0 -4
  207. package/dist/runtime/server/routes/notifications/[id].delete.d.ts +0 -4
  208. package/dist/runtime/server/routes/notifications/[id].get.d.ts +0 -2
  209. package/dist/runtime/server/routes/notifications/index.get.d.ts +0 -6
  210. package/dist/runtime/server/routes/notifications/push/subscribe.post.d.ts +0 -4
  211. package/dist/runtime/server/routes/notifications/push/unsubscribe.post.d.ts +0 -4
  212. package/dist/runtime/server/routes/notifications/read-all.post.d.ts +0 -4
  213. package/dist/runtime/server/routes/payments/cancel.post.d.ts +0 -7
  214. package/dist/runtime/server/routes/payments/change-plan.post.d.ts +0 -7
  215. package/dist/runtime/server/routes/payments/checkout.post.d.ts +0 -9
  216. package/dist/runtime/server/routes/payments/pause.post.d.ts +0 -7
  217. package/dist/runtime/server/routes/payments/portal.post.d.ts +0 -5
  218. package/dist/runtime/server/routes/payments/subscription.get.d.ts +0 -6
  219. package/dist/runtime/server/routes/payments/usage.get.d.ts +0 -12
  220. package/dist/runtime/server/routes/payments/usage.post.d.ts +0 -6
  221. package/dist/runtime/server/routes/payments/webhook.post.d.ts +0 -14
  222. package/dist/runtime/server/routes/realtime/broadcast.post.d.ts +0 -4
  223. package/dist/runtime/server/routes/realtime/history.delete.d.ts +0 -13
  224. package/dist/runtime/server/routes/realtime/history.get.d.ts +0 -16
  225. package/dist/runtime/server/routes/realtime/presence.get.d.ts +0 -6
  226. package/dist/runtime/server/routes/realtime/state.get.d.ts +0 -5
  227. package/dist/runtime/server/routes/realtime/state.post.d.ts +0 -6
  228. package/dist/runtime/server/routes/realtime/ws.get.d.ts +0 -2
  229. package/dist/runtime/server/routes/robots.txt.get.d.ts +0 -2
  230. package/dist/runtime/server/routes/rss.xml.get.d.ts +0 -2
  231. package/dist/runtime/server/routes/sitemap.xml.get.d.ts +0 -2
  232. package/dist/runtime/server/routes/storage/file/[...key].delete.d.ts +0 -4
  233. package/dist/runtime/server/routes/storage/file/[...key].get.d.ts +0 -2
  234. package/dist/runtime/server/routes/storage/files.get.d.ts +0 -14
  235. package/dist/runtime/server/routes/storage/presigned.post.d.ts +0 -8
  236. package/dist/runtime/server/routes/storage/sign.post.d.ts +0 -6
  237. package/dist/runtime/server/routes/storage/upload.post.d.ts +0 -22
  238. package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.d.ts +0 -8
  239. package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.d.ts +0 -8
  240. package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.d.ts +0 -8
  241. package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.d.ts +0 -8
  242. package/dist/runtime/server/routes/tenants/current.get.d.ts +0 -8
  243. package/dist/runtime/server/tasks/cms/publish.d.ts +0 -4
  244. package/dist/runtime/server/utils/agent-store.d.ts +0 -24
  245. package/dist/runtime/server/utils/agents-registry-fallback.d.ts +0 -1
  246. package/dist/runtime/server/utils/ai.d.ts +0 -119
  247. package/dist/runtime/server/utils/analytics-query.d.ts +0 -109
  248. package/dist/runtime/server/utils/auth.d.ts +0 -60
  249. package/dist/runtime/server/utils/blob-store.d.ts +0 -13
  250. package/dist/runtime/server/utils/bots.d.ts +0 -21
  251. package/dist/runtime/server/utils/cache.d.ts +0 -33
  252. package/dist/runtime/server/utils/cms-events.d.ts +0 -17
  253. package/dist/runtime/server/utils/cms-filter.d.ts +0 -3
  254. package/dist/runtime/server/utils/cms.d.ts +0 -287
  255. package/dist/runtime/server/utils/config.d.ts +0 -27
  256. package/dist/runtime/server/utils/context.d.ts +0 -13
  257. package/dist/runtime/server/utils/crypto.d.ts +0 -16
  258. package/dist/runtime/server/utils/dev-logs.d.ts +0 -21
  259. package/dist/runtime/server/utils/dev-proxy.d.ts +0 -1
  260. package/dist/runtime/server/utils/domains.d.ts +0 -46
  261. package/dist/runtime/server/utils/drizzle.d.ts +0 -10
  262. package/dist/runtime/server/utils/email-templates.d.ts +0 -44
  263. package/dist/runtime/server/utils/feed.d.ts +0 -42
  264. package/dist/runtime/server/utils/impersonation.d.ts +0 -67
  265. package/dist/runtime/server/utils/jobs.d.ts +0 -70
  266. package/dist/runtime/server/utils/kv-store.d.ts +0 -9
  267. package/dist/runtime/server/utils/mail-suppression.d.ts +0 -62
  268. package/dist/runtime/server/utils/mail.d.ts +0 -90
  269. package/dist/runtime/server/utils/notifications.d.ts +0 -51
  270. package/dist/runtime/server/utils/organization.d.ts +0 -54
  271. package/dist/runtime/server/utils/passwordless.d.ts +0 -48
  272. package/dist/runtime/server/utils/payments.d.ts +0 -121
  273. package/dist/runtime/server/utils/queue-fallback.d.ts +0 -2
  274. package/dist/runtime/server/utils/queue.d.ts +0 -4
  275. package/dist/runtime/server/utils/rag.d.ts +0 -25
  276. package/dist/runtime/server/utils/ratelimit.d.ts +0 -45
  277. package/dist/runtime/server/utils/realtime.d.ts +0 -110
  278. package/dist/runtime/server/utils/schema-fallback.d.ts +0 -3
  279. package/dist/runtime/server/utils/session.d.ts +0 -72
  280. package/dist/runtime/server/utils/sso.d.ts +0 -49
  281. package/dist/runtime/server/utils/storage.d.ts +0 -111
  282. package/dist/runtime/server/utils/tenant.d.ts +0 -44
  283. package/dist/runtime/server/utils/totp.d.ts +0 -33
  284. package/dist/runtime/server/utils/tracker.d.ts +0 -72
  285. package/dist/runtime/server/utils/turnstile.d.ts +0 -17
  286. package/dist/runtime/server/utils/vapid.d.ts +0 -35
  287. package/dist/runtime/storage.d.ts +0 -1
  288. package/dist/runtime/types/ai.d.ts +0 -68
  289. package/dist/runtime/types/analytics.d.ts +0 -30
  290. package/dist/runtime/types/auth.d.ts +0 -153
  291. package/dist/runtime/types/browser.d.ts +0 -29
  292. package/dist/runtime/types/d1.d.ts +0 -44
  293. package/dist/runtime/types/drizzle.d.ts +0 -13
  294. package/dist/runtime/types/durable-object.d.ts +0 -51
  295. package/dist/runtime/types/email.d.ts +0 -66
  296. package/dist/runtime/types/hyperdrive.d.ts +0 -18
  297. package/dist/runtime/types/index.d.ts +0 -156
  298. package/dist/runtime/types/queue.d.ts +0 -67
  299. package/dist/runtime/types/r2.d.ts +0 -108
  300. package/dist/runtime/types/ratelimit.d.ts +0 -21
  301. package/dist/runtime/types/vectorize.d.ts +0 -74
  302. package/dist/runtime/vectorize.d.ts +0 -21
  303. package/dist/types.d.ts +0 -2752
  304. package/dist/utils/agents.d.ts +0 -8
  305. package/dist/utils/auth-schema.d.ts +0 -11
  306. package/dist/utils/bindings.d.ts +0 -16
  307. package/dist/utils/cms-scan.d.ts +0 -36
  308. package/dist/utils/cms-schema.d.ts +0 -1
  309. package/dist/utils/cms-sources.d.ts +0 -67
  310. package/dist/utils/drizzle.d.ts +0 -42
  311. package/dist/utils/jobs.d.ts +0 -8
  312. package/dist/utils/local-db.d.ts +0 -28
  313. package/dist/utils/notifications-schema.d.ts +0 -15
  314. package/dist/utils/payments-schema.d.ts +0 -11
  315. package/dist/utils/pkg.d.ts +0 -15
  316. package/dist/utils/queue.d.ts +0 -8
  317. package/dist/utils/tenants-schema.d.ts +0 -11
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Qarpeo (https://qarpeo.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Qarpeo (https://qarpeo.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,102 +1,102 @@
1
- # Qarpeo
2
-
3
- > The Zero-Config Edge Platform for Nuxt & Cloudflare.
4
-
5
- [![npm version](https://img.shields.io/npm/v/qarpeo.svg)](https://www.npmjs.com/package/qarpeo)
6
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
7
-
8
- **Qarpeo** bridges Nuxt and Cloudflare Workers into a seamless, high-velocity developer experience. One package, zero manual wrangler configuration, type-safe auto-imports, and global edge persistence across all 12 Cloudflare primitives.
9
-
10
- Documentation: [https://qarpeo.com](https://qarpeo.com)
11
-
12
- ---
13
-
14
- ## Features
15
-
16
- - ⚡ **Zero-Config Wrangler**: Auto-generates local and production `wrangler.json` from your Nuxt config.
17
- - 🗄️ **Database Ready**: Native Cloudflare D1 with automatic Drizzle ORM.
18
- - 📦 **Key-Value & Storage**: Cloudflare KV and R2 Blob storage with typed auto-imported clients.
19
- - 🤖 **Edge AI & Vector Search**: Cloudflare Workers AI LLMs and Vectorize embeddings out of the box.
20
- - 📨 **Queues & Background Tasks**: Cloudflare Queues producer with `defineQueueHandler` consumers.
21
- - 🌐 **Browser Rendering**: Headless Chromium automation, screenshots, and PDFs via Cloudflare Browser Rendering.
22
- - 📊 **Telemetry & Rate Limiting**: Cloudflare Analytics Engine and edge rate limiting with zero external Redis.
23
- - 🚀 **Hyperdrive**: Pooled connections and query acceleration to external PostgreSQL and MySQL databases.
24
-
25
- ---
26
-
27
- ## Quick Start
28
-
29
- ### 1. Install
30
-
31
- ```bash
32
- # Using Vite+
33
- vp add qarpeo
34
-
35
- # Using pnpm
36
- pnpm add qarpeo
37
-
38
- # Using npm
39
- npm install qarpeo
40
- ```
41
-
42
- ### 2. Configure
43
-
44
- Enable the Cloudflare primitives you need in `nuxt.config.ts`:
45
-
46
- ```ts [nuxt.config.ts]
47
- export default defineNuxtConfig({
48
- modules: ["qarpeo"],
49
-
50
- qarpeo: {
51
- db: true,
52
- blob: true,
53
- kv: true,
54
- ai: true,
55
- browser: true,
56
- },
57
- })
58
- ```
59
-
60
- ### 3. Use Anywhere in Server Routes
61
-
62
- All bindings are auto-imported and typed:
63
-
64
- ```ts [server/api/example.get.ts]
65
- export default defineEventHandler(async () => {
66
- // Cloudflare KV
67
- await kv.set("hello", "world")
68
-
69
- // Cloudflare D1 + Drizzle
70
- const allUsers = await db.select().from(schema.users)
71
-
72
- // Cloudflare Workers AI
73
- const aiResult = await ai.run("@cf/meta/llama-3.1-8b-instruct", {
74
- prompt: "Summarize edge computing in 5 words",
75
- })
76
-
77
- return { kv: await kv.get("hello"), allUsers, aiResult }
78
- })
79
- ```
80
-
81
- ### 4. CLI Tools (`qp` / `qarpeo`)
82
-
83
- Qarpeo includes an integrated CLI for health diagnostics, database migrations, and schema management:
84
-
85
- ```bash
86
- # Validate Cloudflare bindings, migrations, and secrets
87
- pnpm qp doctor
88
-
89
- # Validate against production/remote deployment criteria
90
- pnpm qp doctor --remote
91
-
92
- # Generate and apply D1 migrations
93
- pnpm qp generate
94
- pnpm qp migrate
95
- pnpm qp migrate --remote
96
- ```
97
-
98
- ---
99
-
100
- ## License
101
-
102
- [MIT](./LICENSE)
1
+ # Qarpeo
2
+
3
+ > The Zero-Config Edge Platform for Nuxt & Cloudflare.
4
+
5
+ [![npm version](https://img.shields.io/npm/v/qarpeo.svg)](https://www.npmjs.com/package/qarpeo)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
7
+
8
+ **Qarpeo** bridges Nuxt and Cloudflare Workers into a seamless, high-velocity developer experience. One package, zero manual wrangler configuration, type-safe auto-imports, and global edge persistence across all 12 Cloudflare primitives.
9
+
10
+ Documentation: [https://qarpeo.com](https://qarpeo.com)
11
+
12
+ ---
13
+
14
+ ## Features
15
+
16
+ - ⚡ **Zero-Config Wrangler**: Auto-generates local and production `wrangler.json` from your Nuxt config.
17
+ - 🗄️ **Database Ready**: Native Cloudflare D1 with automatic Drizzle ORM.
18
+ - 📦 **Key-Value & Storage**: Cloudflare KV and R2 Blob storage with typed auto-imported clients.
19
+ - 🤖 **Edge AI & Vector Search**: Cloudflare Workers AI LLMs and Vectorize embeddings out of the box.
20
+ - 📨 **Queues & Background Tasks**: Cloudflare Queues producer with `defineQueueHandler` consumers.
21
+ - 🌐 **Browser Rendering**: Headless Chromium automation, screenshots, and PDFs via Cloudflare Browser Rendering.
22
+ - 📊 **Telemetry & Rate Limiting**: Cloudflare Analytics Engine and edge rate limiting with zero external Redis.
23
+ - 🚀 **Hyperdrive**: Pooled connections and query acceleration to external PostgreSQL and MySQL databases.
24
+
25
+ ---
26
+
27
+ ## Quick Start
28
+
29
+ ### 1. Install
30
+
31
+ ```bash
32
+ # Using Vite+
33
+ vp add qarpeo
34
+
35
+ # Using pnpm
36
+ pnpm add qarpeo
37
+
38
+ # Using npm
39
+ npm install qarpeo
40
+ ```
41
+
42
+ ### 2. Configure
43
+
44
+ Enable the Cloudflare primitives you need in `nuxt.config.ts`:
45
+
46
+ ```ts [nuxt.config.ts]
47
+ export default defineNuxtConfig({
48
+ modules: ["qarpeo"],
49
+
50
+ qarpeo: {
51
+ db: true,
52
+ blob: true,
53
+ kv: true,
54
+ ai: true,
55
+ browser: true,
56
+ },
57
+ })
58
+ ```
59
+
60
+ ### 3. Use Anywhere in Server Routes
61
+
62
+ All bindings are auto-imported and typed:
63
+
64
+ ```ts [server/api/example.get.ts]
65
+ export default defineEventHandler(async () => {
66
+ // Cloudflare KV
67
+ await kv.set("hello", "world")
68
+
69
+ // Cloudflare D1 + Drizzle
70
+ const allUsers = await db.select().from(schema.users)
71
+
72
+ // Cloudflare Workers AI
73
+ const aiResult = await ai.run("@cf/meta/llama-3.1-8b-instruct", {
74
+ prompt: "Summarize edge computing in 5 words",
75
+ })
76
+
77
+ return { kv: await kv.get("hello"), allUsers, aiResult }
78
+ })
79
+ ```
80
+
81
+ ### 4. CLI Tools (`qp` / `qarpeo`)
82
+
83
+ Qarpeo includes an integrated CLI for health diagnostics, database migrations, and schema management:
84
+
85
+ ```bash
86
+ # Validate Cloudflare bindings, migrations, and secrets
87
+ pnpm qp doctor
88
+
89
+ # Validate against production/remote deployment criteria
90
+ pnpm qp doctor --remote
91
+
92
+ # Generate and apply D1 migrations
93
+ pnpm qp generate
94
+ pnpm qp migrate
95
+ pnpm qp migrate --remote
96
+ ```
97
+
98
+ ---
99
+
100
+ ## License
101
+
102
+ [MIT](./LICENSE)
package/dist/module.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { existsSync, readFileSync, writeFileSync, appendFileSync, readdirSync, statSync, rmSync } from 'node:fs';
2
2
  import { createRequire } from 'node:module';
3
3
  import { fileURLToPath } from 'node:url';
4
- import { defineNuxtModule, useLogger, createResolver, addVitePlugin, addTemplate, hasNuxtModule, installModule, addNitroPlugin, addImports, addServerImports, addTypeTemplate, updateTemplates, addServerImportsDir, addServerHandler, addRouteMiddleware, addComponent, extendPages, addPlugin } from '@nuxt/kit';
4
+ import { defineNuxtModule, useLogger, createResolver, addTemplate, addComponent, hasNuxtModule, installModule, addNitroPlugin, addImports, addServerImports, addTypeTemplate, updateTemplates, addServerImportsDir, addServerHandler, addRouteMiddleware, extendPages, addPlugin } from '@nuxt/kit';
5
5
  import { defu } from 'defu';
6
6
  import { join, resolve, extname, basename, dirname, normalize, relative } from 'pathe';
7
7
  import { h as createWranglerConfig, i as resolveBindingName, c as checkDrizzleVersion, s as scanSchemaExports, b as resolveProjectName, j as findQueueFiles, k as findJobFiles, l as generateDevWranglerConfig, m as applyD1Migrations, f as findSchemaFiles } from './chunks/wrangler.mjs';
@@ -19,7 +19,7 @@ import 'drizzle-orm/node-sqlite';
19
19
  import 'node:process';
20
20
  import 'node:readline/promises';
21
21
 
22
- const version = "0.1.7";
22
+ const version = "0.1.9";
23
23
 
24
24
  function ensureDevEnv(rootDir) {
25
25
  const envPath = join(rootDir, ".env");
@@ -1122,21 +1122,33 @@ const module$1 = defineNuxtModule({
1122
1122
  }
1123
1123
  }
1124
1124
  }
1125
- addVitePlugin({
1126
- name: "qarpeo:tailwind-source",
1127
- enforce: "pre",
1128
- transform(code, id) {
1129
- if (id.includes(".css") && code.includes('@import "tailwindcss"') && !code.includes("qarpeo")) {
1130
- const runtimeAppDir = resolver.resolve("./runtime/app").replace(/\\/g, "/");
1131
- const extraSources = [
1132
- `@source "${runtimeAppDir}";`,
1133
- ...contentDirs.map((dir) => `@source "${dir}";`)
1134
- ].join("\n");
1135
- return `${code}
1125
+ nuxt.hook("vite:extend", ({ config }) => {
1126
+ config.plugins ||= [];
1127
+ config.plugins.unshift({
1128
+ name: "qarpeo:tailwind-source",
1129
+ enforce: "pre",
1130
+ transform(code, id) {
1131
+ if (id.includes(".css") && (code.includes('@import "tailwindcss"') || code.includes("@import 'tailwindcss'")) && !code.includes("runtime/app")) {
1132
+ const cleanId = id.split("?")[0].replace(/\\/g, "/");
1133
+ const cssDir = dirname(cleanId);
1134
+ const toRelativeSource = (targetDir) => {
1135
+ let rel = relative(cssDir, targetDir).replace(/\\/g, "/");
1136
+ if (!rel.startsWith(".")) {
1137
+ rel = "./" + rel;
1138
+ }
1139
+ return `@source "${rel}";`;
1140
+ };
1141
+ const runtimeAppDir = resolver.resolve("./runtime/app");
1142
+ const extraSources = [
1143
+ toRelativeSource(runtimeAppDir),
1144
+ ...contentDirs.map(toRelativeSource)
1145
+ ].join("\n");
1146
+ return `${code}
1136
1147
  ${extraSources}
1137
1148
  `;
1149
+ }
1138
1150
  }
1139
- }
1151
+ });
1140
1152
  });
1141
1153
  if (options.storage && !options.blob) {
1142
1154
  options.blob = options.storage;
@@ -1379,6 +1391,10 @@ ${extraSources}
1379
1391
  }
1380
1392
  });
1381
1393
  nuxt.options.css.push("#build/qarpeo-shiki.css");
1394
+ addComponent({
1395
+ name: "QarpeoWelcome",
1396
+ filePath: resolver.resolve("./runtime/app/components/QarpeoWelcome.vue")
1397
+ });
1382
1398
  const hasAnyService = Boolean(
1383
1399
  options.auth || options.blob || options.storage || options.db || options.cache || options.cms || options.realtime || options.payments || options.jobs || options.ratelimit || options.agents || options.mail || options.analytics || options.multitenant || options.kv || options.blob || options.db || options.email || options.ai || options.vectorize || options.queue || options.hyperdrive || options.browser || options.do || options.d1 || options.r2
1384
1400
  );
@@ -1,100 +1,100 @@
1
- <script lang="ts" setup>
2
- import { computed } from "vue"
3
- import { useStorage } from "../composables/storage"
4
-
5
- /**
6
- * `<BlobImage>` — Renders an optimized image stored in Qarpeo R2 blob storage.
7
- * Supports named presets, on-the-fly resizing, format conversion, and responsive srcset generation.
8
- */
9
- const props = withDefaults(defineProps<{
10
- /** Storage key or pathname (e.g. "avatars/user-1.jpg") or absolute URL. */
11
- src: string
12
- /** Named transformation preset configured in `qarpeo.storage.presets`. */
13
- preset?: string
14
- /** Output image width in pixels. */
15
- width?: number | string
16
- /** Output image height in pixels. */
17
- height?: number | string
18
- /** Compression quality (1-100). */
19
- quality?: number | string
20
- /** Output format. */
21
- format?: "webp" | "avif" | "jpeg" | "png"
22
- /** Fit mode for resizing. */
23
- fit?: "cover" | "contain" | "scale-down" | "crop" | "pad"
24
- /** Image alternative text for accessibility. */
25
- alt?: string
26
- /** Image loading strategy. */
27
- loading?: "lazy" | "eager"
28
- /** Auto-generate responsive srcset (true) or provide a custom srcset string. */
29
- srcset?: boolean | string
30
- /** HTML sizes attribute for responsive layouts. */
31
- sizes?: string
32
- }>(), {
33
- alt: "",
34
- loading: "lazy",
35
- srcset: false,
36
- })
37
-
38
- const { getOptimizedImageUrl } = useStorage()
39
-
40
- const resolvedSrc = computed(() => {
41
- if (!props.src) return ""
42
- if ((props.src.startsWith("http://") || props.src.startsWith("https://")) && !props.preset) {
43
- return props.src
44
- }
45
- return getOptimizedImageUrl(props.src, {
46
- preset: props.preset,
47
- width: props.width ? Number(props.width) : undefined,
48
- height: props.height ? Number(props.height) : undefined,
49
- quality: props.quality ? Number(props.quality) : undefined,
50
- format: props.format,
51
- fit: props.fit,
52
- })
53
- })
54
-
55
- const resolvedSrcset = computed(() => {
56
- if (!props.src || !props.srcset) return undefined
57
- if (typeof props.srcset === "string") return props.srcset
58
-
59
- const numWidth = props.width ? Number(props.width) : undefined
60
- if (numWidth) {
61
- const src1x = resolvedSrc.value
62
- const src2x = getOptimizedImageUrl(props.src, {
63
- preset: props.preset,
64
- width: numWidth * 2,
65
- height: props.height ? Number(props.height) * 2 : undefined,
66
- quality: props.quality ? Number(props.quality) : undefined,
67
- format: props.format,
68
- fit: props.fit,
69
- })
70
- return `${src1x} 1x, ${src2x} 2x`
71
- }
72
-
73
- // Default responsive breakpoints
74
- return [320, 640, 960, 1280]
75
- .map((w) => {
76
- const url = getOptimizedImageUrl(props.src, {
77
- preset: props.preset,
78
- width: w,
79
- quality: props.quality ? Number(props.quality) : undefined,
80
- format: props.format,
81
- fit: props.fit,
82
- })
83
- return `${url} ${w}w`
84
- })
85
- .join(", ")
86
- })
87
- </script>
88
-
89
- <template>
90
- <img
91
- :src="resolvedSrc"
92
- :srcset="resolvedSrcset"
93
- :sizes="sizes"
94
- :width="width"
95
- :height="height"
96
- :alt="alt"
97
- :loading="loading"
98
- decoding="async"
99
- />
100
- </template>
1
+ <script lang="ts" setup>
2
+ import { computed } from "vue"
3
+ import { useStorage } from "../composables/storage"
4
+
5
+ /**
6
+ * `<BlobImage>` — Renders an optimized image stored in Qarpeo R2 blob storage.
7
+ * Supports named presets, on-the-fly resizing, format conversion, and responsive srcset generation.
8
+ */
9
+ const props = withDefaults(defineProps<{
10
+ /** Storage key or pathname (e.g. "avatars/user-1.jpg") or absolute URL. */
11
+ src: string
12
+ /** Named transformation preset configured in `qarpeo.storage.presets`. */
13
+ preset?: string
14
+ /** Output image width in pixels. */
15
+ width?: number | string
16
+ /** Output image height in pixels. */
17
+ height?: number | string
18
+ /** Compression quality (1-100). */
19
+ quality?: number | string
20
+ /** Output format. */
21
+ format?: "webp" | "avif" | "jpeg" | "png"
22
+ /** Fit mode for resizing. */
23
+ fit?: "cover" | "contain" | "scale-down" | "crop" | "pad"
24
+ /** Image alternative text for accessibility. */
25
+ alt?: string
26
+ /** Image loading strategy. */
27
+ loading?: "lazy" | "eager"
28
+ /** Auto-generate responsive srcset (true) or provide a custom srcset string. */
29
+ srcset?: boolean | string
30
+ /** HTML sizes attribute for responsive layouts. */
31
+ sizes?: string
32
+ }>(), {
33
+ alt: "",
34
+ loading: "lazy",
35
+ srcset: false,
36
+ })
37
+
38
+ const { getOptimizedImageUrl } = useStorage()
39
+
40
+ const resolvedSrc = computed(() => {
41
+ if (!props.src) return ""
42
+ if ((props.src.startsWith("http://") || props.src.startsWith("https://")) && !props.preset) {
43
+ return props.src
44
+ }
45
+ return getOptimizedImageUrl(props.src, {
46
+ preset: props.preset,
47
+ width: props.width ? Number(props.width) : undefined,
48
+ height: props.height ? Number(props.height) : undefined,
49
+ quality: props.quality ? Number(props.quality) : undefined,
50
+ format: props.format,
51
+ fit: props.fit,
52
+ })
53
+ })
54
+
55
+ const resolvedSrcset = computed(() => {
56
+ if (!props.src || !props.srcset) return undefined
57
+ if (typeof props.srcset === "string") return props.srcset
58
+
59
+ const numWidth = props.width ? Number(props.width) : undefined
60
+ if (numWidth) {
61
+ const src1x = resolvedSrc.value
62
+ const src2x = getOptimizedImageUrl(props.src, {
63
+ preset: props.preset,
64
+ width: numWidth * 2,
65
+ height: props.height ? Number(props.height) * 2 : undefined,
66
+ quality: props.quality ? Number(props.quality) : undefined,
67
+ format: props.format,
68
+ fit: props.fit,
69
+ })
70
+ return `${src1x} 1x, ${src2x} 2x`
71
+ }
72
+
73
+ // Default responsive breakpoints
74
+ return [320, 640, 960, 1280]
75
+ .map((w) => {
76
+ const url = getOptimizedImageUrl(props.src, {
77
+ preset: props.preset,
78
+ width: w,
79
+ quality: props.quality ? Number(props.quality) : undefined,
80
+ format: props.format,
81
+ fit: props.fit,
82
+ })
83
+ return `${url} ${w}w`
84
+ })
85
+ .join(", ")
86
+ })
87
+ </script>
88
+
89
+ <template>
90
+ <img
91
+ :src="resolvedSrc"
92
+ :srcset="resolvedSrcset"
93
+ :sizes="sizes"
94
+ :width="width"
95
+ :height="height"
96
+ :alt="alt"
97
+ :loading="loading"
98
+ decoding="async"
99
+ />
100
+ </template>