qarpeo 0.1.27 → 0.1.28

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 CHANGED
@@ -1216,6 +1216,8 @@ ${extraSources}
1216
1216
  options.db = true;
1217
1217
  options.notifications = options.notifications || options.notify;
1218
1218
  }
1219
+ nuxt.options.alias["qarpeo/server"] = resolver.resolve("./runtime/server");
1220
+ nuxt.options.alias["#qarpeo/server"] = resolver.resolve("./runtime/server");
1219
1221
  nuxt.options.alias["qarpeo/runtime"] = resolver.resolve("./runtime");
1220
1222
  nuxt.options.alias["#qarpeo"] = resolver.resolve("./runtime");
1221
1223
  nuxt.options.alias["qarpeo/auth"] = resolver.resolve("./runtime/auth");
@@ -1420,7 +1422,7 @@ ${extraSources}
1420
1422
  filePath: resolver.resolve("./runtime/app/components/QarpeoWelcome.vue")
1421
1423
  });
1422
1424
  const hasAnyService = Boolean(
1423
- 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
1425
+ 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.email || options.ai || options.vectorize || options.queue || options.hyperdrive || options.browser || options.do || options.d1 || options.r2
1424
1426
  );
1425
1427
  if (!hasAnyService) {
1426
1428
  return;
@@ -2271,6 +2273,8 @@ export default async function (batch: any, env?: any, ctx?: any) {
2271
2273
  });
2272
2274
  }
2273
2275
  nitroConfig.alias = nitroConfig.alias || {};
2276
+ nitroConfig.alias["qarpeo/server"] = nuxt.options.alias["qarpeo/server"] || resolver.resolve("./runtime/server");
2277
+ nitroConfig.alias["qarpeo/runtime"] = nuxt.options.alias["qarpeo/runtime"] || resolver.resolve("./runtime");
2274
2278
  const schemaAliases = [
2275
2279
  "#qarpeo/auth/schema",
2276
2280
  "#qarpeo/cms/schema",
@@ -1,24 +1 @@
1
- export * from "./types/index";
2
- export * from "./bindings";
3
- export * from "./kv";
4
- export * from "./blob";
5
- export * from "./db";
6
- export * from "./drizzle";
7
- export * from "./email";
8
- export * from "./cache";
9
- export * from "./ai";
10
- export * from "./vectorize";
11
- export * from "./queue";
12
- export * from "./analytics";
13
- export * from "./ratelimit";
14
- export * from "./hyperdrive";
15
- export * from "./browser";
16
- export * from "./service";
17
- export * from "./auth";
18
- export * from "./realtime";
19
- export * from "./cms";
20
- export * from "./payments";
21
- export * from "./storage";
22
- export * from "./bots";
23
- export * from "./rag";
24
- export * from "./test-utils";
1
+ export * from "./server";
@@ -1,24 +1 @@
1
- export * from "./types/index.mjs";
2
- export * from "./bindings.mjs";
3
- export * from "./kv.mjs";
4
- export * from "./blob.mjs";
5
- export * from "./db.mjs";
6
- export * from "./drizzle.mjs";
7
- export * from "./email.mjs";
8
- export * from "./cache.mjs";
9
- export * from "./ai.mjs";
10
- export * from "./vectorize.mjs";
11
- export * from "./queue.mjs";
12
- export * from "./analytics.mjs";
13
- export * from "./ratelimit.mjs";
14
- export * from "./hyperdrive.mjs";
15
- export * from "./browser.mjs";
16
- export * from "./service.mjs";
17
- export * from "./auth.mjs";
18
- export * from "./realtime.mjs";
19
- export * from "./cms.mjs";
20
- export * from "./payments.mjs";
21
- export * from "./storage.mjs";
22
- export * from "./bots.mjs";
23
- export * from "./rag.mjs";
24
- export * from "./test-utils.mjs";
1
+ export * from "./server.mjs";
@@ -0,0 +1,40 @@
1
+ /**
2
+ * `qarpeo/server` — Standard server-side entrypoint for Qarpeo edge primitives.
3
+ *
4
+ * Provides typed Cloudflare bindings and high-level clients for Nuxt server routes,
5
+ * event handlers, middleware, queues, and background tasks.
6
+ *
7
+ * Usage:
8
+ * ```ts
9
+ * import { defineEventHandler } from "nuxt/server"
10
+ * import { db, kv, blob, ai } from "qarpeo/server"
11
+ *
12
+ * export default defineEventHandler(async (event) => {
13
+ * await kv.set("hello", "world")
14
+ * return { ok: true }
15
+ * })
16
+ * ```
17
+ */
18
+ export * from "./types/index";
19
+ export * from "./bindings";
20
+ export * from "./kv";
21
+ export * from "./blob";
22
+ export * from "./db";
23
+ export * from "./drizzle";
24
+ export * from "./email";
25
+ export * from "./cache";
26
+ export * from "./ai";
27
+ export * from "./vectorize";
28
+ export * from "./queue";
29
+ export * from "./analytics";
30
+ export * from "./ratelimit";
31
+ export * from "./hyperdrive";
32
+ export * from "./browser";
33
+ export * from "./service";
34
+ export * from "./auth";
35
+ export * from "./realtime";
36
+ export * from "./cms";
37
+ export * from "./payments";
38
+ export * from "./storage";
39
+ export * from "./bots";
40
+ export * from "./rag";
@@ -0,0 +1,23 @@
1
+ export * from "./types/index.mjs";
2
+ export * from "./bindings.mjs";
3
+ export * from "./kv.mjs";
4
+ export * from "./blob.mjs";
5
+ export * from "./db.mjs";
6
+ export * from "./drizzle.mjs";
7
+ export * from "./email.mjs";
8
+ export * from "./cache.mjs";
9
+ export * from "./ai.mjs";
10
+ export * from "./vectorize.mjs";
11
+ export * from "./queue.mjs";
12
+ export * from "./analytics.mjs";
13
+ export * from "./ratelimit.mjs";
14
+ export * from "./hyperdrive.mjs";
15
+ export * from "./browser.mjs";
16
+ export * from "./service.mjs";
17
+ export * from "./auth.mjs";
18
+ export * from "./realtime.mjs";
19
+ export * from "./cms.mjs";
20
+ export * from "./payments.mjs";
21
+ export * from "./storage.mjs";
22
+ export * from "./bots.mjs";
23
+ export * from "./rag.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qarpeo",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "Zero-config Cloudflare Edge Platform for Nuxt",
5
5
  "keywords": [
6
6
  "analytics-engine",
@@ -43,6 +43,10 @@
43
43
  "types": "./dist/module.d.ts",
44
44
  "import": "./dist/module.mjs"
45
45
  },
46
+ "./server": {
47
+ "types": "./dist/runtime/server.d.ts",
48
+ "import": "./dist/runtime/server.mjs"
49
+ },
46
50
  "./runtime": {
47
51
  "types": "./dist/runtime/index.d.ts",
48
52
  "import": "./dist/runtime/index.mjs"
@@ -50,6 +54,38 @@
50
54
  "./fate": {
51
55
  "types": "./dist/fate/index.d.ts",
52
56
  "import": "./dist/fate/index.mjs"
57
+ },
58
+ "./auth": {
59
+ "types": "./dist/runtime/auth.d.ts",
60
+ "import": "./dist/runtime/auth.mjs"
61
+ },
62
+ "./cms": {
63
+ "types": "./dist/runtime/cms.d.ts",
64
+ "import": "./dist/runtime/cms.mjs"
65
+ },
66
+ "./realtime": {
67
+ "types": "./dist/runtime/realtime.d.ts",
68
+ "import": "./dist/runtime/realtime.mjs"
69
+ },
70
+ "./payments": {
71
+ "types": "./dist/runtime/payments.d.ts",
72
+ "import": "./dist/runtime/payments.mjs"
73
+ },
74
+ "./storage": {
75
+ "types": "./dist/runtime/storage.d.ts",
76
+ "import": "./dist/runtime/storage.mjs"
77
+ },
78
+ "./notifications": {
79
+ "types": "./dist/runtime/server/utils/notifications.d.ts",
80
+ "import": "./dist/runtime/server/utils/notifications.mjs"
81
+ },
82
+ "./vapid": {
83
+ "types": "./dist/runtime/server/utils/vapid.d.ts",
84
+ "import": "./dist/runtime/server/utils/vapid.mjs"
85
+ },
86
+ "./test-utils": {
87
+ "types": "./dist/runtime/test-utils.d.ts",
88
+ "import": "./dist/runtime/test-utils.mjs"
53
89
  }
54
90
  },
55
91
  "publishConfig": {