qarpeo 0.1.8 → 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.
- package/dist/module.mjs +30 -14
- package/dist/runtime/app/components/QarpeoWelcome.vue +84 -0
- package/package.json +1 -1
- package/dist/dev/env.d.ts +0 -12
- package/dist/dev/wrangler.d.ts +0 -18
- package/dist/module.d.ts +0 -17
- package/dist/runtime/ai.d.ts +0 -25
- package/dist/runtime/analytics.d.ts +0 -24
- package/dist/runtime/app/composables/analytics.d.ts +0 -125
- package/dist/runtime/app/composables/api-tokens.d.ts +0 -49
- package/dist/runtime/app/composables/auth.d.ts +0 -58
- package/dist/runtime/app/composables/chat.d.ts +0 -69
- package/dist/runtime/app/composables/cms-preview.d.ts +0 -33
- package/dist/runtime/app/composables/cms.d.ts +0 -307
- package/dist/runtime/app/composables/docs-version.d.ts +0 -35
- package/dist/runtime/app/composables/impersonation.d.ts +0 -14
- package/dist/runtime/app/composables/notifications.d.ts +0 -35
- package/dist/runtime/app/composables/organization.d.ts +0 -127
- package/dist/runtime/app/composables/passkey.d.ts +0 -6
- package/dist/runtime/app/composables/passwordless.d.ts +0 -7
- package/dist/runtime/app/composables/payments.d.ts +0 -43
- package/dist/runtime/app/composables/realtime.d.ts +0 -96
- package/dist/runtime/app/composables/site.d.ts +0 -35
- package/dist/runtime/app/composables/storage.d.ts +0 -60
- package/dist/runtime/app/composables/tenant.d.ts +0 -82
- package/dist/runtime/app/composables/turnstile.d.ts +0 -3
- package/dist/runtime/app/composables/two-factor.d.ts +0 -12
- package/dist/runtime/app/middleware/auth.global.d.ts +0 -2
- package/dist/runtime/app/plugins/seo.d.ts +0 -2
- package/dist/runtime/app/plugins/shortcuts.client.d.ts +0 -6
- package/dist/runtime/auth.d.ts +0 -25
- package/dist/runtime/bindings.d.ts +0 -27
- package/dist/runtime/blob.d.ts +0 -26
- package/dist/runtime/bots.d.ts +0 -1
- package/dist/runtime/browser.d.ts +0 -21
- package/dist/runtime/cache.d.ts +0 -19
- package/dist/runtime/cms.d.ts +0 -2
- package/dist/runtime/db.d.ts +0 -21
- package/dist/runtime/drizzle.d.ts +0 -11
- package/dist/runtime/email.d.ts +0 -51
- package/dist/runtime/hyperdrive.d.ts +0 -21
- package/dist/runtime/index.d.ts +0 -22
- package/dist/runtime/kv.d.ts +0 -16
- package/dist/runtime/payments.d.ts +0 -2
- package/dist/runtime/queue.d.ts +0 -21
- package/dist/runtime/rag.d.ts +0 -1
- package/dist/runtime/ratelimit.d.ts +0 -21
- package/dist/runtime/realtime.d.ts +0 -6
- package/dist/runtime/server/db/cms-schema.d.ts +0 -651
- package/dist/runtime/server/durable-objects/agent.d.ts +0 -14
- package/dist/runtime/server/durable-objects/room.d.ts +0 -34
- package/dist/runtime/server/middleware/auth.d.ts +0 -2
- package/dist/runtime/server/middleware/devtools.d.ts +0 -2
- package/dist/runtime/server/middleware/ratelimit.d.ts +0 -2
- package/dist/runtime/server/middleware/tenancy.d.ts +0 -6
- package/dist/runtime/server/middleware/tracker.d.ts +0 -7
- package/dist/runtime/server/plugins/agents.d.ts +0 -7
- package/dist/runtime/server/plugins/cms.d.ts +0 -8
- package/dist/runtime/server/plugins/dev-logs.d.ts +0 -1
- package/dist/runtime/server/plugins/dev-proxy.d.ts +0 -3
- package/dist/runtime/server/plugins/env.d.ts +0 -6
- package/dist/runtime/server/plugins/queue.d.ts +0 -6
- package/dist/runtime/server/routes/__qarpeo/agents/chat.post.d.ts +0 -20
- package/dist/runtime/server/routes/__qarpeo/agents/clear.post.d.ts +0 -7
- package/dist/runtime/server/routes/__qarpeo/agents/create.post.d.ts +0 -17
- package/dist/runtime/server/routes/__qarpeo/agents/history.get.d.ts +0 -15
- package/dist/runtime/server/routes/__qarpeo/agents/list.get.d.ts +0 -5
- package/dist/runtime/server/routes/__qarpeo/analytics/events.get.d.ts +0 -64
- package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.d.ts +0 -30
- package/dist/runtime/server/routes/__qarpeo/auth/revoke-session.post.d.ts +0 -6
- package/dist/runtime/server/routes/__qarpeo/auth/sessions.get.d.ts +0 -6
- package/dist/runtime/server/routes/__qarpeo/auth/users.get.d.ts +0 -7
- package/dist/runtime/server/routes/__qarpeo/blob/files.get.d.ts +0 -22
- package/dist/runtime/server/routes/__qarpeo/db/query.post.d.ts +0 -23
- package/dist/runtime/server/routes/__qarpeo/db/tables.get.d.ts +0 -31
- package/dist/runtime/server/routes/__qarpeo/kv/delete.post.d.ts +0 -11
- package/dist/runtime/server/routes/__qarpeo/kv/get.get.d.ts +0 -11
- package/dist/runtime/server/routes/__qarpeo/kv/keys.get.d.ts +0 -8
- package/dist/runtime/server/routes/__qarpeo/kv/set.post.d.ts +0 -14
- package/dist/runtime/server/routes/__qarpeo/logs.delete.d.ts +0 -5
- package/dist/runtime/server/routes/__qarpeo/logs.get.d.ts +0 -5
- package/dist/runtime/server/routes/__qarpeo/logs.post.d.ts +0 -6
- package/dist/runtime/server/routes/__qarpeo/mail/bounce.post.d.ts +0 -5
- package/dist/runtime/server/routes/__qarpeo/mail/clear.post.d.ts +0 -4
- package/dist/runtime/server/routes/__qarpeo/mail/inbox.get.d.ts +0 -5
- package/dist/runtime/server/routes/__qarpeo/mail/send-test.post.d.ts +0 -4
- package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.d.ts +0 -2
- package/dist/runtime/server/routes/__qarpeo/mail/track/open/[id].get.d.ts +0 -2
- package/dist/runtime/server/routes/__qarpeo/overview/health.get.d.ts +0 -8
- package/dist/runtime/server/routes/__qarpeo/overview.get.d.ts +0 -32
- package/dist/runtime/server/routes/__qarpeo/settings/reset-dev-data.post.d.ts +0 -11
- package/dist/runtime/server/routes/__qarpeo/settings.get.d.ts +0 -124
- package/dist/runtime/server/routes/__qarpeo/tenants/create.post.d.ts +0 -7
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-add.post.d.ts +0 -6
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-delete.post.d.ts +0 -7
- package/dist/runtime/server/routes/__qarpeo/tenants/domain-verify.post.d.ts +0 -9
- package/dist/runtime/server/routes/__qarpeo/tenants/list.get.d.ts +0 -15
- package/dist/runtime/server/routes/agents/[agent]/chat.post.d.ts +0 -2
- package/dist/runtime/server/routes/agents/[agent]/clear.post.d.ts +0 -4
- package/dist/runtime/server/routes/agents/[agent]/history.get.d.ts +0 -4
- package/dist/runtime/server/routes/analytics/events.get.d.ts +0 -3
- package/dist/runtime/server/routes/analytics/pageviews.get.d.ts +0 -3
- package/dist/runtime/server/routes/analytics/summary.get.d.ts +0 -6
- package/dist/runtime/server/routes/atom.xml.get.d.ts +0 -2
- package/dist/runtime/server/routes/auth/2fa/disable.post.d.ts +0 -4
- package/dist/runtime/server/routes/auth/2fa/setup.post.d.ts +0 -6
- package/dist/runtime/server/routes/auth/2fa/verify.post.d.ts +0 -6
- package/dist/runtime/server/routes/auth/[provider]/callback.d.ts +0 -1
- package/dist/runtime/server/routes/auth/[provider].d.ts +0 -3
- package/dist/runtime/server/routes/auth/account.delete.d.ts +0 -5
- package/dist/runtime/server/routes/auth/impersonate/start.post.d.ts +0 -5
- package/dist/runtime/server/routes/auth/impersonate/stop.post.d.ts +0 -5
- package/dist/runtime/server/routes/auth/logout-all.post.d.ts +0 -4
- package/dist/runtime/server/routes/auth/logout-others.post.d.ts +0 -4
- package/dist/runtime/server/routes/auth/logout.post.d.ts +0 -4
- package/dist/runtime/server/routes/auth/magic-link/send.post.d.ts +0 -10
- package/dist/runtime/server/routes/auth/magic-link/verify.get.d.ts +0 -2
- package/dist/runtime/server/routes/auth/organization/create.post.d.ts +0 -5
- package/dist/runtime/server/routes/auth/organization/invite.post.d.ts +0 -9
- package/dist/runtime/server/routes/auth/organization/join.post.d.ts +0 -6
- package/dist/runtime/server/routes/auth/organization/list.get.d.ts +0 -5
- package/dist/runtime/server/routes/auth/organization/members/[id].delete.d.ts +0 -4
- package/dist/runtime/server/routes/auth/organization/members/index.get.d.ts +0 -6
- package/dist/runtime/server/routes/auth/organization/mfa.post.d.ts +0 -6
- package/dist/runtime/server/routes/auth/organization/sso/[id].delete.d.ts +0 -4
- package/dist/runtime/server/routes/auth/organization/sso/index.get.d.ts +0 -2
- package/dist/runtime/server/routes/auth/organization/sso/index.post.d.ts +0 -5
- package/dist/runtime/server/routes/auth/organization/switch.post.d.ts +0 -6
- package/dist/runtime/server/routes/auth/otp/send.post.d.ts +0 -10
- package/dist/runtime/server/routes/auth/otp/verify.post.d.ts +0 -6
- package/dist/runtime/server/routes/auth/sessions/[id].delete.d.ts +0 -5
- package/dist/runtime/server/routes/auth/sessions.get.d.ts +0 -2
- package/dist/runtime/server/routes/auth/sso/login.get.d.ts +0 -2
- package/dist/runtime/server/routes/auth/sso/oidc/callback.get.d.ts +0 -2
- package/dist/runtime/server/routes/auth/sso/saml/acs.post.d.ts +0 -2
- package/dist/runtime/server/routes/auth/tokens/[id].delete.d.ts +0 -4
- package/dist/runtime/server/routes/auth/tokens/create.post.d.ts +0 -9
- package/dist/runtime/server/routes/auth/tokens/index.get.d.ts +0 -9
- package/dist/runtime/server/routes/auth/turnstile/verify.post.d.ts +0 -2
- package/dist/runtime/server/routes/auth/user.get.d.ts +0 -2
- package/dist/runtime/server/routes/auth/webauthn/login/options.post.d.ts +0 -2
- package/dist/runtime/server/routes/auth/webauthn/login/verify.post.d.ts +0 -6
- package/dist/runtime/server/routes/auth/webauthn/register/options.post.d.ts +0 -2
- package/dist/runtime/server/routes/auth/webauthn/register/verify.post.d.ts +0 -5
- package/dist/runtime/server/routes/cms/[collection]/[id]/preview-token.post.d.ts +0 -8
- package/dist/runtime/server/routes/cms/[collection]/[id]/publish.post.d.ts +0 -6
- package/dist/runtime/server/routes/cms/[collection]/[id]/review.post.d.ts +0 -6
- package/dist/runtime/server/routes/cms/[collection]/[id].delete.d.ts +0 -4
- package/dist/runtime/server/routes/cms/[collection]/[id].put.d.ts +0 -4
- package/dist/runtime/server/routes/cms/[collection]/[slug].get.d.ts +0 -4
- package/dist/runtime/server/routes/cms/[collection]/atom.xml.get.d.ts +0 -2
- package/dist/runtime/server/routes/cms/[collection]/by-path.get.d.ts +0 -8
- package/dist/runtime/server/routes/cms/[collection]/feed.xml.get.d.ts +0 -2
- package/dist/runtime/server/routes/cms/[collection]/index.get.d.ts +0 -7
- package/dist/runtime/server/routes/cms/[collection]/index.post.d.ts +0 -4
- package/dist/runtime/server/routes/cms/[collection]/references.get.d.ts +0 -19
- package/dist/runtime/server/routes/cms/[collection]/surroundings.get.d.ts +0 -10
- package/dist/runtime/server/routes/cms/collections/[id].delete.d.ts +0 -4
- package/dist/runtime/server/routes/cms/collections/[id].put.d.ts +0 -4
- package/dist/runtime/server/routes/cms/collections/index.get.d.ts +0 -4
- package/dist/runtime/server/routes/cms/collections/index.post.d.ts +0 -4
- package/dist/runtime/server/routes/cms/components/index.get.d.ts +0 -17
- package/dist/runtime/server/routes/cms/deploy.post.d.ts +0 -4
- package/dist/runtime/server/routes/cms/export.post.d.ts +0 -10
- package/dist/runtime/server/routes/cms/navigation.get.d.ts +0 -8
- package/dist/runtime/server/routes/cms/preview/disable.get.d.ts +0 -9
- package/dist/runtime/server/routes/cms/preview/enable.get.d.ts +0 -14
- package/dist/runtime/server/routes/cms/publish-scheduled.post.d.ts +0 -11
- package/dist/runtime/server/routes/cms/search.get.d.ts +0 -13
- package/dist/runtime/server/routes/cms/sync.post.d.ts +0 -7
- package/dist/runtime/server/routes/cms/webhooks/[provider].post.d.ts +0 -150
- package/dist/runtime/server/routes/docs/search.get.d.ts +0 -15
- package/dist/runtime/server/routes/feed.xml.get.d.ts +0 -2
- package/dist/runtime/server/routes/mail/bounce.post.d.ts +0 -14
- package/dist/runtime/server/routes/mail/inbox/[id].get.d.ts +0 -2
- package/dist/runtime/server/routes/mail/inbox.get.d.ts +0 -4
- package/dist/runtime/server/routes/mail/suppressions/[email].delete.d.ts +0 -11
- package/dist/runtime/server/routes/mail/suppressions/index.get.d.ts +0 -12
- package/dist/runtime/server/routes/mail/suppressions/index.post.d.ts +0 -10
- package/dist/runtime/server/routes/mail/unsubscribe.d.ts +0 -13
- package/dist/runtime/server/routes/mail/webhooks.post.d.ts +0 -12
- package/dist/runtime/server/routes/notifications/[id]/read.post.d.ts +0 -4
- package/dist/runtime/server/routes/notifications/[id].delete.d.ts +0 -4
- package/dist/runtime/server/routes/notifications/[id].get.d.ts +0 -2
- package/dist/runtime/server/routes/notifications/index.get.d.ts +0 -6
- package/dist/runtime/server/routes/notifications/push/subscribe.post.d.ts +0 -4
- package/dist/runtime/server/routes/notifications/push/unsubscribe.post.d.ts +0 -4
- package/dist/runtime/server/routes/notifications/read-all.post.d.ts +0 -4
- package/dist/runtime/server/routes/payments/cancel.post.d.ts +0 -7
- package/dist/runtime/server/routes/payments/change-plan.post.d.ts +0 -7
- package/dist/runtime/server/routes/payments/checkout.post.d.ts +0 -9
- package/dist/runtime/server/routes/payments/pause.post.d.ts +0 -7
- package/dist/runtime/server/routes/payments/portal.post.d.ts +0 -5
- package/dist/runtime/server/routes/payments/subscription.get.d.ts +0 -6
- package/dist/runtime/server/routes/payments/usage.get.d.ts +0 -12
- package/dist/runtime/server/routes/payments/usage.post.d.ts +0 -6
- package/dist/runtime/server/routes/payments/webhook.post.d.ts +0 -14
- package/dist/runtime/server/routes/realtime/broadcast.post.d.ts +0 -4
- package/dist/runtime/server/routes/realtime/history.delete.d.ts +0 -13
- package/dist/runtime/server/routes/realtime/history.get.d.ts +0 -16
- package/dist/runtime/server/routes/realtime/presence.get.d.ts +0 -6
- package/dist/runtime/server/routes/realtime/state.get.d.ts +0 -5
- package/dist/runtime/server/routes/realtime/state.post.d.ts +0 -6
- package/dist/runtime/server/routes/realtime/ws.get.d.ts +0 -2
- package/dist/runtime/server/routes/robots.txt.get.d.ts +0 -2
- package/dist/runtime/server/routes/rss.xml.get.d.ts +0 -2
- package/dist/runtime/server/routes/sitemap.xml.get.d.ts +0 -2
- package/dist/runtime/server/routes/storage/file/[...key].delete.d.ts +0 -4
- package/dist/runtime/server/routes/storage/file/[...key].get.d.ts +0 -2
- package/dist/runtime/server/routes/storage/files.get.d.ts +0 -14
- package/dist/runtime/server/routes/storage/presigned.post.d.ts +0 -8
- package/dist/runtime/server/routes/storage/sign.post.d.ts +0 -6
- package/dist/runtime/server/routes/storage/upload.post.d.ts +0 -22
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.d.ts +0 -8
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.d.ts +0 -8
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.d.ts +0 -8
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.d.ts +0 -8
- package/dist/runtime/server/routes/tenants/current.get.d.ts +0 -8
- package/dist/runtime/server/tasks/cms/publish.d.ts +0 -4
- package/dist/runtime/server/utils/agent-store.d.ts +0 -24
- package/dist/runtime/server/utils/agents-registry-fallback.d.ts +0 -1
- package/dist/runtime/server/utils/ai.d.ts +0 -119
- package/dist/runtime/server/utils/analytics-query.d.ts +0 -109
- package/dist/runtime/server/utils/auth.d.ts +0 -60
- package/dist/runtime/server/utils/blob-store.d.ts +0 -13
- package/dist/runtime/server/utils/bots.d.ts +0 -21
- package/dist/runtime/server/utils/cache.d.ts +0 -33
- package/dist/runtime/server/utils/cms-events.d.ts +0 -17
- package/dist/runtime/server/utils/cms-filter.d.ts +0 -3
- package/dist/runtime/server/utils/cms.d.ts +0 -287
- package/dist/runtime/server/utils/config.d.ts +0 -27
- package/dist/runtime/server/utils/context.d.ts +0 -13
- package/dist/runtime/server/utils/crypto.d.ts +0 -16
- package/dist/runtime/server/utils/dev-logs.d.ts +0 -21
- package/dist/runtime/server/utils/dev-proxy.d.ts +0 -1
- package/dist/runtime/server/utils/domains.d.ts +0 -46
- package/dist/runtime/server/utils/drizzle.d.ts +0 -10
- package/dist/runtime/server/utils/email-templates.d.ts +0 -44
- package/dist/runtime/server/utils/feed.d.ts +0 -42
- package/dist/runtime/server/utils/impersonation.d.ts +0 -67
- package/dist/runtime/server/utils/jobs.d.ts +0 -70
- package/dist/runtime/server/utils/kv-store.d.ts +0 -9
- package/dist/runtime/server/utils/mail-suppression.d.ts +0 -62
- package/dist/runtime/server/utils/mail.d.ts +0 -90
- package/dist/runtime/server/utils/notifications.d.ts +0 -51
- package/dist/runtime/server/utils/organization.d.ts +0 -54
- package/dist/runtime/server/utils/passwordless.d.ts +0 -48
- package/dist/runtime/server/utils/payments.d.ts +0 -121
- package/dist/runtime/server/utils/queue-fallback.d.ts +0 -2
- package/dist/runtime/server/utils/queue.d.ts +0 -4
- package/dist/runtime/server/utils/rag.d.ts +0 -25
- package/dist/runtime/server/utils/ratelimit.d.ts +0 -45
- package/dist/runtime/server/utils/realtime.d.ts +0 -110
- package/dist/runtime/server/utils/schema-fallback.d.ts +0 -3
- package/dist/runtime/server/utils/session.d.ts +0 -72
- package/dist/runtime/server/utils/sso.d.ts +0 -49
- package/dist/runtime/server/utils/storage.d.ts +0 -111
- package/dist/runtime/server/utils/tenant.d.ts +0 -44
- package/dist/runtime/server/utils/totp.d.ts +0 -33
- package/dist/runtime/server/utils/tracker.d.ts +0 -72
- package/dist/runtime/server/utils/turnstile.d.ts +0 -17
- package/dist/runtime/server/utils/vapid.d.ts +0 -35
- package/dist/runtime/storage.d.ts +0 -1
- package/dist/runtime/types/ai.d.ts +0 -68
- package/dist/runtime/types/analytics.d.ts +0 -30
- package/dist/runtime/types/auth.d.ts +0 -153
- package/dist/runtime/types/browser.d.ts +0 -29
- package/dist/runtime/types/d1.d.ts +0 -44
- package/dist/runtime/types/drizzle.d.ts +0 -13
- package/dist/runtime/types/durable-object.d.ts +0 -51
- package/dist/runtime/types/email.d.ts +0 -66
- package/dist/runtime/types/hyperdrive.d.ts +0 -18
- package/dist/runtime/types/index.d.ts +0 -156
- package/dist/runtime/types/queue.d.ts +0 -67
- package/dist/runtime/types/r2.d.ts +0 -108
- package/dist/runtime/types/ratelimit.d.ts +0 -21
- package/dist/runtime/types/vectorize.d.ts +0 -74
- package/dist/runtime/vectorize.d.ts +0 -21
- package/dist/types.d.ts +0 -2752
- package/dist/utils/agents.d.ts +0 -8
- package/dist/utils/auth-schema.d.ts +0 -11
- package/dist/utils/bindings.d.ts +0 -16
- package/dist/utils/cms-scan.d.ts +0 -36
- package/dist/utils/cms-schema.d.ts +0 -1
- package/dist/utils/cms-sources.d.ts +0 -67
- package/dist/utils/drizzle.d.ts +0 -42
- package/dist/utils/jobs.d.ts +0 -8
- package/dist/utils/local-db.d.ts +0 -28
- package/dist/utils/notifications-schema.d.ts +0 -15
- package/dist/utils/payments-schema.d.ts +0 -11
- package/dist/utils/pkg.d.ts +0 -15
- package/dist/utils/queue.d.ts +0 -8
- package/dist/utils/tenants-schema.d.ts +0 -11
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,
|
|
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.
|
|
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
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
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
|
);
|
|
@@ -0,0 +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>
|
package/package.json
CHANGED
package/dist/dev/env.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ensures minimal dummy Cloudflare credentials exist during local development, satisfying
|
|
3
|
-
* Cloudflare SDK client requirements without failing locally.
|
|
4
|
-
*
|
|
5
|
-
* Only appends to .env if:
|
|
6
|
-
*
|
|
7
|
-
* 1. The key is not already set in process.env (real value wins)
|
|
8
|
-
* 2. The key is not already present in the .env file
|
|
9
|
-
*
|
|
10
|
-
* Never overwrites a key that already has a real value.
|
|
11
|
-
*/
|
|
12
|
-
export declare function ensureDevEnv(rootDir: string): void;
|
package/dist/dev/wrangler.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ModuleOptions, NuxtInstance } from "../types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Resolves the canonical project/worker name using a prioritized cascade:
|
|
4
|
-
*
|
|
5
|
-
* 1. `qarpeo: { site: { name: '...' } }`
|
|
6
|
-
* 2. `qarpeo: { name: '...' }`
|
|
7
|
-
* 3. Nuxt Site Config `site: { name: '...' }`
|
|
8
|
-
* 4. `CLOUDFLARE_PROJECT_NAME` or `WRANGLER_NAME` environment variable
|
|
9
|
-
* 5. `package.json` -> `name`
|
|
10
|
-
* 6. Fallback: `"qarpeo-app"`
|
|
11
|
-
*/
|
|
12
|
-
export declare function resolveProjectName(nuxt: NuxtInstance, options?: ModuleOptions): string;
|
|
13
|
-
/**
|
|
14
|
-
* Automatically generates a temporary `.nuxt/wrangler.json` for Cloudflare dev emulation, so
|
|
15
|
-
* developers never need to manually create or maintain a `wrangler.json` file.
|
|
16
|
-
*/
|
|
17
|
-
export declare function createWranglerConfig(nuxt: NuxtInstance, options: ModuleOptions): Promise<Record<string, any>>;
|
|
18
|
-
export declare function generateDevWranglerConfig(nuxt: NuxtInstance, options: ModuleOptions): Promise<string>;
|
package/dist/module.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { NuxtModule } from "@nuxt/schema";
|
|
2
|
-
import type { ModuleOptions } from "./types";
|
|
3
|
-
export * from "./types";
|
|
4
|
-
export { checkDrizzleVersion, findSchemaFiles, scanSchemaExports } from "./utils/drizzle";
|
|
5
|
-
export { createWranglerConfig, generateDevWranglerConfig, resolveProjectName } from "./dev/wrangler";
|
|
6
|
-
export { findQueueFiles } from "./utils/queue";
|
|
7
|
-
export { findJobFiles } from "./utils/jobs";
|
|
8
|
-
export { findAgentFiles } from "./utils/agents";
|
|
9
|
-
export { generateAuthSchema, getActiveAuthTableNames } from "./utils/auth-schema";
|
|
10
|
-
export { cmsCollections, cmsEntries, cmsRevisions, ALL_CMS_TABLE_NAMES, getActiveCmsTableNames, } from "./utils/cms-schema";
|
|
11
|
-
export { generatePaymentsSchema, getActivePaymentsTableNames } from "./utils/payments-schema";
|
|
12
|
-
export { generateNotificationsSchema, getActiveNotificationsTableNames } from "./utils/notifications-schema";
|
|
13
|
-
export { scanContentEntries } from "./utils/cms-scan";
|
|
14
|
-
export { generateTenantsSchema, getActiveTenantsTableNames } from "./utils/tenants-schema";
|
|
15
|
-
export { resolveAllCmsSources, discoverSources, resolveSourcePrefix, isRemoteSource, matchesSourceFilters, matchesGlobFilter, stripOrderPrefix, extractOrderPrefix, isGroupSegment, extractGroupTitle, matchPathPatterns, resolveCollectionForPath, } from "./utils/cms-sources";
|
|
16
|
-
declare const module: NuxtModule<ModuleOptions>;
|
|
17
|
-
export default module;
|
package/dist/runtime/ai.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { AiBinding, QarpeoAI } from "./types/ai";
|
|
2
|
-
import type { CFEvent } from "./types/index";
|
|
3
|
-
import { generateImage, textToImage, generateSpeech, textToSpeech, transcribeAudio, speechToText, generateText, streamText, embedText } from "./server/utils/ai";
|
|
4
|
-
export type { AiBinding, AiOptions, QarpeoAI, GenerateImageOptions, GenerateImageResult, GenerateSpeechOptions, GenerateSpeechResult, TranscribeAudioInput, TranscribeAudioOptions, TranscribeAudioResult, StreamTextOptions, } from "./types/ai";
|
|
5
|
-
export { generateImage, textToImage, generateSpeech, textToSpeech, transcribeAudio, speechToText, generateText, streamText, embedText, };
|
|
6
|
-
/**
|
|
7
|
-
* Returns the raw Cloudflare Workers AI binding from the active environment.
|
|
8
|
-
*
|
|
9
|
-
* @param bindingName Optional Cloudflare AI binding name (defaults to 'AI')
|
|
10
|
-
* @param event Optional event context
|
|
11
|
-
*/
|
|
12
|
-
export declare function getAIBinding(bindingName?: string, event?: CFEvent): AiBinding;
|
|
13
|
-
/** Creates a typed Workers AI client for a specific binding and optional event. */
|
|
14
|
-
export declare function createAI(bindingName?: string, event?: CFEvent): QarpeoAI;
|
|
15
|
-
/**
|
|
16
|
-
* Access a typed Cloudflare Workers AI client.
|
|
17
|
-
*
|
|
18
|
-
* @param bindingName Optional Cloudflare AI binding name (defaults to 'AI')
|
|
19
|
-
* @param event Optional event context
|
|
20
|
-
*/
|
|
21
|
-
export declare const useAI: (bindingName?: string, event?: CFEvent) => QarpeoAI;
|
|
22
|
-
/** Auto-imported `ai` instance for direct Cloudflare Workers AI operations. */
|
|
23
|
-
export declare const ai: QarpeoAI;
|
|
24
|
-
export { useChat, useAgentChat } from "./app/composables/chat";
|
|
25
|
-
export type { UseChatOptions, UseAgentChatOptions } from "./app/composables/chat";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { AnalyticsEngineDataset, QarpeoAnalytics } from "./types/analytics";
|
|
2
|
-
import type { CFEvent } from "./types/index";
|
|
3
|
-
export type * from "./types/analytics";
|
|
4
|
-
/**
|
|
5
|
-
* Returns the raw Cloudflare AnalyticsEngineDataset binding from the active environment.
|
|
6
|
-
*
|
|
7
|
-
* @param bindingName Optional Cloudflare Analytics Engine binding name (defaults to 'ANALYTICS')
|
|
8
|
-
* @param event Optional event context
|
|
9
|
-
*/
|
|
10
|
-
export declare function getAnalyticsBinding(bindingName?: string, event?: CFEvent): AnalyticsEngineDataset;
|
|
11
|
-
/** Creates a typed Analytics Engine client for a specific binding and optional event. */
|
|
12
|
-
export declare function createAnalytics(bindingName?: string, event?: CFEvent): QarpeoAnalytics;
|
|
13
|
-
/**
|
|
14
|
-
* Access a typed Cloudflare Analytics Engine client.
|
|
15
|
-
*
|
|
16
|
-
* @param bindingName Optional Analytics Engine binding name (defaults to 'ANALYTICS')
|
|
17
|
-
* @param event Optional event context
|
|
18
|
-
*/
|
|
19
|
-
export declare const useAnalytics: (bindingName?: string, event?: CFEvent) => QarpeoAnalytics;
|
|
20
|
-
/**
|
|
21
|
-
* Auto-imported `analytics` instance for direct Cloudflare Analytics Engine operations. Writes are
|
|
22
|
-
* fire-and-forget — they never block a response.
|
|
23
|
-
*/
|
|
24
|
-
export declare const analytics: QarpeoAnalytics;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Composables/analytics.ts Client-side analytics dashboard composable. Fetches data from the
|
|
3
|
-
* Qarpeo analytics API routes registered by `analytics: true`.
|
|
4
|
-
* @example
|
|
5
|
-
* ;```vue
|
|
6
|
-
* <script setup>
|
|
7
|
-
* const { summary, pageviews, loading } = useAnalyticsDashboard()
|
|
8
|
-
* await fetchSummary('7d')
|
|
9
|
-
* </script>
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
import type { AnalyticsRange } from "../../../types";
|
|
13
|
-
/**
|
|
14
|
-
* Reactive analytics dashboard composable. Uses the built-in Qarpeo analytics API routes.
|
|
15
|
-
*
|
|
16
|
-
* @param basePath API prefix (default: '/api/analytics')
|
|
17
|
-
*/
|
|
18
|
-
export declare function useAnalyticsDashboard(basePath?: string): {
|
|
19
|
-
/** Whether a fetch is in flight. */
|
|
20
|
-
loading: Readonly<import("vue").Ref<boolean, boolean>>;
|
|
21
|
-
/** Last error, if any. */
|
|
22
|
-
error: Readonly<import("vue").Ref<Error | null, Error | null>>;
|
|
23
|
-
/** KPI summary data. */
|
|
24
|
-
summary: Readonly<import("vue").Ref<{
|
|
25
|
-
readonly pageviews: number;
|
|
26
|
-
readonly visitors: number;
|
|
27
|
-
readonly topPages: readonly {
|
|
28
|
-
readonly path: string;
|
|
29
|
-
readonly views: number;
|
|
30
|
-
}[];
|
|
31
|
-
readonly topReferrers: readonly {
|
|
32
|
-
readonly referrer: string;
|
|
33
|
-
readonly count: number;
|
|
34
|
-
}[];
|
|
35
|
-
readonly countries: readonly {
|
|
36
|
-
readonly country: string;
|
|
37
|
-
readonly count: number;
|
|
38
|
-
}[];
|
|
39
|
-
readonly devices: {
|
|
40
|
-
readonly mobile: number;
|
|
41
|
-
readonly desktop: number;
|
|
42
|
-
readonly bot: number;
|
|
43
|
-
};
|
|
44
|
-
} | null, {
|
|
45
|
-
readonly pageviews: number;
|
|
46
|
-
readonly visitors: number;
|
|
47
|
-
readonly topPages: readonly {
|
|
48
|
-
readonly path: string;
|
|
49
|
-
readonly views: number;
|
|
50
|
-
}[];
|
|
51
|
-
readonly topReferrers: readonly {
|
|
52
|
-
readonly referrer: string;
|
|
53
|
-
readonly count: number;
|
|
54
|
-
}[];
|
|
55
|
-
readonly countries: readonly {
|
|
56
|
-
readonly country: string;
|
|
57
|
-
readonly count: number;
|
|
58
|
-
}[];
|
|
59
|
-
readonly devices: {
|
|
60
|
-
readonly mobile: number;
|
|
61
|
-
readonly desktop: number;
|
|
62
|
-
readonly bot: number;
|
|
63
|
-
};
|
|
64
|
-
} | null>>;
|
|
65
|
-
/** Pageview time-series data. */
|
|
66
|
-
pageviews: Readonly<import("vue").Ref<{
|
|
67
|
-
readonly total: number;
|
|
68
|
-
readonly series: readonly {
|
|
69
|
-
readonly date: string;
|
|
70
|
-
readonly count: number;
|
|
71
|
-
}[];
|
|
72
|
-
} | null, {
|
|
73
|
-
readonly total: number;
|
|
74
|
-
readonly series: readonly {
|
|
75
|
-
readonly date: string;
|
|
76
|
-
readonly count: number;
|
|
77
|
-
}[];
|
|
78
|
-
} | null>>;
|
|
79
|
-
/** Custom event records. */
|
|
80
|
-
events: Readonly<import("vue").Ref<readonly {
|
|
81
|
-
readonly name: string;
|
|
82
|
-
readonly count: number;
|
|
83
|
-
readonly lastSeen: string;
|
|
84
|
-
}[], readonly {
|
|
85
|
-
readonly name: string;
|
|
86
|
-
readonly count: number;
|
|
87
|
-
readonly lastSeen: string;
|
|
88
|
-
}[]>>;
|
|
89
|
-
/** Fetch the KPI summary. */
|
|
90
|
-
fetchSummary: (range?: AnalyticsRange) => Promise<{
|
|
91
|
-
pageviews: number;
|
|
92
|
-
visitors: number;
|
|
93
|
-
topPages: {
|
|
94
|
-
path: string;
|
|
95
|
-
views: number;
|
|
96
|
-
}[];
|
|
97
|
-
topReferrers: {
|
|
98
|
-
referrer: string;
|
|
99
|
-
count: number;
|
|
100
|
-
}[];
|
|
101
|
-
countries: {
|
|
102
|
-
country: string;
|
|
103
|
-
count: number;
|
|
104
|
-
}[];
|
|
105
|
-
devices: {
|
|
106
|
-
mobile: number;
|
|
107
|
-
desktop: number;
|
|
108
|
-
bot: number;
|
|
109
|
-
};
|
|
110
|
-
} | null>;
|
|
111
|
-
/** Fetch pageview time-series. */
|
|
112
|
-
fetchPageviews: (range?: AnalyticsRange) => Promise<{
|
|
113
|
-
total: number;
|
|
114
|
-
series: {
|
|
115
|
-
date: string;
|
|
116
|
-
count: number;
|
|
117
|
-
}[];
|
|
118
|
-
} | null>;
|
|
119
|
-
/** Fetch custom events. */
|
|
120
|
-
fetchEvents: (range?: AnalyticsRange, name?: string, limit?: number) => Promise<{
|
|
121
|
-
name: string;
|
|
122
|
-
count: number;
|
|
123
|
-
lastSeen: string;
|
|
124
|
-
}[]>;
|
|
125
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export interface ApiToken {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
scopes: string[];
|
|
5
|
-
lastUsedAt: number | null;
|
|
6
|
-
expiresAt: number | null;
|
|
7
|
-
createdAt: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function useApiTokens(): {
|
|
10
|
-
tokens: import("vue").Ref<{
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
scopes: string[];
|
|
14
|
-
lastUsedAt: number | null;
|
|
15
|
-
expiresAt: number | null;
|
|
16
|
-
createdAt: number;
|
|
17
|
-
}[], ApiToken[] | {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
scopes: string[];
|
|
21
|
-
lastUsedAt: number | null;
|
|
22
|
-
expiresAt: number | null;
|
|
23
|
-
createdAt: number;
|
|
24
|
-
}[]>;
|
|
25
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
26
|
-
fetchTokens: () => Promise<{
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
scopes: string[];
|
|
30
|
-
lastUsedAt: number | null;
|
|
31
|
-
expiresAt: number | null;
|
|
32
|
-
createdAt: number;
|
|
33
|
-
}[]>;
|
|
34
|
-
createToken: (input: {
|
|
35
|
-
name: string;
|
|
36
|
-
scopes?: string[];
|
|
37
|
-
expiresInDays?: number;
|
|
38
|
-
}) => Promise<{
|
|
39
|
-
id: string;
|
|
40
|
-
token: string;
|
|
41
|
-
name: string;
|
|
42
|
-
scopes: string[];
|
|
43
|
-
expiresAt: number | null;
|
|
44
|
-
createdAt: number;
|
|
45
|
-
}>;
|
|
46
|
-
revokeToken: (tokenId: string) => Promise<{
|
|
47
|
-
success: boolean;
|
|
48
|
-
}>;
|
|
49
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { QarpeoUser, QarpeoSession, DeleteAccountOptions } from "../../types/auth";
|
|
2
|
-
export declare function useUserSession(): {
|
|
3
|
-
ready: import("vue").ComputedRef<boolean>;
|
|
4
|
-
loggedIn: import("vue").ComputedRef<boolean>;
|
|
5
|
-
user: import("vue").ComputedRef<any>;
|
|
6
|
-
session: import("vue").Ref<any, any>;
|
|
7
|
-
fetch: () => Promise<void>;
|
|
8
|
-
clear: () => Promise<void>;
|
|
9
|
-
};
|
|
10
|
-
export interface QarpeoDeviceSession {
|
|
11
|
-
id: string;
|
|
12
|
-
clientType: string;
|
|
13
|
-
userAgent: string | null;
|
|
14
|
-
ipAddress: string | null;
|
|
15
|
-
lastActive: number;
|
|
16
|
-
expiresAt: number;
|
|
17
|
-
isCurrent: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare function useAuth(): {
|
|
20
|
-
loggedIn: import("vue").ComputedRef<boolean>;
|
|
21
|
-
user: import("vue").ComputedRef<QarpeoUser | null>;
|
|
22
|
-
session: import("vue").ComputedRef<QarpeoSession | null>;
|
|
23
|
-
ready: import("vue").ComputedRef<boolean>;
|
|
24
|
-
fetch: () => Promise<void>;
|
|
25
|
-
clear: () => Promise<void>;
|
|
26
|
-
logout: (redirect?: string) => Promise<void>;
|
|
27
|
-
logoutAll: (redirect?: string) => Promise<void>;
|
|
28
|
-
mfaRequired: import("vue").ComputedRef<boolean>;
|
|
29
|
-
mfaVerified: import("vue").ComputedRef<boolean>;
|
|
30
|
-
deleteAccount: (options?: DeleteAccountOptions, redirect?: string) => Promise<void>;
|
|
31
|
-
loginWithSSO: (params: {
|
|
32
|
-
domain?: string;
|
|
33
|
-
org?: string;
|
|
34
|
-
connectionId?: string;
|
|
35
|
-
redirect?: string;
|
|
36
|
-
}) => void;
|
|
37
|
-
sessions: import("vue").Ref<{
|
|
38
|
-
id: string;
|
|
39
|
-
clientType: string;
|
|
40
|
-
userAgent: string | null;
|
|
41
|
-
ipAddress: string | null;
|
|
42
|
-
lastActive: number;
|
|
43
|
-
expiresAt: number;
|
|
44
|
-
isCurrent: boolean;
|
|
45
|
-
}[], QarpeoDeviceSession[] | {
|
|
46
|
-
id: string;
|
|
47
|
-
clientType: string;
|
|
48
|
-
userAgent: string | null;
|
|
49
|
-
ipAddress: string | null;
|
|
50
|
-
lastActive: number;
|
|
51
|
-
expiresAt: number;
|
|
52
|
-
isCurrent: boolean;
|
|
53
|
-
}[]>;
|
|
54
|
-
sessionsLoading: import("vue").Ref<boolean, boolean>;
|
|
55
|
-
fetchSessions: () => Promise<void>;
|
|
56
|
-
revokeSession: (sessionId: string) => Promise<void>;
|
|
57
|
-
revokeAllOthers: () => Promise<void>;
|
|
58
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { AgentMessage } from "../../../types";
|
|
2
|
-
export interface UseChatOptions {
|
|
3
|
-
/** Target agent name. @default "default" */
|
|
4
|
-
agent?: string;
|
|
5
|
-
/** Conversation or session instance ID. @default "default" */
|
|
6
|
-
id?: string;
|
|
7
|
-
/** Unique session identifier alias for `id`. @default "default" */
|
|
8
|
-
sessionId?: string;
|
|
9
|
-
/** Enable Server-Sent Events token streaming. @default true */
|
|
10
|
-
stream?: boolean;
|
|
11
|
-
/** Custom chat API endpoint override. Defaults to `/api/agents/${agent}/chat` */
|
|
12
|
-
api?: string;
|
|
13
|
-
/** Initial messages list */
|
|
14
|
-
initialMessages?: AgentMessage[];
|
|
15
|
-
/** Automatically fetch conversation history on mount */
|
|
16
|
-
loadHistory?: boolean;
|
|
17
|
-
/** Callback fired when a tool execution is initiated */
|
|
18
|
-
onToolCall?: (toolCall: {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
arguments: any;
|
|
22
|
-
}) => void;
|
|
23
|
-
/** Callback fired when a full message is completed */
|
|
24
|
-
onFinish?: (message: AgentMessage) => void;
|
|
25
|
-
/** Callback fired on streaming error */
|
|
26
|
-
onError?: (error: Error) => void;
|
|
27
|
-
}
|
|
28
|
-
export declare function useChat(options?: UseChatOptions): {
|
|
29
|
-
messages: import("vue").Ref<{
|
|
30
|
-
id?: string | undefined;
|
|
31
|
-
role: import("../../../types").AgentRole;
|
|
32
|
-
content: string;
|
|
33
|
-
name?: string | undefined;
|
|
34
|
-
toolCalls?: {
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
arguments: any;
|
|
38
|
-
}[] | undefined;
|
|
39
|
-
toolCallId?: string | undefined;
|
|
40
|
-
createdAt?: number | undefined;
|
|
41
|
-
}[], AgentMessage[] | {
|
|
42
|
-
id?: string | undefined;
|
|
43
|
-
role: import("../../../types").AgentRole;
|
|
44
|
-
content: string;
|
|
45
|
-
name?: string | undefined;
|
|
46
|
-
toolCalls?: {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
arguments: any;
|
|
50
|
-
}[] | undefined;
|
|
51
|
-
toolCallId?: string | undefined;
|
|
52
|
-
createdAt?: number | undefined;
|
|
53
|
-
}[]>;
|
|
54
|
-
input: import("vue").Ref<string, string>;
|
|
55
|
-
isStreaming: import("vue").Ref<boolean, boolean>;
|
|
56
|
-
sending: import("vue").Ref<boolean, boolean>;
|
|
57
|
-
error: import("vue").Ref<Error | null, Error | null>;
|
|
58
|
-
sendMessage: (contentOverride?: string) => Promise<void>;
|
|
59
|
-
send: (contentOverride?: string) => Promise<void>;
|
|
60
|
-
handleSubmit: (e?: Event) => Promise<void>;
|
|
61
|
-
clear: () => Promise<void>;
|
|
62
|
-
reload: () => Promise<void>;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Universal Vue 3 / Nuxt 5 composable for edge agent conversations with real-time SSE streaming.
|
|
66
|
-
* Alias for `useChat`.
|
|
67
|
-
*/
|
|
68
|
-
export declare const useAgentChat: typeof useChat;
|
|
69
|
-
export type UseAgentChatOptions = UseChatOptions;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { CMSPreviewState } from "../../../types";
|
|
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.
|
|
6
|
-
*/
|
|
7
|
-
export declare function useCMSPreview(): {
|
|
8
|
-
isPreview: {
|
|
9
|
-
value: boolean;
|
|
10
|
-
};
|
|
11
|
-
token: {
|
|
12
|
-
value: string | null;
|
|
13
|
-
};
|
|
14
|
-
expires: {
|
|
15
|
-
value: string | null;
|
|
16
|
-
};
|
|
17
|
-
collection: {
|
|
18
|
-
value: string | null;
|
|
19
|
-
};
|
|
20
|
-
slug: {
|
|
21
|
-
value: string | null;
|
|
22
|
-
};
|
|
23
|
-
state: {
|
|
24
|
-
value: CMSPreviewState;
|
|
25
|
-
};
|
|
26
|
-
enable: (options?: {
|
|
27
|
-
token?: string;
|
|
28
|
-
expires?: number | string;
|
|
29
|
-
collection?: string;
|
|
30
|
-
slug?: string;
|
|
31
|
-
}) => void;
|
|
32
|
-
disable: () => any;
|
|
33
|
-
};
|