qarpeo 0.4.13 → 0.4.14
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/README.md +12 -6
- package/dist/apps/cms.d.ts +1 -1
- package/dist/apps/comments.d.ts +1 -1
- package/dist/apps/payments.d.ts +1 -1
- package/dist/apps/store.d.ts +1 -1
- package/dist/chunks/{manifest.get.mjs → tools.mjs} +445 -430
- package/dist/cli/index.mjs +756 -746
- package/dist/core/aliases.d.ts +1 -1
- package/dist/core/context.d.ts +1 -1
- package/dist/core/d1-migrate.d.ts +1 -1
- package/dist/core/devtools.d.ts +1 -1
- package/dist/core/nitro.d.ts +1 -1
- package/dist/core/schema.d.ts +1 -1
- package/dist/core/server-utils.d.ts +1 -1
- package/dist/core/wrangler.d.ts +1 -1
- package/dist/fate/index.d.ts +8 -8
- package/dist/fate/index.mjs +3 -1
- package/dist/features/agents.d.ts +1 -1
- package/dist/features/auth.d.ts +1 -1
- package/dist/features/bots.d.ts +1 -1
- package/dist/features/console.d.ts +1 -1
- package/dist/features/fate.d.ts +1 -1
- package/dist/features/mail.d.ts +1 -1
- package/dist/features/mcp.d.ts +1 -1
- package/dist/features/multitenant.d.ts +1 -1
- package/dist/features/notifications.d.ts +1 -1
- package/dist/features/realtime.d.ts +1 -1
- package/dist/features/studio.d.ts +4 -0
- package/dist/module.d.ts +1 -1
- package/dist/module.mjs +5139 -5067
- package/dist/primitives/ai.d.ts +1 -1
- package/dist/primitives/analytics.d.ts +1 -1
- package/dist/primitives/blob.d.ts +1 -1
- package/dist/primitives/browser.d.ts +1 -1
- package/dist/primitives/cache.d.ts +1 -1
- package/dist/primitives/d1.d.ts +1 -1
- package/dist/primitives/do.d.ts +1 -1
- package/dist/primitives/email.d.ts +1 -1
- package/dist/primitives/hyperdrive.d.ts +1 -1
- package/dist/primitives/kv.d.ts +1 -1
- package/dist/primitives/queue.d.ts +1 -1
- package/dist/primitives/ratelimit.d.ts +1 -1
- package/dist/primitives/vectorize.d.ts +1 -1
- package/dist/primitives/workflows.d.ts +1 -1
- package/dist/runtime/ai.mjs +4 -1
- package/dist/runtime/app/components/CMSEditor.vue +439 -0
- package/dist/runtime/app/components/CMSEditorImageNode.vue +90 -0
- package/dist/runtime/app/components/CMSEditorLinkPopover.vue +120 -0
- package/dist/runtime/app/components/QDropZone.vue +327 -0
- package/dist/runtime/app/components/QImageCropper.vue +658 -0
- package/dist/runtime/app/components/QImageStudio.vue +300 -0
- package/dist/runtime/app/components/QImg.vue +7 -4
- package/dist/runtime/app/composables/analytics.d.ts +8 -8
- package/dist/runtime/app/composables/api-tokens.d.ts +5 -5
- package/dist/runtime/app/composables/auth.d.ts +23 -19
- package/dist/runtime/app/composables/chat.d.ts +7 -6
- package/dist/runtime/app/composables/cms-preview.d.ts +7 -8
- package/dist/runtime/app/composables/cms.d.ts +6 -6
- package/dist/runtime/app/composables/comments.d.ts +5 -5
- package/dist/runtime/app/composables/comments.mjs +7 -4
- package/dist/runtime/app/composables/console.d.ts +6 -14
- package/dist/runtime/app/composables/docs-version.d.ts +8 -8
- package/dist/runtime/app/composables/impersonation.d.ts +5 -5
- package/dist/runtime/app/composables/organization.d.ts +5 -5
- package/dist/runtime/app/composables/passkey.d.ts +5 -5
- package/dist/runtime/app/composables/passwordless.d.ts +5 -5
- package/dist/runtime/app/composables/payments.d.ts +5 -5
- package/dist/runtime/app/composables/rbac.d.ts +5 -5
- package/dist/runtime/app/composables/site.d.ts +2 -2
- package/dist/runtime/app/composables/sse.d.ts +20 -33
- package/dist/runtime/app/composables/sse.mjs +6 -3
- package/dist/runtime/app/composables/storage.d.ts +6 -8
- package/dist/runtime/app/composables/store.d.ts +37 -36
- package/dist/runtime/app/composables/store.mjs +7 -6
- package/dist/runtime/app/composables/studio.d.ts +59 -0
- package/dist/runtime/app/composables/studio.mjs +129 -0
- package/dist/runtime/app/composables/tenant.d.ts +7 -7
- package/dist/runtime/app/composables/turnstile.d.ts +5 -5
- package/dist/runtime/app/composables/two-factor.d.ts +5 -5
- package/dist/runtime/app/pages/devtools/notifications.vue +1 -6
- package/dist/runtime/app/plugins/pwa.mjs +1 -3
- package/dist/runtime/app/utils/cms-editor.d.ts +25 -0
- package/dist/runtime/app/utils/cms-editor.mjs +43 -0
- package/dist/runtime/auth.d.ts +9 -9
- package/dist/runtime/blob.d.ts +1 -3
- package/dist/runtime/blob.mjs +3 -1
- package/dist/runtime/cache.d.ts +8 -6
- package/dist/runtime/cache.mjs +8 -11
- package/dist/runtime/db.d.ts +4 -3
- package/dist/runtime/drizzle.d.ts +2 -1
- package/dist/runtime/drizzle.mjs +2 -2
- package/dist/runtime/queue.d.ts +1 -0
- package/dist/runtime/replica.d.ts +6 -10
- package/dist/runtime/replica.mjs +3 -1
- package/dist/runtime/schema-mysql.d.ts +16 -32
- package/dist/runtime/schema-pg.d.ts +15 -31
- package/dist/runtime/schema-shared.d.ts +20 -17
- package/dist/runtime/schema.d.ts +21 -33
- package/dist/runtime/server/durable-objects/agent.mjs +4 -1
- package/dist/runtime/server/durable-objects/room.d.ts +4 -6
- package/dist/runtime/server/durable-objects/room.mjs +18 -8
- package/dist/runtime/server/plugins/comments.d.ts +2 -3
- package/dist/runtime/server/plugins/email-inbound.d.ts +1 -3
- package/dist/runtime/server/plugins/store.d.ts +2 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/agents/run.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/cms/entry.get.mjs +10 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/cms/entry.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/cms/entry.post.mjs +10 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/cms.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/cms.get.mjs +7 -1
- package/dist/runtime/server/routes/__qarpeo/cloud/comments/moderate.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/comments/moderate.post.mjs +5 -1
- package/dist/runtime/server/routes/__qarpeo/cloud/comments.get.d.ts +1 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/extras.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/extras.get.mjs +15 -4
- package/dist/runtime/server/routes/__qarpeo/cloud/mail/unsuppress.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/migrate/cms.post.mjs +13 -4
- package/dist/runtime/server/routes/__qarpeo/cloud/migrate/products.post.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/cloud/migrate.post.d.ts +3 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/migrate.post.mjs +22 -6
- package/dist/runtime/server/routes/__qarpeo/cloud/notifications/test.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/operations.get.d.ts +6 -5
- package/dist/runtime/server/routes/__qarpeo/cloud/store/order-status.post.d.ts +1 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/store/order-status.post.mjs +14 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/store/orders.get.d.ts +1 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/store/orders.get.mjs +7 -1
- package/dist/runtime/server/routes/__qarpeo/cloud/store/products.get.d.ts +1 -3
- package/dist/runtime/server/routes/__qarpeo/cloud/tasks/run.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/users/action.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/cloud/users/action.post.mjs +5 -1
- package/dist/runtime/server/routes/__qarpeo/cloud/users.get.d.ts +6 -5
- package/dist/runtime/server/routes/__qarpeo/cloud/users.get.mjs +1 -3
- package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.mjs +2 -2
- package/dist/runtime/server/routes/__qarpeo/manifest.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/og.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/rbac/me.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.delete.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.delete.mjs +5 -1
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.get.mjs +1 -5
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/rbac/roles.post.mjs +5 -1
- package/dist/runtime/server/routes/__qarpeo/rbac/users.post.d.ts +2 -2
- package/dist/runtime/server/routes/agents/[agent]/chat.post.mjs +1 -6
- package/dist/runtime/server/routes/agents/[agent]/clear.post.mjs +1 -6
- package/dist/runtime/server/routes/agents/[agent]/history.get.mjs +1 -6
- package/dist/runtime/server/routes/auth/2fa/disable.post.mjs +5 -1
- package/dist/runtime/server/routes/auth/2fa/verify.post.mjs +7 -1
- package/dist/runtime/server/routes/auth/magic-link/send.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/otp/send.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/search.get.mjs +2 -6
- package/dist/runtime/server/routes/comments/[id]/report.post.mjs +1 -4
- package/dist/runtime/server/routes/comments/[id].patch.mjs +1 -4
- package/dist/runtime/server/routes/comments/batch.post.mjs +1 -3
- package/dist/runtime/server/routes/comments/index.post.mjs +1 -5
- package/dist/runtime/server/routes/fate.mjs +1 -1
- package/dist/runtime/server/routes/mail/webhooks.post.mjs +1 -1
- package/dist/runtime/server/routes/sitemap.xml.get.mjs +2 -1
- package/dist/runtime/server/routes/storage/presigned-r2.post.d.ts +5 -6
- package/dist/runtime/server/routes/storage/presigned-r2.post.mjs +1 -1
- package/dist/runtime/server/routes/store/cart/items/[id].delete.mjs +1 -1
- package/dist/runtime/server/routes/store/cart/items/[id].patch.mjs +1 -1
- package/dist/runtime/server/routes/store/currencies.get.mjs +1 -4
- package/dist/runtime/server/routes/store/orders/[id].get.mjs +1 -1
- package/dist/runtime/server/routes/store/orders/download/[token].get.mjs +13 -4
- package/dist/runtime/server/routes/store/orders/index.get.mjs +1 -1
- package/dist/runtime/server/routes/store/tax/calculate.post.d.ts +2 -1
- package/dist/runtime/server/routes/store/tax/calculate.post.mjs +12 -3
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.mjs +4 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.mjs +4 -1
- package/dist/runtime/server/utils/ai.d.ts +38 -35
- package/dist/runtime/server/utils/ai.mjs +7 -11
- package/dist/runtime/server/utils/analytics-query.d.ts +4 -4
- package/dist/runtime/server/utils/auth.d.ts +25 -25
- package/dist/runtime/server/utils/auth.mjs +22 -8
- package/dist/runtime/server/utils/bots.d.ts +7 -7
- package/dist/runtime/server/utils/browser-utils.d.ts +26 -27
- package/dist/runtime/server/utils/cache.d.ts +20 -20
- package/dist/runtime/server/utils/cms/collections.mjs +1 -6
- package/dist/runtime/server/utils/cms/common.mjs +1 -0
- package/dist/runtime/server/utils/cms/markdown.d.ts +2 -2
- package/dist/runtime/server/utils/cms/markdown.mjs +5 -5
- package/dist/runtime/server/utils/cms/mutations.mjs +8 -23
- package/dist/runtime/server/utils/cms/navigation.mjs +4 -4
- package/dist/runtime/server/utils/cms/path.d.ts +1 -0
- package/dist/runtime/server/utils/cms/path.mjs +8 -2
- package/dist/runtime/server/utils/cms/references.mjs +1 -7
- package/dist/runtime/server/utils/cms/search.d.ts +2 -2
- package/dist/runtime/server/utils/cms/sync.mjs +4 -2
- package/dist/runtime/server/utils/cms/taxonomy.d.ts +2 -2
- package/dist/runtime/server/utils/cms.d.ts +1 -1
- package/dist/runtime/server/utils/cms.mjs +1 -5
- package/dist/runtime/server/utils/comments-filter.d.ts +9 -7
- package/dist/runtime/server/utils/comments.d.ts +68 -55
- package/dist/runtime/server/utils/comments.mjs +21 -9
- package/dist/runtime/server/utils/config.d.ts +2 -2
- package/dist/runtime/server/utils/console.d.ts +3 -5
- package/dist/runtime/server/utils/context.d.ts +10 -10
- package/dist/runtime/server/utils/crypto.d.ts +20 -20
- package/dist/runtime/server/utils/domains.mjs +3 -1
- package/dist/runtime/server/utils/drizzle.d.ts +24 -25
- package/dist/runtime/server/utils/drizzle.mjs +17 -17
- package/dist/runtime/server/utils/durable-object.d.ts +27 -25
- package/dist/runtime/server/utils/durable-object.mjs +3 -10
- package/dist/runtime/server/utils/email-inbound.d.ts +10 -10
- package/dist/runtime/server/utils/impersonation.d.ts +18 -18
- package/dist/runtime/server/utils/legacy-hash.d.ts +23 -27
- package/dist/runtime/server/utils/lock.d.ts +20 -23
- package/dist/runtime/server/utils/mail.d.ts +19 -19
- package/dist/runtime/server/utils/mail.mjs +4 -2
- package/dist/runtime/server/utils/mcp.d.ts +20 -20
- package/dist/runtime/server/utils/mcp.mjs +22 -38
- package/dist/runtime/server/utils/notifications.d.ts +49 -38
- package/dist/runtime/server/utils/oauth.d.ts +3 -9
- package/dist/runtime/server/utils/organization.d.ts +28 -28
- package/dist/runtime/server/utils/organization.mjs +15 -5
- package/dist/runtime/server/utils/passwordless.d.ts +24 -24
- package/dist/runtime/server/utils/payments/checkout.d.ts +12 -12
- package/dist/runtime/server/utils/payments/checkout.mjs +1 -3
- package/dist/runtime/server/utils/payments/common.d.ts +3 -3
- package/dist/runtime/server/utils/payments/paddle.d.ts +4 -1
- package/dist/runtime/server/utils/payments/polar.d.ts +4 -1
- package/dist/runtime/server/utils/payments/stripe.mjs +5 -7
- package/dist/runtime/server/utils/payments/subscriptions.d.ts +14 -14
- package/dist/runtime/server/utils/payments/subscriptions.mjs +2 -6
- package/dist/runtime/server/utils/payments/usage.mjs +1 -3
- package/dist/runtime/server/utils/payments/webhooks.mjs +2 -2
- package/dist/runtime/server/utils/queue.d.ts +54 -58
- package/dist/runtime/server/utils/queue.mjs +2 -6
- package/dist/runtime/server/utils/rag.d.ts +23 -23
- package/dist/runtime/server/utils/rag.mjs +10 -5
- package/dist/runtime/server/utils/ratelimit.d.ts +21 -18
- package/dist/runtime/server/utils/rbac.d.ts +13 -15
- package/dist/runtime/server/utils/rbac.mjs +44 -10
- package/dist/runtime/server/utils/realtime.d.ts +53 -52
- package/dist/runtime/server/utils/role-env.d.ts +5 -4
- package/dist/runtime/server/utils/scheduled-task.d.ts +14 -15
- package/dist/runtime/server/utils/session.d.ts +40 -40
- package/dist/runtime/server/utils/sse.d.ts +23 -33
- package/dist/runtime/server/utils/sse.mjs +5 -14
- package/dist/runtime/server/utils/sso.mjs +3 -1
- package/dist/runtime/server/utils/storage.d.ts +20 -22
- package/dist/runtime/server/utils/storage.mjs +2 -2
- package/dist/runtime/server/utils/store/cart.d.ts +5 -3
- package/dist/runtime/server/utils/store/cart.mjs +14 -10
- package/dist/runtime/server/utils/store/checkout.mjs +4 -1
- package/dist/runtime/server/utils/store/common.d.ts +1 -1
- package/dist/runtime/server/utils/store/common.mjs +36 -12
- package/dist/runtime/server/utils/store/inventory.mjs +3 -1
- package/dist/runtime/server/utils/store/orders.mjs +32 -24
- package/dist/runtime/server/utils/store-localization.d.ts +9 -27
- package/dist/runtime/server/utils/store-localization.mjs +3 -3
- package/dist/runtime/server/utils/table-names.d.ts +15 -15
- package/dist/runtime/server/utils/table-names.mjs +1 -1
- package/dist/runtime/server/utils/tenant.d.ts +12 -12
- package/dist/runtime/server/utils/tenant.mjs +7 -4
- package/dist/runtime/server/utils/totp.d.ts +18 -18
- package/dist/runtime/server/utils/tracker.d.ts +5 -5
- package/dist/runtime/server/utils/turnstile.d.ts +9 -9
- package/dist/runtime/server/utils/urn.d.ts +5 -8
- package/dist/runtime/server/utils/workflows.d.ts +30 -31
- package/dist/runtime/server/utils/workflows.mjs +2 -4
- package/dist/runtime/server.d.ts +2 -2
- package/dist/runtime/service.d.ts +10 -10
- package/dist/runtime/test-utils.d.ts +10 -10
- package/dist/runtime/test-utils.mjs +9 -2
- package/dist/runtime/types/ai.d.ts +14 -14
- package/dist/runtime/types/d1.d.ts +6 -11
- package/dist/runtime/types/durable-object.d.ts +4 -8
- package/dist/runtime/types/email.d.ts +3 -9
- package/dist/runtime/types/index.d.ts +15 -21
- package/dist/runtime/types/r2.d.ts +5 -5
- package/dist/runtime/types/workflows.d.ts +5 -6
- package/dist/runtime/workflows.d.ts +1 -3
- package/dist/types/ai.d.ts +10 -17
- package/dist/types/auth.d.ts +5 -3
- package/dist/types/cache.d.ts +7 -7
- package/dist/types/cms.d.ts +30 -5
- package/dist/types/comments.d.ts +23 -21
- package/dist/types/console.d.ts +1 -3
- package/dist/types/db.d.ts +7 -7
- package/dist/types/index.d.ts +1 -0
- package/dist/types/options.d.ts +36 -24
- package/dist/types/site.d.ts +8 -2
- package/dist/types/storage.d.ts +2 -1
- package/dist/types/store-options.d.ts +10 -26
- package/dist/types/studio.d.ts +79 -0
- package/dist/utils/bots.d.ts +7 -3
- package/dist/utils/cms-table-names.d.ts +1 -1
- package/dist/utils/drizzle.d.ts +13 -14
- package/dist/utils/email-inbound.d.ts +4 -4
- package/dist/utils/features.d.ts +19 -5
- package/dist/utils/mcp.d.ts +1 -0
- package/dist/utils/migration-lock.d.ts +15 -29
- package/dist/utils/pkg.d.ts +6 -7
- package/dist/utils/schema-diff.d.ts +7 -11
- package/dist/utils/store-schema.d.ts +4 -6
- package/dist/utils/tools.d.ts +3 -3
- package/package.json +55 -5
package/dist/utils/features.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Nuxt } from "@nuxt/schema";
|
|
2
1
|
import type { useLogger } from "@nuxt/kit";
|
|
2
|
+
import type { Nuxt } from "@nuxt/schema";
|
|
3
3
|
import type { QarpeoOptions } from "../types";
|
|
4
4
|
export interface FeatureDefinition {
|
|
5
5
|
description: string;
|
|
@@ -7,8 +7,8 @@ export interface FeatureDefinition {
|
|
|
7
7
|
devDependencies?: Record<string, string>;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Pinned package versions tested and supported by this release of qarpeo.
|
|
11
|
-
*
|
|
10
|
+
* Pinned package versions tested and supported by this release of qarpeo. Used by `qp add
|
|
11
|
+
* <feature>` so users get exact compatible versions in their package.json.
|
|
12
12
|
*/
|
|
13
13
|
export declare const FEATURE_DEPS: {
|
|
14
14
|
readonly cms: {
|
|
@@ -24,6 +24,20 @@ export declare const FEATURE_DEPS: {
|
|
|
24
24
|
readonly shiki: "4.6.0";
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
readonly editor: {
|
|
28
|
+
readonly description: "CMS rich-text editor (@tiptap/vue-3, @tiptap/starter-kit, tables, text-align)";
|
|
29
|
+
readonly dependencies: {
|
|
30
|
+
readonly "@tiptap/core": "3.35.1";
|
|
31
|
+
readonly "@tiptap/pm": "3.35.1";
|
|
32
|
+
readonly "@tiptap/starter-kit": "3.35.1";
|
|
33
|
+
readonly "@tiptap/vue-3": "3.35.1";
|
|
34
|
+
readonly "@tiptap/extension-text-align": "3.35.1";
|
|
35
|
+
readonly "@tiptap/extension-table": "3.35.1";
|
|
36
|
+
readonly "@tiptap/extension-table-row": "3.35.1";
|
|
37
|
+
readonly "@tiptap/extension-table-header": "3.35.1";
|
|
38
|
+
readonly "@tiptap/extension-table-cell": "3.35.1";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
27
41
|
readonly drizzle: {
|
|
28
42
|
readonly description: "Drizzle ORM, Drizzle Kit, and Drizzle Seed";
|
|
29
43
|
readonly dependencies: {
|
|
@@ -76,8 +90,8 @@ export interface ResolvedInstallSpecs {
|
|
|
76
90
|
/** Returns all supported feature names for `qp add`. */
|
|
77
91
|
export declare function getFeatureNames(): FeatureName[];
|
|
78
92
|
/**
|
|
79
|
-
* Resolves a feature name (e.g. `cms`) or a known pinned package name (e.g. `drizzle-orm`)
|
|
80
|
-
*
|
|
93
|
+
* Resolves a feature name (e.g. `cms`) or a known pinned package name (e.g. `drizzle-orm`) into
|
|
94
|
+
* exact `pkg@version` install specs. Returns `null` if unknown.
|
|
81
95
|
*/
|
|
82
96
|
export declare function resolveFeatureInstall(target: string): ResolvedInstallSpecs | null;
|
|
83
97
|
/**
|
package/dist/utils/mcp.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export interface McpDiscoveryOptions {
|
|
|
17
17
|
* Searches across all Nuxt layers for Model Context Protocol (MCP) server definition files.
|
|
18
18
|
*
|
|
19
19
|
* Supported conventions:
|
|
20
|
+
*
|
|
20
21
|
* - `server/mcp.ts` -> `/mcp`
|
|
21
22
|
* - `server/mcp/index.ts` -> `/mcp`
|
|
22
23
|
* - `server/mcp/<name>.ts` -> `/mcp/<name>`
|
|
@@ -57,31 +57,25 @@ export interface HeartbeatHandle {
|
|
|
57
57
|
stop: () => void;
|
|
58
58
|
isAlive: () => boolean;
|
|
59
59
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Injects a custom remote D1 executor (used for test isolation or custom environments).
|
|
62
|
-
*/
|
|
60
|
+
/** Injects a custom remote D1 executor (used for test isolation or custom environments). */
|
|
63
61
|
export declare function setRemoteD1Executor(executor: RemoteD1Executor | null): void;
|
|
64
62
|
export declare function getActiveRemoteExecutor(): RemoteD1Executor;
|
|
65
63
|
/**
|
|
66
|
-
* Parses duration strings into milliseconds (e.g. "10m", "300s", "1h", 60000).
|
|
67
|
-
*
|
|
64
|
+
* Parses duration strings into milliseconds (e.g. "10m", "300s", "1h", 60000). Defaults to 10
|
|
65
|
+
* minutes (600,000ms). Minimum clamped to 1,000ms.
|
|
68
66
|
*/
|
|
69
67
|
export declare function parseLockDuration(duration?: string | number): number;
|
|
70
68
|
/** Escapes single quotes for SQLite string literals. */
|
|
71
69
|
export declare function escapeSql(str: string): string;
|
|
72
70
|
/** Extracts and parses JSON payload from wrangler stdout. */
|
|
73
71
|
export declare function parseWranglerJson(stdout: string): any;
|
|
74
|
-
/**
|
|
75
|
-
* Default remote D1 executor using Cloudflare Wrangler CLI.
|
|
76
|
-
*/
|
|
72
|
+
/** Default remote D1 executor using Cloudflare Wrangler CLI. */
|
|
77
73
|
export declare function defaultRemoteD1Executor(dbName: string, sql: string, options?: {
|
|
78
74
|
cwd?: string;
|
|
79
75
|
wranglerConfigPath?: string | null;
|
|
80
76
|
execPath?: string;
|
|
81
77
|
}): Promise<RemoteD1ExecuteResult>;
|
|
82
|
-
/**
|
|
83
|
-
* Renews an active migration lock lease (heartbeat renewal).
|
|
84
|
-
*/
|
|
78
|
+
/** Renews an active migration lock lease (heartbeat renewal). */
|
|
85
79
|
export declare function renewMigrationLock(dbName: string, token: string, options?: {
|
|
86
80
|
cwd?: string;
|
|
87
81
|
remote?: boolean;
|
|
@@ -90,9 +84,7 @@ export declare function renewMigrationLock(dbName: string, token: string, option
|
|
|
90
84
|
execPath?: string;
|
|
91
85
|
remoteExecutor?: RemoteD1Executor;
|
|
92
86
|
}): Promise<boolean>;
|
|
93
|
-
/**
|
|
94
|
-
* Starts a background heartbeat timer that periodically renews the migration lock.
|
|
95
|
-
*/
|
|
87
|
+
/** Starts a background heartbeat timer that periodically renews the migration lock. */
|
|
96
88
|
export declare function startMigrationHeartbeat(dbName: string, token: string, options?: {
|
|
97
89
|
cwd?: string;
|
|
98
90
|
remote?: boolean;
|
|
@@ -105,27 +97,23 @@ export declare function startMigrationHeartbeat(dbName: string, token: string, o
|
|
|
105
97
|
}): HeartbeatHandle;
|
|
106
98
|
export declare function stopActiveHeartbeat(token: string): void;
|
|
107
99
|
/**
|
|
108
|
-
* Attempts to acquire a distributed migration lock for a database.
|
|
109
|
-
*
|
|
100
|
+
* Attempts to acquire a distributed migration lock for a database. Supports both local file-based
|
|
101
|
+
* locking and true remote atomic D1 locking.
|
|
110
102
|
*/
|
|
111
103
|
export declare function acquireMigrationLock(dbName: string, options?: AcquireMigrationLockOptions): Promise<MigrationLockResult>;
|
|
112
|
-
/**
|
|
113
|
-
* Releases a migration lock for a database using the acquired token.
|
|
114
|
-
*/
|
|
104
|
+
/** Releases a migration lock for a database using the acquired token. */
|
|
115
105
|
export declare function releaseMigrationLock(dbName: string, token: string, options?: ReleaseMigrationLockOptions): Promise<boolean>;
|
|
116
106
|
/**
|
|
117
|
-
* Force releases any active migration lock for a database.
|
|
118
|
-
*
|
|
107
|
+
* Force releases any active migration lock for a database. Returns detailed ForceUnlockResult with
|
|
108
|
+
* liveness diagnostics.
|
|
119
109
|
*/
|
|
120
110
|
export declare function safeForceUnlockMigration(dbName: string, options?: ForceUnlockOptions): Promise<ForceUnlockResult>;
|
|
121
111
|
/**
|
|
122
|
-
* Force releases any active migration lock for a database.
|
|
123
|
-
*
|
|
112
|
+
* Force releases any active migration lock for a database. Returns boolean for direct backward
|
|
113
|
+
* compatibility.
|
|
124
114
|
*/
|
|
125
115
|
export declare function forceUnlockMigration(dbName: string, options?: ForceUnlockOptions): Promise<boolean>;
|
|
126
|
-
/**
|
|
127
|
-
* Returns current lock status for a database, or `null` if unlocked.
|
|
128
|
-
*/
|
|
116
|
+
/** Returns current lock status for a database, or `null` if unlocked. */
|
|
129
117
|
export declare function getMigrationLockStatus(dbName: string, options?: {
|
|
130
118
|
cwd?: string;
|
|
131
119
|
remote?: boolean;
|
|
@@ -133,7 +121,5 @@ export declare function getMigrationLockStatus(dbName: string, options?: {
|
|
|
133
121
|
execPath?: string;
|
|
134
122
|
remoteExecutor?: RemoteD1Executor;
|
|
135
123
|
}): Promise<MigrationLockInfo | null>;
|
|
136
|
-
/**
|
|
137
|
-
* Clears all in-memory migration locks and active heartbeats (used during test teardown).
|
|
138
|
-
*/
|
|
124
|
+
/** Clears all in-memory migration locks and active heartbeats (used during test teardown). */
|
|
139
125
|
export declare function clearMigrationLockStore(): void;
|
package/dist/utils/pkg.d.ts
CHANGED
|
@@ -5,7 +5,10 @@ import { type SpawnSyncOptions, type SpawnSyncReturns } from "node:child_process
|
|
|
5
5
|
* so they can still run without a shell.
|
|
6
6
|
*/
|
|
7
7
|
export declare function spawnBinSync(bin: string, args: string[], options?: Omit<SpawnSyncOptions, "shell">): SpawnSyncReturns<any>;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Checks if a package is installed in the target project directory (or optionally bundled by
|
|
10
|
+
* qarpeo).
|
|
11
|
+
*/
|
|
9
12
|
export declare function isPackageInstalled(packageName: string, cwd?: string, options?: {
|
|
10
13
|
localOnly?: boolean;
|
|
11
14
|
}): boolean;
|
|
@@ -13,16 +16,12 @@ export declare function isPackageInstalled(packageName: string, cwd?: string, op
|
|
|
13
16
|
export declare function resolveBinaryPath(binName: string, cwd?: string): string | null;
|
|
14
17
|
/** Prompts the user interactively in the terminal to confirm package installation. */
|
|
15
18
|
export declare function confirmInstall(packageName: string, purpose: string): Promise<boolean>;
|
|
16
|
-
/**
|
|
17
|
-
* Formats a package-manager-appropriate `add` command for the project at `cwd` using `nypm`.
|
|
18
|
-
*/
|
|
19
|
+
/** Formats a package-manager-appropriate `add` command for the project at `cwd` using `nypm`. */
|
|
19
20
|
export declare function formatAddCommand(packageName: string, options?: {
|
|
20
21
|
cwd?: string;
|
|
21
22
|
dev?: boolean;
|
|
22
23
|
}): Promise<string>;
|
|
23
|
-
/**
|
|
24
|
-
* Formats a package-manager-appropriate `dlx`/`npx` command for the project at `cwd` using `nypm`.
|
|
25
|
-
*/
|
|
24
|
+
/** Formats a package-manager-appropriate `dlx`/`npx` command for the project at `cwd` using `nypm`. */
|
|
26
25
|
export declare function formatDlxCommand(command: string, args?: string[], options?: {
|
|
27
26
|
cwd?: string;
|
|
28
27
|
}): Promise<string>;
|
|
@@ -14,23 +14,19 @@ export interface SchemaDiffResult {
|
|
|
14
14
|
summary: string;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Extracts table names from schema files, preferring explicit table name arguments
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* Extracts table names from schema files, preferring explicit table name arguments in
|
|
18
|
+
* `sqliteTable("table_name", ...)` / `pgTable("table_name", ...)` and falling back to the exported
|
|
19
|
+
* variable name only when no explicit string name is present.
|
|
20
20
|
*/
|
|
21
21
|
export declare function extractSchemaTableNames(schemaFiles: string[]): string[];
|
|
22
22
|
/**
|
|
23
|
-
* Computes all expected table names for a given discovered database,
|
|
24
|
-
*
|
|
23
|
+
* Computes all expected table names for a given discovered database, incorporating both custom user
|
|
24
|
+
* schemas and enabled built-in module tables.
|
|
25
25
|
*/
|
|
26
26
|
export declare function getExpectedTableNames(db: DiscoveredDatabase, qarpeoConfig?: Record<string, any>): string[];
|
|
27
|
-
/**
|
|
28
|
-
* Inspects a local SQLite database file to retrieve all physical user table names.
|
|
29
|
-
*/
|
|
27
|
+
/** Inspects a local SQLite database file to retrieve all physical user table names. */
|
|
30
28
|
export declare function getActualTableNames(sqlitePath: string): Promise<string[]>;
|
|
31
|
-
/**
|
|
32
|
-
* Compares expected tables against physical tables in the database to detect schema drift.
|
|
33
|
-
*/
|
|
29
|
+
/** Compares expected tables against physical tables in the database to detect schema drift. */
|
|
34
30
|
export declare function computeSchemaDiff(options: {
|
|
35
31
|
database: DiscoveredDatabase;
|
|
36
32
|
sqlitePath?: string | null;
|
|
@@ -3,12 +3,10 @@ import { type TableResolveOptions } from "./table-names";
|
|
|
3
3
|
export declare const ALL_STORE_TABLE_NAMES: readonly ["store_product", "store_product_variant", "store_inventory", "store_category", "store_cart", "store_cart_item", "store_order", "store_order_item", "store_discount", "store_customer_address"];
|
|
4
4
|
export declare function getActiveStoreTableNames(store?: boolean | StoreOptions, prefixOrOptions?: boolean | string | TableResolveOptions): string[];
|
|
5
5
|
/**
|
|
6
|
-
* Generates the Drizzle ORM schema string for the Qarpeo Store App.
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Generates the Drizzle ORM schema string for the Qarpeo Store App. Uses `snakeCase.table` from
|
|
7
|
+
* drizzle-orm/sqlite-core so camelCase property names map to snake_case column names
|
|
8
|
+
* automatically.
|
|
9
9
|
*/
|
|
10
10
|
export declare function generateStoreSchema(store?: boolean | StoreOptions, prefixOrOptions?: boolean | string | TableResolveOptions): string;
|
|
11
|
-
/**
|
|
12
|
-
* Generates raw SQLite DDL statements for initializing Store tables and indexes in Cloudflare D1.
|
|
13
|
-
*/
|
|
11
|
+
/** Generates raw SQLite DDL statements for initializing Store tables and indexes in Cloudflare D1. */
|
|
14
12
|
export declare function generateStoreDDL(store?: boolean | StoreOptions, prefixOrOptions?: boolean | string | TableResolveOptions): string;
|
package/dist/utils/tools.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export interface DiscoveredTool {
|
|
|
8
8
|
importPath: string;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Searches across all Nuxt layers for tool definition files inside `server/tools/`.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Searches across all Nuxt layers for tool definition files inside `server/tools/`. Each `.ts` /
|
|
12
|
+
* `.js` / `.mjs` file should export one or more `defineTool(...)` calls as named exports. All named
|
|
13
|
+
* exports are automatically registered in the global tool registry.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* // server/tools/search.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qarpeo",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.14",
|
|
4
4
|
"description": "Zero-config Cloudflare Edge Platform for Nuxt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"analytics-engine",
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
"access": "public"
|
|
141
141
|
},
|
|
142
142
|
"dependencies": {
|
|
143
|
-
"@nuxt/devtools-kit": "^4.2.
|
|
144
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@^5.0.0-
|
|
143
|
+
"@nuxt/devtools-kit": "^4.2.2",
|
|
144
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@^5.0.0-2611251439-b19192b",
|
|
145
145
|
"citty": "^0.2.2",
|
|
146
146
|
"defu": "^6.1.7",
|
|
147
147
|
"giget": "^3.3.1",
|
|
@@ -155,8 +155,18 @@
|
|
|
155
155
|
"@cloudflare/puppeteer": "1.4.0",
|
|
156
156
|
"@comark/vue": "0.9.1",
|
|
157
157
|
"@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-2611041456-7ae6258",
|
|
158
|
+
"@nuxt/ui": "^4.13.1",
|
|
158
159
|
"@simplewebauthn/server": "14.0.3",
|
|
159
|
-
"@
|
|
160
|
+
"@tiptap/core": "3.35.1",
|
|
161
|
+
"@tiptap/extension-table": "3.35.1",
|
|
162
|
+
"@tiptap/extension-table-cell": "3.35.1",
|
|
163
|
+
"@tiptap/extension-table-header": "3.35.1",
|
|
164
|
+
"@tiptap/extension-table-row": "3.35.1",
|
|
165
|
+
"@tiptap/extension-text-align": "3.35.1",
|
|
166
|
+
"@tiptap/pm": "3.35.1",
|
|
167
|
+
"@tiptap/starter-kit": "3.35.1",
|
|
168
|
+
"@tiptap/vue-3": "3.35.1",
|
|
169
|
+
"@types/node": "^26.6.11",
|
|
160
170
|
"@typescript/typescript6": "^6.0.2",
|
|
161
171
|
"better-auth": "1.7.20",
|
|
162
172
|
"comark": "0.9.1",
|
|
@@ -165,7 +175,7 @@
|
|
|
165
175
|
"drizzle-seed": "1.0.0-rc.5",
|
|
166
176
|
"h3": "^2.0.8",
|
|
167
177
|
"nitro": "3.0.261103-rc",
|
|
168
|
-
"nuxt": "npm:nuxt-nightly@^5.0.0-
|
|
178
|
+
"nuxt": "npm:nuxt-nightly@^5.0.0-2611251439-b19192b",
|
|
169
179
|
"postgres": "^4.1.1",
|
|
170
180
|
"shiki": "^4.6.0",
|
|
171
181
|
"typescript": "^7.0.2",
|
|
@@ -181,7 +191,17 @@
|
|
|
181
191
|
"@cloudflare/puppeteer": ">=1.0.0",
|
|
182
192
|
"@comark/vue": ">=0.9.0",
|
|
183
193
|
"@nkzw/fate": ">=1.0.0",
|
|
194
|
+
"@nuxt/ui": ">=4.0.0",
|
|
184
195
|
"@simplewebauthn/server": ">=14.0.0",
|
|
196
|
+
"@tiptap/core": ">=3.0.0",
|
|
197
|
+
"@tiptap/extension-table": ">=3.0.0",
|
|
198
|
+
"@tiptap/extension-table-cell": ">=3.0.0",
|
|
199
|
+
"@tiptap/extension-table-header": ">=3.0.0",
|
|
200
|
+
"@tiptap/extension-table-row": ">=3.0.0",
|
|
201
|
+
"@tiptap/extension-text-align": ">=3.0.0",
|
|
202
|
+
"@tiptap/pm": ">=3.0.0",
|
|
203
|
+
"@tiptap/starter-kit": ">=3.0.0",
|
|
204
|
+
"@tiptap/vue-3": ">=3.0.0",
|
|
185
205
|
"better-auth": ">=1.7.0",
|
|
186
206
|
"comark": ">=0.9.0",
|
|
187
207
|
"drizzle-kit": ">=1.0.0-rc.1",
|
|
@@ -206,9 +226,39 @@
|
|
|
206
226
|
"@nkzw/fate": {
|
|
207
227
|
"optional": true
|
|
208
228
|
},
|
|
229
|
+
"@nuxt/ui": {
|
|
230
|
+
"optional": true
|
|
231
|
+
},
|
|
209
232
|
"@simplewebauthn/server": {
|
|
210
233
|
"optional": true
|
|
211
234
|
},
|
|
235
|
+
"@tiptap/core": {
|
|
236
|
+
"optional": true
|
|
237
|
+
},
|
|
238
|
+
"@tiptap/extension-table": {
|
|
239
|
+
"optional": true
|
|
240
|
+
},
|
|
241
|
+
"@tiptap/extension-table-cell": {
|
|
242
|
+
"optional": true
|
|
243
|
+
},
|
|
244
|
+
"@tiptap/extension-table-header": {
|
|
245
|
+
"optional": true
|
|
246
|
+
},
|
|
247
|
+
"@tiptap/extension-table-row": {
|
|
248
|
+
"optional": true
|
|
249
|
+
},
|
|
250
|
+
"@tiptap/extension-text-align": {
|
|
251
|
+
"optional": true
|
|
252
|
+
},
|
|
253
|
+
"@tiptap/pm": {
|
|
254
|
+
"optional": true
|
|
255
|
+
},
|
|
256
|
+
"@tiptap/starter-kit": {
|
|
257
|
+
"optional": true
|
|
258
|
+
},
|
|
259
|
+
"@tiptap/vue-3": {
|
|
260
|
+
"optional": true
|
|
261
|
+
},
|
|
212
262
|
"better-auth": {
|
|
213
263
|
"optional": true
|
|
214
264
|
},
|