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 +1 -1
- package/dist/module.mjs +0 -1
- package/dist/runtime/server/mcp/prompts/explain-concept.js +1 -0
- package/dist/runtime/server/mcp/prompts/find-information.js +1 -0
- package/dist/runtime/server/mcp/prompts/search-content.js +1 -0
- package/dist/runtime/server/mcp/tools/get-page.js +1 -0
- package/dist/runtime/server/mcp/tools/list-pages.js +1 -0
- package/package.json +3 -2
package/dist/module.json
CHANGED
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) => {
|
|
@@ -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.
|
|
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": "
|
|
97
|
+
"typecheck": "nuxt typecheck",
|
|
97
98
|
"test:attw": "attw --pack"
|
|
98
99
|
}
|
|
99
100
|
}
|