nuxt-ai-ready 0.0.0 → 0.0.1

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.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "nuxt": ">=4.0.0"
5
5
  },
6
6
  "configKey": "aiReady",
7
- "version": "0.0.0",
7
+ "version": "0.0.1",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -55,7 +55,6 @@ function normalizeLlmsTxtConfig(config) {
55
55
  const logger = consola.withTag("nuxt-mdream");
56
56
  function setupPrerenderHandler() {
57
57
  const nuxt = useNuxt();
58
- nuxt.options.aiReady || {};
59
58
  const pages = [];
60
59
  nuxt.hooks.hook("nitro:init", async (nitro) => {
61
60
  nitro.hooks.hook("prerender:generate", async (route) => {
@@ -15,6 +15,7 @@ export default defineMcpPrompt({
15
15
  required: false
16
16
  }
17
17
  ],
18
+ // @ts-expect-error untyped
18
19
  handler: async ({ concept, level = "intermediate" }) => {
19
20
  const searchLower = concept.toLowerCase();
20
21
  const seenRoutes = /* @__PURE__ */ new Set();
@@ -15,6 +15,7 @@ export default defineMcpPrompt({
15
15
  required: false
16
16
  }
17
17
  ],
18
+ // @ts-expect-error untyped
18
19
  handler: async ({ topic, detail = "detailed" }) => {
19
20
  const searchLower = topic.toLowerCase();
20
21
  const seenRoutes = /* @__PURE__ */ new Set();
@@ -15,6 +15,7 @@ export default defineMcpPrompt({
15
15
  required: false
16
16
  }
17
17
  ],
18
+ // @ts-expect-error untyped
18
19
  handler: async ({ topic, maxResults = 10 }) => {
19
20
  const searchLower = topic.toLowerCase();
20
21
  const seenRoutes = /* @__PURE__ */ new Set();
@@ -29,6 +29,7 @@ OUTPUT: Returns complete page data including:
29
29
  },
30
30
  required: ["route"]
31
31
  },
32
+ // @ts-expect-error untyped
32
33
  handler: async ({ route }) => {
33
34
  const normalizedRoute = route.startsWith("/") ? route : `/${route}`;
34
35
  const cleanRoute = normalizedRoute.replace(/\/$/, "") || "/";
@@ -47,6 +47,7 @@ FIELD OPTIONS: Control which fields to include in the output:
47
47
  }
48
48
  }
49
49
  },
50
+ // @ts-expect-error untyped
50
51
  handler: async ({ fields = ["route", "title", "description"], search, limit = 100 }) => {
51
52
  const searchLower = search?.toLowerCase();
52
53
  const result = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-ai-ready",
3
3
  "type": "module",
4
- "version": "0.0.0",
4
+ "version": "0.0.1",
5
5
  "description": "Best practice AI & LLM discoverability for Nuxt sites.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -67,6 +67,7 @@
67
67
  "happy-dom": "^20.0.11",
68
68
  "nuxt": "^4.2.1",
69
69
  "nuxt-site-config": "^3.2.11",
70
+ "playwright": "^1.57.0",
70
71
  "playwright-core": "^1.57.0",
71
72
  "postgres": "^3.4.7",
72
73
  "typescript": "^5.9.3",
@@ -93,7 +94,7 @@
93
94
  "test": "pnpm run prepare:fixtures && vitest",
94
95
  "test:unit": "vitest run --project=unit",
95
96
  "test:e2e": "pnpm run prepare:fixtures && vitest run --project=e2e",
96
- "typecheck": "tsc --noEmit",
97
+ "typecheck": "nuxt typecheck",
97
98
  "test:attw": "attw --pack"
98
99
  }
99
100
  }