qarpeo 0.1.18 → 0.1.21

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 (237) hide show
  1. package/README.md +96 -96
  2. package/dist/chunks/auth-schema.mjs +3 -1
  3. package/dist/chunks/wrangler.mjs +22 -3
  4. package/dist/cli/index.mjs +448 -221
  5. package/dist/fate/index.d.ts +29 -22
  6. package/dist/fate/index.mjs +1 -3
  7. package/dist/module.d.ts +1 -1
  8. package/dist/module.mjs +103 -82
  9. package/dist/runtime/ai.d.ts +2 -2
  10. package/dist/runtime/app/components/BlobImage.vue +119 -107
  11. package/dist/runtime/app/components/CMSBlocks.vue +104 -93
  12. package/dist/runtime/app/components/CMSContent.vue +24 -23
  13. package/dist/runtime/app/components/CMSImage.vue +49 -49
  14. package/dist/runtime/app/components/CMSLocaleSwitcher.vue +110 -110
  15. package/dist/runtime/app/components/CMSPreviewBanner.vue +83 -79
  16. package/dist/runtime/app/components/CMSVersionBanner.vue +53 -49
  17. package/dist/runtime/app/components/CMSVersionSwitcher.vue +140 -140
  18. package/dist/runtime/app/components/ContentRenderer.vue +83 -80
  19. package/dist/runtime/app/components/FileUpload.vue +200 -196
  20. package/dist/runtime/app/components/ImpersonationBanner.vue +61 -57
  21. package/dist/runtime/app/components/QarpeoWelcome.vue +84 -84
  22. package/dist/runtime/app/components/SignedIn.vue +13 -13
  23. package/dist/runtime/app/components/SignedOut.vue +13 -13
  24. package/dist/runtime/app/components/shiki.css +34 -34
  25. package/dist/runtime/app/composables/ai.d.ts +22 -22
  26. package/dist/runtime/app/composables/ai.mjs +3 -7
  27. package/dist/runtime/app/composables/analytics.mjs +1 -1
  28. package/dist/runtime/app/composables/api-tokens.mjs +1 -1
  29. package/dist/runtime/app/composables/auth.d.ts +6 -7
  30. package/dist/runtime/app/composables/auth.mjs +6 -3
  31. package/dist/runtime/app/composables/chat.mjs +3 -7
  32. package/dist/runtime/app/composables/cms-preview.d.ts +3 -3
  33. package/dist/runtime/app/composables/cms-preview.mjs +1 -1
  34. package/dist/runtime/app/composables/cms.d.ts +3 -5
  35. package/dist/runtime/app/composables/cms.mjs +2 -2
  36. package/dist/runtime/app/composables/docs-version.d.ts +8 -7
  37. package/dist/runtime/app/composables/docs-version.mjs +3 -3
  38. package/dist/runtime/app/composables/impersonation.mjs +1 -1
  39. package/dist/runtime/app/composables/notifications.d.ts +5 -5
  40. package/dist/runtime/app/composables/notifications.mjs +4 -5
  41. package/dist/runtime/app/composables/organization.mjs +1 -1
  42. package/dist/runtime/app/composables/passkey.mjs +1 -1
  43. package/dist/runtime/app/composables/passwordless.mjs +1 -1
  44. package/dist/runtime/app/composables/payments.d.ts +2 -1
  45. package/dist/runtime/app/composables/payments.mjs +1 -1
  46. package/dist/runtime/app/composables/realtime.d.ts +13 -13
  47. package/dist/runtime/app/composables/realtime.mjs +2 -2
  48. package/dist/runtime/app/composables/resumable-upload.d.ts +11 -11
  49. package/dist/runtime/app/composables/resumable-upload.mjs +1 -1
  50. package/dist/runtime/app/composables/site.mjs +1 -1
  51. package/dist/runtime/app/composables/storage.d.ts +151 -11
  52. package/dist/runtime/app/composables/storage.mjs +291 -33
  53. package/dist/runtime/app/composables/turnstile.mjs +1 -1
  54. package/dist/runtime/app/composables/two-factor.mjs +1 -1
  55. package/dist/runtime/app/pages/devtools/agents.vue +716 -716
  56. package/dist/runtime/app/pages/devtools/analytics.vue +616 -616
  57. package/dist/runtime/app/pages/devtools/auth.vue +381 -350
  58. package/dist/runtime/app/pages/devtools/blob.vue +743 -744
  59. package/dist/runtime/app/pages/devtools/db.vue +545 -545
  60. package/dist/runtime/app/pages/devtools/domains.vue +771 -771
  61. package/dist/runtime/app/pages/devtools/kv.vue +827 -828
  62. package/dist/runtime/app/pages/devtools/logs.vue +649 -653
  63. package/dist/runtime/app/pages/devtools/mail.vue +388 -388
  64. package/dist/runtime/app/pages/devtools/overview.vue +391 -389
  65. package/dist/runtime/app/pages/devtools/realtime.vue +89 -27
  66. package/dist/runtime/app/pages/devtools/security.vue +20 -5
  67. package/dist/runtime/app/pages/devtools/settings.vue +559 -559
  68. package/dist/runtime/app/pages/devtools/tasks.vue +26 -10
  69. package/dist/runtime/app/pages/devtools.vue +176 -176
  70. package/dist/runtime/app/plugins/seo.mjs +1 -1
  71. package/dist/runtime/app/plugins/shortcuts.client.d.ts +1 -4
  72. package/dist/runtime/app/public/sw-notifications.mjs +47 -52
  73. package/dist/runtime/blob.mjs +11 -4
  74. package/dist/runtime/browser.d.ts +1 -1
  75. package/dist/runtime/browser.mjs +12 -2
  76. package/dist/runtime/cache.d.ts +2 -1
  77. package/dist/runtime/kv.mjs +4 -1
  78. package/dist/runtime/providers/qarpeo.d.ts +3 -3
  79. package/dist/runtime/server/durable-objects/agent.mjs +1 -1
  80. package/dist/runtime/server/durable-objects/room.d.ts +2 -2
  81. package/dist/runtime/server/durable-objects/room.mjs +5 -5
  82. package/dist/runtime/server/middleware/devtools.mjs +6 -2
  83. package/dist/runtime/server/plugins/cms.d.ts +4 -2
  84. package/dist/runtime/server/plugins/dev-proxy.mjs +1 -1
  85. package/dist/runtime/server/routes/__qarpeo/agents/chat.post.d.ts +2 -2
  86. package/dist/runtime/server/routes/__qarpeo/agents/chat.post.mjs +4 -1
  87. package/dist/runtime/server/routes/__qarpeo/analytics/events.get.d.ts +1 -4
  88. package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.d.ts +2 -2
  89. package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.mjs +5 -1
  90. package/dist/runtime/server/routes/__qarpeo/db/tables.get.d.ts +2 -2
  91. package/dist/runtime/server/routes/__qarpeo/db/tables.get.mjs +1 -1
  92. package/dist/runtime/server/routes/__qarpeo/logs.get.d.ts +4 -1
  93. package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.mjs +1 -1
  94. package/dist/runtime/server/routes/__qarpeo/mail/track/open/[id].get.mjs +2 -2
  95. package/dist/runtime/server/routes/__qarpeo/overview.get.d.ts +2 -2
  96. package/dist/runtime/server/routes/__qarpeo/realtime/broadcast.post.d.ts +2 -2
  97. package/dist/runtime/server/routes/__qarpeo/realtime/broadcast.post.mjs +1 -1
  98. package/dist/runtime/server/routes/__qarpeo/realtime/clear.post.d.ts +1 -4
  99. package/dist/runtime/server/routes/__qarpeo/realtime/clear.post.mjs +1 -1
  100. package/dist/runtime/server/routes/__qarpeo/realtime/disconnect.post.d.ts +1 -4
  101. package/dist/runtime/server/routes/__qarpeo/realtime/disconnect.post.mjs +1 -1
  102. package/dist/runtime/server/routes/__qarpeo/realtime/room.get.d.ts +2 -2
  103. package/dist/runtime/server/routes/__qarpeo/realtime/rooms.get.d.ts +2 -2
  104. package/dist/runtime/server/routes/__qarpeo/security/analytics.get.d.ts +2 -2
  105. package/dist/runtime/server/routes/__qarpeo/security/ban.post.d.ts +1 -4
  106. package/dist/runtime/server/routes/__qarpeo/security/clear.post.d.ts +1 -4
  107. package/dist/runtime/server/routes/__qarpeo/security/unban.post.d.ts +1 -4
  108. package/dist/runtime/server/routes/__qarpeo/settings.get.mjs +1 -1
  109. package/dist/runtime/server/routes/__qarpeo/tasks/run.post.mjs +3 -1
  110. package/dist/runtime/server/routes/agents/[agent]/chat.post.mjs +8 -2
  111. package/dist/runtime/server/routes/agents/[agent]/clear.post.mjs +8 -2
  112. package/dist/runtime/server/routes/agents/[agent]/history.get.mjs +8 -2
  113. package/dist/runtime/server/routes/ai/embed.post.d.ts +1 -4
  114. package/dist/runtime/server/routes/ai/search.post.d.ts +2 -2
  115. package/dist/runtime/server/routes/auth/account.delete.mjs +1 -1
  116. package/dist/runtime/server/routes/auth/handler.mjs +6 -1
  117. package/dist/runtime/server/routes/auth/magic-link/verify.get.mjs +1 -1
  118. package/dist/runtime/server/routes/auth/organization/members/[id].delete.mjs +7 -1
  119. package/dist/runtime/server/routes/auth/otp/verify.post.mjs +1 -1
  120. package/dist/runtime/server/routes/auth/sso/login.get.mjs +7 -1
  121. package/dist/runtime/server/routes/auth/sso/oidc/callback.get.mjs +8 -2
  122. package/dist/runtime/server/routes/auth/sso/saml/acs.post.mjs +7 -2
  123. package/dist/runtime/server/routes/auth/webauthn/login/options.post.mjs +1 -1
  124. package/dist/runtime/server/routes/auth/webauthn/login/verify.post.mjs +7 -2
  125. package/dist/runtime/server/routes/auth/webauthn/register/options.post.mjs +6 -1
  126. package/dist/runtime/server/routes/auth/webauthn/register/verify.post.mjs +6 -1
  127. package/dist/runtime/server/routes/browser/crawl.post.d.ts +1 -2
  128. package/dist/runtime/server/routes/browser/invoice.post.d.ts +1 -2
  129. package/dist/runtime/server/routes/browser/og-image.post.d.ts +2 -2
  130. package/dist/runtime/server/routes/browser/pdf.post.d.ts +1 -2
  131. package/dist/runtime/server/routes/browser/pdf.post.mjs +6 -1
  132. package/dist/runtime/server/routes/browser/screenshot.post.d.ts +2 -2
  133. package/dist/runtime/server/routes/browser/screenshot.post.mjs +5 -1
  134. package/dist/runtime/server/routes/cms/components/index.get.d.ts +2 -2
  135. package/dist/runtime/server/routes/cms/preview/disable.get.d.ts +4 -3
  136. package/dist/runtime/server/routes/cms/preview/enable.get.d.ts +8 -8
  137. package/dist/runtime/server/routes/cms/search.get.mjs +1 -1
  138. package/dist/runtime/server/routes/cms/webhooks/[provider].post.d.ts +7 -7
  139. package/dist/runtime/server/routes/cms/webhooks/[provider].post.mjs +9 -2
  140. package/dist/runtime/server/routes/docs/search.get.d.ts +9 -9
  141. package/dist/runtime/server/routes/fate.mjs +5 -8
  142. package/dist/runtime/server/routes/mail/bounce.post.d.ts +2 -2
  143. package/dist/runtime/server/routes/mail/unsubscribe.d.ts +2 -2
  144. package/dist/runtime/server/routes/mail/webhooks.post.d.ts +2 -2
  145. package/dist/runtime/server/routes/mail/webhooks.post.mjs +7 -1
  146. package/dist/runtime/server/routes/payments/usage.get.d.ts +8 -8
  147. package/dist/runtime/server/routes/payments/usage.post.d.ts +2 -2
  148. package/dist/runtime/server/routes/realtime/history.delete.d.ts +4 -3
  149. package/dist/runtime/server/routes/realtime/history.get.d.ts +7 -6
  150. package/dist/runtime/server/routes/realtime/ws.get.mjs +6 -1
  151. package/dist/runtime/server/routes/robots.txt.get.mjs +1 -1
  152. package/dist/runtime/server/routes/sitemap.xml.get.mjs +2 -1
  153. package/dist/runtime/server/routes/storage/multipart/abort.post.d.ts +2 -2
  154. package/dist/runtime/server/routes/storage/multipart/complete.post.d.ts +2 -2
  155. package/dist/runtime/server/routes/storage/multipart/complete.post.mjs +2 -2
  156. package/dist/runtime/server/routes/storage/multipart/create.post.d.ts +2 -2
  157. package/dist/runtime/server/routes/storage/multipart/create.post.mjs +7 -3
  158. package/dist/runtime/server/routes/storage/multipart/part.put.d.ts +2 -2
  159. package/dist/runtime/server/routes/storage/multipart/part.put.mjs +1 -1
  160. package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.mjs +2 -4
  161. package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.mjs +2 -4
  162. package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.mjs +1 -1
  163. package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.mjs +2 -4
  164. package/dist/runtime/server/tasks/cms/publish.mjs +1 -1
  165. package/dist/runtime/server/utils/ai.d.ts +9 -9
  166. package/dist/runtime/server/utils/ai.mjs +3 -3
  167. package/dist/runtime/server/utils/auth.d.ts +12 -16
  168. package/dist/runtime/server/utils/auth.mjs +15 -9
  169. package/dist/runtime/server/utils/bots.mjs +21 -7
  170. package/dist/runtime/server/utils/browser-utils.d.ts +44 -41
  171. package/dist/runtime/server/utils/browser-utils.mjs +14 -4
  172. package/dist/runtime/server/utils/cache.d.ts +5 -5
  173. package/dist/runtime/server/utils/cms/common.d.ts +26 -0
  174. package/dist/runtime/server/utils/cms/common.mjs +68 -0
  175. package/dist/runtime/server/utils/cms/git.d.ts +24 -0
  176. package/dist/runtime/server/utils/cms/git.mjs +240 -0
  177. package/dist/runtime/server/utils/cms/markdown.d.ts +22 -0
  178. package/dist/runtime/server/utils/cms/markdown.mjs +92 -0
  179. package/dist/runtime/server/utils/cms/path.d.ts +51 -0
  180. package/dist/runtime/server/utils/cms/path.mjs +127 -0
  181. package/dist/runtime/server/utils/cms/search.d.ts +22 -0
  182. package/dist/runtime/server/utils/cms/search.mjs +221 -0
  183. package/dist/runtime/server/utils/cms-events.d.ts +1 -1
  184. package/dist/runtime/server/utils/cms-events.mjs +2 -2
  185. package/dist/runtime/server/utils/cms-filter.mjs +2 -2
  186. package/dist/runtime/server/utils/cms.d.ts +17 -149
  187. package/dist/runtime/server/utils/cms.mjs +52 -761
  188. package/dist/runtime/server/utils/config.d.ts +5 -4
  189. package/dist/runtime/server/utils/domains.mjs +7 -4
  190. package/dist/runtime/server/utils/email-templates.d.ts +10 -7
  191. package/dist/runtime/server/utils/email-templates.mjs +20 -5
  192. package/dist/runtime/server/utils/feed.d.ts +2 -2
  193. package/dist/runtime/server/utils/feed.mjs +3 -1
  194. package/dist/runtime/server/utils/mail-suppression.d.ts +8 -24
  195. package/dist/runtime/server/utils/mail-suppression.mjs +2 -2
  196. package/dist/runtime/server/utils/mail.d.ts +7 -8
  197. package/dist/runtime/server/utils/mail.mjs +17 -12
  198. package/dist/runtime/server/utils/multipart-store.d.ts +2 -2
  199. package/dist/runtime/server/utils/notifications.d.ts +9 -23
  200. package/dist/runtime/server/utils/organization.mjs +4 -12
  201. package/dist/runtime/server/utils/passwordless.mjs +1 -1
  202. package/dist/runtime/server/utils/payments.d.ts +2 -6
  203. package/dist/runtime/server/utils/payments.mjs +1 -1
  204. package/dist/runtime/server/utils/queue.d.ts +21 -31
  205. package/dist/runtime/server/utils/rag.d.ts +4 -4
  206. package/dist/runtime/server/utils/rag.mjs +8 -8
  207. package/dist/runtime/server/utils/realtime-store.d.ts +2 -2
  208. package/dist/runtime/server/utils/realtime.d.ts +26 -28
  209. package/dist/runtime/server/utils/scheduled-task.d.ts +1 -3
  210. package/dist/runtime/server/utils/security-store.d.ts +2 -2
  211. package/dist/runtime/server/utils/session.d.ts +9 -11
  212. package/dist/runtime/server/utils/sso.d.ts +9 -15
  213. package/dist/runtime/server/utils/sso.mjs +4 -8
  214. package/dist/runtime/server/utils/storage.d.ts +19 -2
  215. package/dist/runtime/server/utils/storage.mjs +36 -7
  216. package/dist/runtime/server/utils/tenant.mjs +3 -1
  217. package/dist/runtime/server/utils/turnstile.d.ts +3 -5
  218. package/dist/runtime/server/utils/vapid.d.ts +5 -8
  219. package/dist/runtime/server/utils/vapid.mjs +26 -13
  220. package/dist/runtime/service.d.ts +13 -13
  221. package/dist/runtime/service.mjs +4 -2
  222. package/dist/runtime/test-utils.d.ts +20 -30
  223. package/dist/runtime/test-utils.mjs +5 -4
  224. package/dist/runtime/types/auth-globals.d.ts +14 -14
  225. package/dist/runtime/types/imports.d.ts +82 -82
  226. package/dist/runtime/types/index.d.ts +2 -2
  227. package/dist/runtime/types/r2.d.ts +5 -0
  228. package/dist/runtime/types/service.d.ts +11 -18
  229. package/dist/types.d.ts +100 -107
  230. package/dist/utils/auth-schema.d.ts +2 -2
  231. package/dist/utils/cms-sources.d.ts +3 -3
  232. package/dist/utils/local-db.d.ts +3 -3
  233. package/dist/utils/notifications-schema.d.ts +1 -3
  234. package/dist/utils/pkg.d.ts +7 -0
  235. package/dist/utils/queue.d.ts +3 -3
  236. package/dist/utils/tasks.d.ts +3 -2
  237. package/package.json +11 -8
@@ -1,84 +1,84 @@
1
- <script setup lang="ts">
2
- withDefaults(
3
- defineProps<{
4
- title?: string
5
- description?: string
6
- }>(),
7
- {
8
- title: "Nuxt 5 Starter",
9
- description:
10
- "A clean, minimal starting point for building full-stack applications with Nuxt 5, Nuxt UI, and Vite+, preconfigured for Cloudflare Workers.",
11
- },
12
- )
13
- </script>
14
-
15
- <template>
16
- <UPageSection
17
- :ui="{
18
- title: 'text-4xl font-extrabold tracking-tight sm:text-6xl lg:text-6xl',
19
- description: 'text-muted mx-auto max-w-2xl text-lg leading-relaxed sm:text-lg',
20
- }"
21
- >
22
- <template #leading>
23
- <div
24
- class="inline-flex items-center gap-2 rounded-full border border-orange-500/30 bg-orange-500/10 px-4 py-1.5 text-xs font-semibold text-orange-600 dark:text-orange-400"
25
- >
26
- <span class="flex h-2 w-2 animate-pulse rounded-full bg-orange-500" />
27
- <span>Nuxt 5 + Nuxt UI + Vite+</span>
28
- </div>
29
- </template>
30
-
31
- <template #title>
32
- Welcome to
33
- <span
34
- class="bg-linear-to-r from-orange-500 via-amber-500 to-yellow-400 bg-clip-text text-transparent"
35
- >
36
- {{ title }}
37
- </span>
38
- </template>
39
-
40
- <template #description>
41
- {{ description }}
42
- </template>
43
-
44
- <template #footer>
45
- <!-- Action Buttons -->
46
- <div class="flex flex-wrap items-center justify-center gap-4">
47
- <UButton
48
- label="Documentation"
49
- to="https://qarpeo.com/docs"
50
- target="_blank"
51
- size="lg"
52
- color="primary"
53
- icon="i-lucide-book-open"
54
- />
55
- <UButton
56
- label="GitHub"
57
- to="https://github.com/qarpeo/starter"
58
- target="_blank"
59
- size="lg"
60
- variant="outline"
61
- color="neutral"
62
- icon="i-lucide-github"
63
- />
64
- </div>
65
-
66
- <!-- Quickstart Terminal Card -->
67
- <UCard variant="subtle" class="mx-auto mt-8 max-w-md overflow-hidden font-mono text-xs">
68
- <div class="text-muted mb-3 flex items-center justify-between">
69
- <span class="font-semibold text-orange-400"># Start developing</span>
70
- <span class="text-muted text-[11px]">terminal</span>
71
- </div>
72
- <div class="text-muted space-y-1.5">
73
- <p><span class="text-orange-400">$</span> vp i</p>
74
- <p><span class="text-orange-400">$</span> vpr dev</p>
75
- </div>
76
- <template #footer>
77
- <div class="text-muted text-[11px]">
78
- Edit <code class="text-orange-400">app/pages/index.vue</code> to start building.
79
- </div>
80
- </template>
81
- </UCard>
82
- </template>
83
- </UPageSection>
84
- </template>
1
+ <script setup lang="ts">
2
+ withDefaults(
3
+ defineProps<{
4
+ title?: string
5
+ description?: string
6
+ }>(),
7
+ {
8
+ title: "Nuxt 5 Starter",
9
+ description:
10
+ "A clean, minimal starting point for building full-stack applications with Nuxt 5, Nuxt UI, and Vite+, preconfigured for Cloudflare Workers.",
11
+ },
12
+ )
13
+ </script>
14
+
15
+ <template>
16
+ <UPageSection
17
+ :ui="{
18
+ title: 'text-4xl font-extrabold tracking-tight sm:text-6xl lg:text-6xl',
19
+ description: 'text-muted mx-auto max-w-2xl text-lg leading-relaxed sm:text-lg',
20
+ }"
21
+ >
22
+ <template #leading>
23
+ <div
24
+ class="inline-flex items-center gap-2 rounded-full border border-orange-500/30 bg-orange-500/10 px-4 py-1.5 text-xs font-semibold text-orange-600 dark:text-orange-400"
25
+ >
26
+ <span class="flex h-2 w-2 animate-pulse rounded-full bg-orange-500" />
27
+ <span>Nuxt 5 + Nuxt UI + Vite+</span>
28
+ </div>
29
+ </template>
30
+
31
+ <template #title>
32
+ Welcome to
33
+ <span
34
+ class="bg-linear-to-r from-orange-500 via-amber-500 to-yellow-400 bg-clip-text text-transparent"
35
+ >
36
+ {{ title }}
37
+ </span>
38
+ </template>
39
+
40
+ <template #description>
41
+ {{ description }}
42
+ </template>
43
+
44
+ <template #footer>
45
+ <!-- Action Buttons -->
46
+ <div class="flex flex-wrap items-center justify-center gap-4">
47
+ <UButton
48
+ label="Documentation"
49
+ to="https://qarpeo.com/docs"
50
+ target="_blank"
51
+ size="lg"
52
+ color="primary"
53
+ icon="i-lucide-book-open"
54
+ />
55
+ <UButton
56
+ label="GitHub"
57
+ to="https://github.com/qarpeo/starter"
58
+ target="_blank"
59
+ size="lg"
60
+ variant="outline"
61
+ color="neutral"
62
+ icon="i-lucide-github"
63
+ />
64
+ </div>
65
+
66
+ <!-- Quickstart Terminal Card -->
67
+ <UCard variant="subtle" class="mx-auto mt-8 max-w-md overflow-hidden font-mono text-xs">
68
+ <div class="text-muted mb-3 flex items-center justify-between">
69
+ <span class="font-semibold text-orange-400"># Start developing</span>
70
+ <span class="text-muted text-[11px]">terminal</span>
71
+ </div>
72
+ <div class="text-muted space-y-1.5">
73
+ <p><span class="text-orange-400">$</span> vp i</p>
74
+ <p><span class="text-orange-400">$</span> vpr dev</p>
75
+ </div>
76
+ <template #footer>
77
+ <div class="text-muted text-[11px]">
78
+ Edit <code class="text-orange-400">app/pages/index.vue</code> to start building.
79
+ </div>
80
+ </template>
81
+ </UCard>
82
+ </template>
83
+ </UPageSection>
84
+ </template>
@@ -1,13 +1,13 @@
1
- <script lang="ts" setup>
2
- import { useAuth } from "../composables/auth"
3
- const { loggedIn, ready } = useAuth()
4
- </script>
5
-
6
- <template>
7
- <template v-if="ready && loggedIn">
8
- <slot />
9
- </template>
10
- <template v-else-if="!ready">
11
- <slot name="fallback" />
12
- </template>
13
- </template>
1
+ <script lang="ts" setup>
2
+ import { useAuth } from "../composables/auth"
3
+ const { loggedIn, ready } = useAuth()
4
+ </script>
5
+
6
+ <template>
7
+ <template v-if="ready && loggedIn">
8
+ <slot />
9
+ </template>
10
+ <template v-else-if="!ready">
11
+ <slot name="fallback" />
12
+ </template>
13
+ </template>
@@ -1,13 +1,13 @@
1
- <script lang="ts" setup>
2
- import { useAuth } from "../composables/auth"
3
- const { loggedIn, ready } = useAuth()
4
- </script>
5
-
6
- <template>
7
- <template v-if="ready && !loggedIn">
8
- <slot />
9
- </template>
10
- <template v-else-if="!ready">
11
- <slot name="fallback" />
12
- </template>
13
- </template>
1
+ <script lang="ts" setup>
2
+ import { useAuth } from "../composables/auth"
3
+ const { loggedIn, ready } = useAuth()
4
+ </script>
5
+
6
+ <template>
7
+ <template v-if="ready && !loggedIn">
8
+ <slot />
9
+ </template>
10
+ <template v-else-if="!ready">
11
+ <slot name="fallback" />
12
+ </template>
13
+ </template>
@@ -1,34 +1,34 @@
1
- /* Shiki dark mode styles. A colour swatch keeps the background and contrast
2
- foreground the transformer wrote, inline with Comark or as a generated
3
- class with the content pipeline. */
4
- html.dark .shiki span[style*="--shiki-dark"]:not(.shiki-color-highlight) {
5
- color: var(--shiki-dark) !important;
6
- font-style: var(--shiki-dark-font-style) !important;
7
- font-weight: var(--shiki-dark-font-weight) !important;
8
- text-decoration: var(--shiki-dark-text-decoration) !important;
9
- }
10
-
11
- /* Shiki icon highlight transformer styles */
12
- .shiki-icon-highlight {
13
- display: inline-block;
14
- width: 1.25em;
15
- height: 1.25em;
16
- vertical-align: -0.25em;
17
- margin-right: 0.125em;
18
- background-color: var(--ui-text-highlighted);
19
- -webkit-mask-repeat: no-repeat;
20
- mask-repeat: no-repeat;
21
- -webkit-mask-size: 100% 100%;
22
- mask-size: 100% 100%;
23
- -webkit-mask-image: var(--shiki-icon-url);
24
- mask-image: var(--shiki-icon-url);
25
- }
26
-
27
- /* Container background styling for dark & light mode */
28
- html.dark pre.shiki {
29
- background-color: #0f172a !important;
30
- }
31
-
32
- html:not(.dark) pre.shiki {
33
- background-color: #f8fafc !important;
34
- }
1
+ /* Shiki dark mode styles. A colour swatch keeps the background and contrast
2
+ foreground the transformer wrote, inline with Comark or as a generated
3
+ class with the content pipeline. */
4
+ html.dark .shiki span[style*="--shiki-dark"]:not(.shiki-color-highlight) {
5
+ color: var(--shiki-dark) !important;
6
+ font-style: var(--shiki-dark-font-style) !important;
7
+ font-weight: var(--shiki-dark-font-weight) !important;
8
+ text-decoration: var(--shiki-dark-text-decoration) !important;
9
+ }
10
+
11
+ /* Shiki icon highlight transformer styles */
12
+ .shiki-icon-highlight {
13
+ display: inline-block;
14
+ width: 1.25em;
15
+ height: 1.25em;
16
+ vertical-align: -0.25em;
17
+ margin-right: 0.125em;
18
+ background-color: var(--ui-text-highlighted);
19
+ -webkit-mask-repeat: no-repeat;
20
+ mask-repeat: no-repeat;
21
+ -webkit-mask-size: 100% 100%;
22
+ mask-size: 100% 100%;
23
+ -webkit-mask-image: var(--shiki-icon-url);
24
+ mask-image: var(--shiki-icon-url);
25
+ }
26
+
27
+ /* Container background styling for dark & light mode */
28
+ html.dark pre.shiki {
29
+ background-color: #0f172a !important;
30
+ }
31
+
32
+ html:not(.dark) pre.shiki {
33
+ background-color: #f8fafc !important;
34
+ }
@@ -19,16 +19,16 @@ export interface UseAIStreamOptions {
19
19
  * Reactive composable for streaming text completions from Cloudflare Workers AI via SSE.
20
20
  *
21
21
  * @example
22
- * ```vue
23
- * <script setup>
24
- * const { text, isStreaming, send, abort } = useAIStream()
25
- * </script>
26
- * <template>
22
+ * ;```vue
23
+ * <script setup>
24
+ * const { text, isStreaming, send, abort } = useAIStream()
25
+ * </script>
26
+ * <template>
27
27
  * <button @click="send('Explain quantum physics')">Generate</button>
28
28
  * <div v-if="isStreaming">Streaming...</div>
29
29
  * <p>{{ text }}</p>
30
- * </template>
31
- * ```
30
+ * </template>
31
+ * ```
32
32
  */
33
33
  export declare function useAIStream(options?: UseAIStreamOptions): {
34
34
  text: import("vue").Ref<string, string>;
@@ -74,18 +74,18 @@ export interface UseVectorSearchOptions {
74
74
  * Reactive composable for vector similarity search via Cloudflare Vectorize.
75
75
  *
76
76
  * @example
77
- * ```vue
78
- * <script setup>
79
- * const { query, results, isSearching, search, clear } = useVectorSearch({ index: "articles", debounce: 300 })
80
- * </script>
81
- * <template>
77
+ * ;```vue
78
+ * <script setup>
79
+ * const { query, results, isSearching, search, clear } = useVectorSearch({ index: "articles", debounce: 300 })
80
+ * </script>
81
+ * <template>
82
82
  * <input v-model="query" placeholder="Search semantic articles..." />
83
83
  * <div v-if="isSearching">Searching...</div>
84
84
  * <ul>
85
- * <li v-for="res in results" :key="res.id">{{ res.metadata?.title || res.id }}</li>
85
+ * <li v-for="res in results" :key="res.id">{{ res.metadata?.title || res.id }}</li>
86
86
  * </ul>
87
- * </template>
88
- * ```
87
+ * </template>
88
+ * ```
89
89
  */
90
90
  export declare function useVectorSearch<T = any>(options?: UseVectorSearchOptions): {
91
91
  query: import("vue").Ref<string, string>;
@@ -116,14 +116,14 @@ export interface UseEmbeddingsOptions {
116
116
  * Reactive composable for generating text vector embeddings via Cloudflare Workers AI.
117
117
  *
118
118
  * @example
119
- * ```vue
120
- * <script setup>
121
- * const { embeddings, isEmbedding, embed } = useEmbeddings()
122
- * const generate = async () => {
119
+ * ;```vue
120
+ * <script setup>
121
+ * const { embeddings, isEmbedding, embed } = useEmbeddings()
122
+ * const generate = async () => {
123
123
  * const vectors = await embed("Semantic search is fast on the edge")
124
- * }
125
- * </script>
126
- * ```
124
+ * }
125
+ * </script>
126
+ * ```
127
127
  */
128
128
  export declare function useEmbeddings(options?: UseEmbeddingsOptions): {
129
129
  embeddings: import("vue").Ref<number[][], number[][]>;
@@ -59,12 +59,8 @@ export function useAIStream(options = {}) {
59
59
  } catch {
60
60
  }
61
61
  } else if (eventType === "error" && dataStr) {
62
- try {
63
- const data = JSON.parse(dataStr);
64
- throw new Error(data.message || "Streaming failed");
65
- } catch (err) {
66
- throw err;
67
- }
62
+ const data = JSON.parse(dataStr);
63
+ throw new Error(data.message || "Streaming failed");
68
64
  }
69
65
  }
70
66
  }
@@ -216,7 +212,7 @@ export function useVectorSearch(options = {}) {
216
212
  };
217
213
  const refresh = () => executeSearch(query.value);
218
214
  if (options.immediate && options.initialQuery) {
219
- executeSearch(options.initialQuery);
215
+ void executeSearch(options.initialQuery);
220
216
  }
221
217
  return {
222
218
  query,
@@ -6,7 +6,7 @@ export function useAnalyticsDashboard(basePath = "/api/analytics") {
6
6
  const pageviews = ref(null);
7
7
  const events = ref([]);
8
8
  const fetchJson = async (url, query) => {
9
- const qs = query ? "?" + Object.entries(query).filter(([_, v]) => v !== void 0 && v !== null && v !== "").map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(String(v))}`).join("&") : "";
9
+ const qs = query ? "?" + Object.entries(query).filter(([, v]) => v !== void 0 && v !== null && v !== "").map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(String(v))}`).join("&") : "";
10
10
  const fullUrl = `${url}${qs}`;
11
11
  if (typeof globalThis.$fetch === "function") {
12
12
  return globalThis.$fetch(fullUrl);
@@ -1,5 +1,5 @@
1
- import { ref } from "vue";
2
1
  import { useRuntimeConfig } from "nuxt/app";
2
+ import { ref } from "vue";
3
3
  export function useApiTokens() {
4
4
  const runtimeConfig = useRuntimeConfig();
5
5
  const authConfig = runtimeConfig.public?.qarpeo?.auth || {};
@@ -1,11 +1,7 @@
1
1
  import type { QarpeoUser, QarpeoSession, DeleteAccountOptions } from "../../types/auth";
2
- /**
3
- * Official Better Auth Vue Client Instance
4
- */
2
+ /** Official Better Auth Vue Client Instance */
5
3
  export declare const authClient: any;
6
- /**
7
- * Standard Better Auth session composable compatible with Nuxt 5 SSR hydration.
8
- */
4
+ /** Standard Better Auth session composable compatible with Nuxt 5 SSR hydration. */
9
5
  export declare function useSession(): any;
10
6
  export declare function useUserSession(): {
11
7
  ready: import("vue").ComputedRef<boolean>;
@@ -39,7 +35,10 @@ export declare function useAuth(): {
39
35
  client: any;
40
36
  signIn: any;
41
37
  signUp: any;
42
- /** Raw Better Auth signOut without automatic route navigation. See `logout()` to sign out and redirect. */
38
+ /**
39
+ * Raw Better Auth signOut without automatic route navigation. See `logout()` to sign out and
40
+ * redirect.
41
+ */
43
42
  signOut: any;
44
43
  mfaRequired: import("vue").ComputedRef<boolean>;
45
44
  mfaVerified: import("vue").ComputedRef<boolean>;
@@ -1,6 +1,6 @@
1
- import { ref, computed } from "vue";
2
- import { useRuntimeConfig, navigateTo } from "nuxt/app";
3
1
  import { createAuthClient } from "better-auth/vue";
2
+ import { useRuntimeConfig, navigateTo } from "nuxt/app";
3
+ import { ref, computed } from "vue";
4
4
  export const authClient = createAuthClient();
5
5
  export function useSession() {
6
6
  return authClient.useSession();
@@ -116,7 +116,10 @@ export function useAuth() {
116
116
  client: authClient,
117
117
  signIn: authClient.signIn,
118
118
  signUp: authClient.signUp,
119
- /** Raw Better Auth signOut without automatic route navigation. See `logout()` to sign out and redirect. */
119
+ /**
120
+ * Raw Better Auth signOut without automatic route navigation. See `logout()` to sign out and
121
+ * redirect.
122
+ */
120
123
  signOut: authClient.signOut,
121
124
  // Enterprise Auth additions
122
125
  mfaRequired,
@@ -27,7 +27,7 @@ export function useChat(options = {}) {
27
27
  };
28
28
  if (options.loadHistory !== false) {
29
29
  onMounted(() => {
30
- loadConversationHistory();
30
+ void loadConversationHistory();
31
31
  });
32
32
  }
33
33
  const stop = () => {
@@ -140,12 +140,8 @@ export function useChat(options = {}) {
140
140
  } catch {
141
141
  }
142
142
  } else if (eventType === "error" && dataStr) {
143
- try {
144
- const data = JSON.parse(dataStr);
145
- throw new Error(data.message || "Agent streaming failed");
146
- } catch (err) {
147
- throw err;
148
- }
143
+ const data = JSON.parse(dataStr);
144
+ throw new Error(data.message || "Agent streaming failed");
149
145
  }
150
146
  }
151
147
  }
@@ -1,8 +1,8 @@
1
1
  import type { CMSPreviewState } from "../../../types";
2
2
  /**
3
- * Reactive client composable for CMS Draft / Preview mode.
4
- * Automatically inspects the current route query (?preview=true, ?preview_token=...)
5
- * and the `qarpeo_preview` cookie to expose reactive preview status, token, and exit helpers.
3
+ * Reactive client composable for CMS Draft / Preview mode. Automatically inspects the current route
4
+ * query (?preview=true, ?preview_token=...) and the `qarpeo_preview` cookie to expose reactive
5
+ * preview status, token, and exit helpers.
6
6
  */
7
7
  export declare function useCMSPreview(): {
8
8
  isPreview: {
@@ -1,5 +1,5 @@
1
- import { computed } from "vue";
2
1
  import { useRoute, useCookie, navigateTo } from "nuxt/app";
2
+ import { computed } from "vue";
3
3
  export function useCMSPreview() {
4
4
  let route;
5
5
  let cookie;
@@ -258,8 +258,8 @@ export declare function queryCollectionItemSurroundings(collection: string, path
258
258
  fields?: string[];
259
259
  }): Promise<[CMSEntry | null, CMSEntry | null]>;
260
260
  /**
261
- * Reactive composable for managing multi-language CMS localization state.
262
- * Allows reading active locale, switching locales, and persisting preferences across requests.
261
+ * Reactive composable for managing multi-language CMS localization state. Allows reading active
262
+ * locale, switching locales, and persisting preferences across requests.
263
263
  */
264
264
  export declare function useCMSLocale(): {
265
265
  locale: import("vue").Ref<string, string>;
@@ -268,9 +268,7 @@ export declare function useCMSLocale(): {
268
268
  localeConfigs: import("vue").ComputedRef<CMSLocaleConfig[]>;
269
269
  setLocale: (newLocale: string) => void;
270
270
  };
271
- /**
272
- * Reactive client composable for searching documentation entries and heading sections.
273
- */
271
+ /** Reactive client composable for searching documentation entries and heading sections. */
274
272
  export declare function useDocsSearch(options?: {
275
273
  collection?: string;
276
274
  locale?: string;
@@ -1,5 +1,5 @@
1
- import { ref, computed } from "vue";
2
1
  import { useRuntimeConfig } from "nuxt/app";
2
+ import { ref, computed } from "vue";
3
3
  import { useCMSPreview } from "./cms-preview.mjs";
4
4
  export function useCMS(collectionId) {
5
5
  const runtimeConfig = useRuntimeConfig();
@@ -345,7 +345,7 @@ export function useDocsSearch(options) {
345
345
  function searchDebounced(q, delay = 150) {
346
346
  clearTimeout(timer);
347
347
  timer = setTimeout(() => {
348
- search(q);
348
+ void search(q);
349
349
  }, delay);
350
350
  }
351
351
  return {
@@ -1,14 +1,15 @@
1
1
  import type { DocsVersionItem } from "../../../types";
2
2
  /**
3
- * Reactive client composable for docs versioning.
4
- * Automatically parses active version from router path (/docs/v1/... vs /docs/...),
5
- * provides list of versions, and seamlessly switches versions while preserving subpaths.
3
+ * Reactive client composable for docs versioning. Automatically parses active version from router
4
+ * path (/docs/v1/... vs /docs/...), provides list of versions, and seamlessly switches versions
5
+ * while preserving subpaths.
6
6
  *
7
7
  * Version list resolution order:
8
- * 1. Explicit `options.versions` passed to this composable
9
- * 2. `runtimeConfig.public.qarpeo.docsVersions` (manual override in nuxt.config)
10
- * 3. Auto-derived from `runtimeConfig.public.qarpeoVersion` (injected by the qarpeo
11
- * module from its own package.json) — a single "latest" entry, no dropdown shown.
8
+ *
9
+ * 1. Explicit `options.versions` passed to this composable
10
+ * 2. `runtimeConfig.public.qarpeo.docsVersions` (manual override in nuxt.config)
11
+ * 3. Auto-derived from `runtimeConfig.public.qarpeoVersion` (injected by the qarpeo module from its
12
+ * own package.json) — a single "latest" entry, no dropdown shown.
12
13
  */
13
14
  export declare function useDocsVersion(options?: {
14
15
  versions?: DocsVersionItem[];
@@ -1,5 +1,5 @@
1
- import { ref, computed } from "vue";
2
1
  import { useRoute, useRouter, useRuntimeConfig, navigateTo } from "nuxt/app";
2
+ import { ref, computed } from "vue";
3
3
  export function useDocsVersion(options) {
4
4
  let route;
5
5
  let router;
@@ -47,9 +47,9 @@ export function useDocsVersion(options) {
47
47
  subPath = p.slice("/docs".length);
48
48
  }
49
49
  if (targetVersionId === "latest") {
50
- return `/docs${subPath}` || "/docs";
50
+ return `/docs${subPath}`;
51
51
  }
52
- return `/docs/${targetVersionId}${subPath}` || `/docs/${targetVersionId}`;
52
+ return `/docs/${targetVersionId}${subPath}`;
53
53
  }
54
54
  async function switchVersion(targetVersionId) {
55
55
  const targetPath = getVersionPath(targetVersionId);
@@ -1,5 +1,5 @@
1
- import { computed } from "vue";
2
1
  import { useRuntimeConfig } from "nuxt/app";
2
+ import { computed } from "vue";
3
3
  import { useUserSession } from "./auth.mjs";
4
4
  export function useImpersonation() {
5
5
  const { session, fetch: refreshSession } = useUserSession();
@@ -26,10 +26,10 @@ export interface UseNotificationsReturn {
26
26
  * Composable for managing in-app notifications and Web Push subscriptions.
27
27
  *
28
28
  * @example
29
- * ```vue
30
- * <script setup>
31
- * const { notifications, unreadCount, markAsRead, subscribeToWebPush } = useNotifications()
32
- * </script>
33
- * ```
29
+ * ;```vue
30
+ * <script setup>
31
+ * const { notifications, unreadCount, markAsRead, subscribeToWebPush } = useNotifications()
32
+ * </script>
33
+ * ```
34
34
  */
35
35
  export declare function useNotifications(): UseNotificationsReturn;
@@ -1,5 +1,5 @@
1
- import { computed, onMounted, onUnmounted, ref } from "vue";
2
1
  import { useRuntimeConfig } from "nuxt/app";
2
+ import { computed, onMounted, onUnmounted, ref } from "vue";
3
3
  export function useNotifications() {
4
4
  const config = useRuntimeConfig();
5
5
  const vapidPublicKey = config.public?.qarpeo?.notifications?.vapidPublicKey || "";
@@ -13,10 +13,9 @@ export function useNotifications() {
13
13
  async function refresh() {
14
14
  pending.value = true;
15
15
  try {
16
- const data = await $fetch(
17
- "/api/notifications",
18
- { query: { limit: 50 } }
19
- );
16
+ const data = await $fetch("/api/notifications", {
17
+ query: { limit: 50 }
18
+ });
20
19
  notifications.value = data.notifications || [];
21
20
  } catch (err) {
22
21
  console.error("[useNotifications] Failed to fetch notifications:", err);
@@ -1,5 +1,5 @@
1
- import { ref, computed } from "vue";
2
1
  import { useRuntimeConfig } from "nuxt/app";
2
+ import { ref, computed } from "vue";
3
3
  import { useUserSession } from "./auth.mjs";
4
4
  export function useOrganization() {
5
5
  const { session, fetch: refreshSession } = useUserSession();
@@ -1,5 +1,5 @@
1
- import { ref } from "vue";
2
1
  import { useRuntimeConfig } from "nuxt/app";
2
+ import { ref } from "vue";
3
3
  import { useAuth } from "./auth.mjs";
4
4
  export function usePasskey() {
5
5
  const runtimeConfig = useRuntimeConfig();