@voicenter-team/nuxt-llms-generator 0.1.10 → 0.1.12
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 +630 -625
- package/dist/chunks/llms-files-generator.mjs +414 -166
- package/dist/module.d.mts +1 -0
- package/dist/module.d.ts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/shared/{nuxt-llms-generator.bc139143.mjs → nuxt-llms-generator.db76a78e.mjs} +3 -0
- package/package.json +64 -63
package/dist/module.d.mts
CHANGED
|
@@ -14,6 +14,7 @@ declare const LLMSConfigSchema: z.ZodObject<{
|
|
|
14
14
|
baseSiteUrl: z.ZodOptional<z.ZodString>;
|
|
15
15
|
baseSiteUrlUmbracoDataKey: z.ZodOptional<z.ZodString>;
|
|
16
16
|
maxConcurrent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
17
|
+
maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
17
18
|
enableLLMSFullTxt: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
18
19
|
enableIndividualMd: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19
20
|
enableAutoCleanup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
package/dist/module.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ declare const LLMSConfigSchema: z.ZodObject<{
|
|
|
14
14
|
baseSiteUrl: z.ZodOptional<z.ZodString>;
|
|
15
15
|
baseSiteUrlUmbracoDataKey: z.ZodOptional<z.ZodString>;
|
|
16
16
|
maxConcurrent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
17
|
+
maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
17
18
|
enableLLMSFullTxt: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
18
19
|
enableIndividualMd: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19
20
|
enableAutoCleanup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -38,6 +38,7 @@ const LLMSConfigSchema = z.object({
|
|
|
38
38
|
).describe("The base URL of the website to append to links in generated llms files"),
|
|
39
39
|
baseSiteUrlUmbracoDataKey: z.string().optional().describe("If the SiteData of UmbracoData has the key with the base URL you can pass here the key to auto extract the base url"),
|
|
40
40
|
maxConcurrent: z.number().int().min(1, "maxConcurrent must be at least 1").max(10, "maxConcurrent should not exceed 10 to avoid rate limits").optional().default(3),
|
|
41
|
+
maxTokens: z.number().int().min(1e3, "maxTokens must be at least 1000").max(2e5, "maxTokens should not exceed 200000").optional().default(65e3).describe("Maximum tokens for page content before truncation"),
|
|
41
42
|
enableLLMSFullTxt: z.boolean().optional().default(true),
|
|
42
43
|
enableIndividualMd: z.boolean().optional().default(true),
|
|
43
44
|
enableAutoCleanup: z.boolean().optional().default(true),
|
|
@@ -225,6 +226,7 @@ function convertHtmlToMarkdownDeep(input) {
|
|
|
225
226
|
const DEFAULT_OPTIONS = {
|
|
226
227
|
anthropicModel: "claude-3-7-sonnet-latest",
|
|
227
228
|
maxConcurrent: 5,
|
|
229
|
+
maxTokens: 65e3,
|
|
228
230
|
enableLLMSFullTxt: true,
|
|
229
231
|
enableIndividualMd: true,
|
|
230
232
|
templatesDir: ".llms-templates",
|
|
@@ -271,6 +273,7 @@ const llmsModule = defineNuxtModule({
|
|
|
271
273
|
finalOutputDir: resolve(nuxt.options.rootDir, options.finalOutputDir ?? "public"),
|
|
272
274
|
anthropicModel: options.anthropicModel || DEFAULT_OPTIONS.anthropicModel,
|
|
273
275
|
maxConcurrent: options.maxConcurrent || DEFAULT_OPTIONS.maxConcurrent,
|
|
276
|
+
maxTokens: options.maxTokens ?? DEFAULT_OPTIONS.maxTokens,
|
|
274
277
|
enableLLMSFullTxt: options.enableLLMSFullTxt ?? DEFAULT_OPTIONS.enableLLMSFullTxt,
|
|
275
278
|
enableIndividualMd: options.enableIndividualMd ?? DEFAULT_OPTIONS.enableIndividualMd,
|
|
276
279
|
enableAutoCleanup: options.enableAutoCleanup ?? DEFAULT_OPTIONS.enableAutoCleanup,
|
package/package.json
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@voicenter-team/nuxt-llms-generator",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Nuxt 3 module for automatically generating AI-optimized documentation files (llms.txt, llms-full.txt, and individual .md files) from Umbraco CMS data using Anthropic's Claude API.",
|
|
5
|
-
"repository": "https://github.com/VoicenterTeam/nuxt-llms-generator",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/types.d.ts",
|
|
11
|
-
"import": "./dist/module.mjs",
|
|
12
|
-
"require": "./dist/module.cjs"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"main": "./dist/module.cjs",
|
|
16
|
-
"types": "./dist/types.d.ts",
|
|
17
|
-
"files": [
|
|
18
|
-
"dist"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"prepack": "nuxt-module-build prepare && nuxt-module-build build",
|
|
22
|
-
"dev": "nuxi dev playground",
|
|
23
|
-
"dev:build": "nuxi build playground",
|
|
24
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
25
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
26
|
-
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts --fix --ignore-path .gitignore",
|
|
27
|
-
"test": "vitest run",
|
|
28
|
-
"test:watch": "vitest watch",
|
|
29
|
-
"test:coverage": "vitest run --coverage",
|
|
30
|
-
"test:coverage:ui": "vitest --ui --coverage",
|
|
31
|
-
"link": "npm link",
|
|
32
|
-
"dev:documentation": "cd documentation && yarn && yarn run dev",
|
|
33
|
-
"build:documentation": "cd documentation && yarn && yarn run build"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@anthropic-ai/sdk": "^0.30.0",
|
|
37
|
-
"@nuxt/kit": "^3.11.2",
|
|
38
|
-
"@
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"@nuxt/
|
|
50
|
-
"@nuxt/
|
|
51
|
-
"@nuxt/
|
|
52
|
-
"@nuxt/
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@types/
|
|
56
|
-
"@
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@voicenter-team/nuxt-llms-generator",
|
|
3
|
+
"version": "0.1.12",
|
|
4
|
+
"description": "Nuxt 3 module for automatically generating AI-optimized documentation files (llms.txt, llms-full.txt, and individual .md files) from Umbraco CMS data using Anthropic's Claude API.",
|
|
5
|
+
"repository": "https://github.com/VoicenterTeam/nuxt-llms-generator",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types.d.ts",
|
|
11
|
+
"import": "./dist/module.mjs",
|
|
12
|
+
"require": "./dist/module.cjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist/module.cjs",
|
|
16
|
+
"types": "./dist/types.d.ts",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"prepack": "nuxt-module-build prepare && nuxt-module-build build",
|
|
22
|
+
"dev": "nuxi dev playground",
|
|
23
|
+
"dev:build": "nuxi build playground",
|
|
24
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
25
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
26
|
+
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts --fix --ignore-path .gitignore",
|
|
27
|
+
"test": "vitest run",
|
|
28
|
+
"test:watch": "vitest watch",
|
|
29
|
+
"test:coverage": "vitest run --coverage",
|
|
30
|
+
"test:coverage:ui": "vitest --ui --coverage",
|
|
31
|
+
"link": "npm link",
|
|
32
|
+
"dev:documentation": "cd documentation && yarn && yarn run dev",
|
|
33
|
+
"build:documentation": "cd documentation && yarn && yarn run build"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@anthropic-ai/sdk": "^0.30.0",
|
|
37
|
+
"@nuxt/kit": "^3.11.2",
|
|
38
|
+
"@toon-format/toon": "^2.1.0",
|
|
39
|
+
"@voicenter-team/eslint-config-ts": "^1.0.22",
|
|
40
|
+
"i": "^0.3.7",
|
|
41
|
+
"jsonpath-plus": "^8.0.0",
|
|
42
|
+
"mustache": "^4.2.0",
|
|
43
|
+
"node-html-markdown": "^1.3.0",
|
|
44
|
+
"npm": "^11.6.0",
|
|
45
|
+
"transliteration": "^2.3.5",
|
|
46
|
+
"zod": "^4.1.9"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@nuxt/devtools": "^1.1.5",
|
|
50
|
+
"@nuxt/eslint-config": "^0.3.6",
|
|
51
|
+
"@nuxt/module-builder": "^0.5.5",
|
|
52
|
+
"@nuxt/schema": "^3.11.2",
|
|
53
|
+
"@nuxt/test-utils": "^3.12.0",
|
|
54
|
+
"@optimize-lodash/rollup-plugin": "^4.0.4",
|
|
55
|
+
"@types/mustache": "^4.2.5",
|
|
56
|
+
"@types/node": "^20.12.7",
|
|
57
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
58
|
+
"changelogen": "^0.5.5",
|
|
59
|
+
"eslint": "^8.56.0",
|
|
60
|
+
"mocha": "^6.1.4",
|
|
61
|
+
"nuxt": "^3.11.2",
|
|
62
|
+
"vitest": "^3.2.4"
|
|
63
|
+
}
|
|
64
|
+
}
|