@arabold/docs-mcp-server 3.3.0 → 3.4.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/README.md +1 -1
- package/dist/{HtmlDefuddleMiddleware-BNIv3ibo.js → HtmlDefuddleMiddleware-DxjoyIFY.js} +4 -5
- package/dist/{HtmlDefuddleMiddleware-BNIv3ibo.js.map → HtmlDefuddleMiddleware-DxjoyIFY.js.map} +1 -1
- package/dist/assets/index-DR-3PGgZ.js +70 -0
- package/dist/assets/index-DR-3PGgZ.js.map +1 -0
- package/dist/{env-DONvEfR5.js → env-DAfCMXx2.js} +2 -3
- package/dist/{env-DONvEfR5.js.map → env-DAfCMXx2.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/{logger-BBxstTD7.js → logger-DtB7mX3u.js} +2 -3
- package/dist/{logger-BBxstTD7.js.map → logger-DtB7mX3u.js.map} +1 -1
- package/dist/{main-BoABX2b0.js → main-Cb6JaTXM.js} +1634 -1152
- package/dist/main-Cb6JaTXM.js.map +1 -0
- package/dist/{string-B3iUfzt2.js → string-n2Z12tl6.js} +2 -3
- package/dist/{string-B3iUfzt2.js.map → string-n2Z12tl6.js.map} +1 -1
- package/package.json +58 -61
- package/public/assets/index-DR-3PGgZ.js +70 -0
- package/public/assets/index-DR-3PGgZ.js.map +1 -0
- package/public/index.html +1 -1
- package/dist/assets/index-JESalFJu.js +0 -70
- package/dist/assets/index-JESalFJu.js.map +0 -1
- package/dist/main-BoABX2b0.js.map +0 -1
- package/dist/utils-CjF4IsxT.js +0 -2
- package/dist/utils-DXo1A54z.js +0 -675
- package/dist/utils-DXo1A54z.js.map +0 -1
- package/public/assets/index-JESalFJu.js +0 -70
- package/public/assets/index-JESalFJu.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/string.ts
|
|
2
2
|
/**
|
|
3
3
|
* Thoroughly removes all types of whitespace characters from both ends of a string.
|
|
4
4
|
* Handles spaces, tabs, line breaks, and carriage returns.
|
|
@@ -38,7 +38,6 @@ function formatBytes(bytes) {
|
|
|
38
38
|
function escapeHtml(value) {
|
|
39
39
|
return value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """);
|
|
40
40
|
}
|
|
41
|
-
//#endregion
|
|
42
41
|
export { formatBytes as n, fullTrim as r, escapeHtml as t };
|
|
43
42
|
|
|
44
|
-
//# sourceMappingURL=string-
|
|
43
|
+
//# sourceMappingURL=string-n2Z12tl6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-
|
|
1
|
+
{"version":3,"file":"string-n2Z12tl6.js","names":[],"sources":["../src/utils/string.ts"],"sourcesContent":["/**\n * Thoroughly removes all types of whitespace characters from both ends of a string.\n * Handles spaces, tabs, line breaks, and carriage returns.\n */\nexport const fullTrim = (str: string): string => {\n return str.replace(/^[\\s\\r\\n\\t]+|[\\s\\r\\n\\t]+$/g, \"\");\n};\n\n/**\n * Formats a byte count as a human-readable size string using binary units.\n *\n * @param bytes Number of bytes\n * @returns Formatted size such as `12.4 MB`\n */\nexport function formatBytes(bytes: number): string {\n if (!Number.isFinite(bytes) || bytes <= 0) {\n return \"0 B\";\n }\n if (bytes < 1024) {\n return `${Math.round(bytes)} B`;\n }\n\n const units = [\"KB\", \"MB\", \"GB\", \"TB\"] as const;\n let value = bytes / 1024;\n let unitIndex = 0;\n while (value >= 1024 && unitIndex < units.length - 1) {\n value /= 1024;\n unitIndex++;\n }\n return `${value.toFixed(1)} ${units[unitIndex]}`;\n}\n\n/**\n * Escapes text for use in HTML element content or a double-quoted attribute.\n *\n * @param value Text to escape\n * @returns The text with `&`, `<`, `>` and `\"` replaced by entities\n */\nexport function escapeHtml(value: string): string {\n return value\n .replaceAll(\"&\", \"&\")\n .replaceAll(\"<\", \"<\")\n .replaceAll(\">\", \">\")\n .replaceAll('\"', \""\");\n}\n"],"mappings":";;;;;AAIA,IAAa,YAAY,QAAwB;CAC/C,OAAO,IAAI,QAAQ,8BAA8B,EAAE;AACrD;;;;;;;AAQA,SAAgB,YAAY,OAAuB;CACjD,IAAI,CAAC,OAAO,SAAS,KAAK,KAAK,SAAS,GACtC,OAAO;CAET,IAAI,QAAQ,MACV,OAAO,GAAG,KAAK,MAAM,KAAK,EAAE;CAG9B,MAAM,QAAQ;EAAC;EAAM;EAAM;EAAM;CAAI;CACrC,IAAI,QAAQ,QAAQ;CACpB,IAAI,YAAY;CAChB,OAAO,SAAS,QAAQ,YAAY,MAAM,SAAS,GAAG;EACpD,SAAS;EACT;CACF;CACA,OAAO,GAAG,MAAM,QAAQ,CAAC,EAAE,GAAG,MAAM;AACtC;;;;;;;AAQA,SAAgB,WAAW,OAAuB;CAChD,OAAO,MACJ,WAAW,KAAK,OAAO,CAAC,CACxB,WAAW,KAAK,MAAM,CAAC,CACvB,WAAW,KAAK,MAAM,CAAC,CACvB,WAAW,MAAK,QAAQ;AAC7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arabold/docs-mcp-server",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "MCP server for fetching and searching documentation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"evaluate:search:preflight": "vite-node tests/search-eval/cli/preflight.ts",
|
|
44
44
|
"evaluate:accuracy": "vitest run --config vite.config.accuracy.ts",
|
|
45
45
|
"evaluate:accuracy:baseline": "vitest run --config vite.config.accuracy.ts --mode baseline",
|
|
46
|
-
"test:live": "vitest run --config vite.config.live.ts test/html-pipeline-live-e2e.test.ts",
|
|
46
|
+
"test:live": "vitest run --config vite.config.live.ts test/html-pipeline-live-e2e.test.ts test/github-scrape-live-e2e.test.ts",
|
|
47
47
|
"test:auth:clerk": "npm run build && vite-node test/clerk-auth-live.ts --",
|
|
48
48
|
"release:notes": "node scripts/release/ai-release-notes.mjs",
|
|
49
49
|
"lint": "biome check .",
|
|
@@ -54,50 +54,50 @@
|
|
|
54
54
|
"postinstall": "echo 'Skipping Playwright browser install. See README.md for details.'"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@fastify/static": "^10.1.
|
|
58
|
-
"@joplin/turndown-plugin-gfm": "^1.0.
|
|
59
|
-
"@langchain/aws": "^1.
|
|
60
|
-
"@langchain/core": "^1.
|
|
61
|
-
"@langchain/google-genai": "^2.
|
|
62
|
-
"@langchain/google-vertexai": "^2.
|
|
63
|
-
"@langchain/openai": "^1.
|
|
64
|
-
"@langchain/textsplitters": "^1.0.
|
|
65
|
-
"@modelcontextprotocol/node": "^2.1.
|
|
66
|
-
"@modelcontextprotocol/server": "^2.
|
|
67
|
-
"@modelcontextprotocol/server-legacy": "^2.
|
|
68
|
-
"@tanstack/react-query": "^5.
|
|
57
|
+
"@fastify/static": "^10.1.7",
|
|
58
|
+
"@joplin/turndown-plugin-gfm": "^1.0.68",
|
|
59
|
+
"@langchain/aws": "^1.5.0",
|
|
60
|
+
"@langchain/core": "^1.3.0",
|
|
61
|
+
"@langchain/google-genai": "^2.3.4",
|
|
62
|
+
"@langchain/google-vertexai": "^2.3.4",
|
|
63
|
+
"@langchain/openai": "^1.7.0",
|
|
64
|
+
"@langchain/textsplitters": "^1.0.2",
|
|
65
|
+
"@modelcontextprotocol/node": "^2.1.2",
|
|
66
|
+
"@modelcontextprotocol/server": "^2.4.0",
|
|
67
|
+
"@modelcontextprotocol/server-legacy": "^2.4.0",
|
|
68
|
+
"@tanstack/react-query": "^5.104.5",
|
|
69
69
|
"@toon-format/toon": "^2.3.1",
|
|
70
|
-
"@trpc/client": "^11.
|
|
71
|
-
"@trpc/react-query": "^11.
|
|
72
|
-
"@trpc/server": "^11.
|
|
70
|
+
"@trpc/client": "^11.19.0",
|
|
71
|
+
"@trpc/react-query": "^11.19.0",
|
|
72
|
+
"@trpc/server": "^11.19.0",
|
|
73
73
|
"@types/yargs": "^17.0.35",
|
|
74
74
|
"@xberg-io/xberg": "~1.0.14",
|
|
75
|
-
"axios": "^1.
|
|
75
|
+
"axios": "^1.20.0",
|
|
76
76
|
"axios-retry": "^4.5.0",
|
|
77
77
|
"better-sqlite3": "^12.11.1",
|
|
78
78
|
"cheerio": "^1.2.0",
|
|
79
|
-
"defuddle": "^0.19.
|
|
80
|
-
"dompurify": "^3.4.
|
|
79
|
+
"defuddle": "^0.19.5",
|
|
80
|
+
"dompurify": "^3.4.17",
|
|
81
81
|
"dotenv": "^17.4.2",
|
|
82
82
|
"env-paths": "^4.0.0",
|
|
83
|
-
"fastify": "^5.
|
|
83
|
+
"fastify": "^5.12.7",
|
|
84
84
|
"fuse.js": "^7.5.0",
|
|
85
85
|
"gray-matter": "^4.0.3",
|
|
86
|
-
"header-generator": "^2.1.
|
|
86
|
+
"header-generator": "^2.1.89",
|
|
87
87
|
"iconv-lite": "^0.7.3",
|
|
88
|
-
"jose": "^6.2.
|
|
88
|
+
"jose": "^6.2.13",
|
|
89
89
|
"jsdom": "^29.1.1",
|
|
90
|
-
"langchain": "^1.5.
|
|
91
|
-
"linkedom": "^0.18.
|
|
92
|
-
"mime": "^4.1.
|
|
93
|
-
"minimatch": "^10.2.
|
|
94
|
-
"playwright": "^1.
|
|
95
|
-
"posthog-node": "^5.
|
|
90
|
+
"langchain": "^1.5.19",
|
|
91
|
+
"linkedom": "^0.18.14",
|
|
92
|
+
"mime": "^4.1.1",
|
|
93
|
+
"minimatch": "^10.2.6",
|
|
94
|
+
"playwright": "^1.64.1",
|
|
95
|
+
"posthog-node": "^5.57.1",
|
|
96
96
|
"psl": "^1.15.0",
|
|
97
|
-
"react": "^19.
|
|
98
|
-
"react-dom": "^19.
|
|
97
|
+
"react": "^19.3.1",
|
|
98
|
+
"react-dom": "^19.3.1",
|
|
99
99
|
"react-markdown": "^10.1.0",
|
|
100
|
-
"react-router-dom": "^7.18.
|
|
100
|
+
"react-router-dom": "^7.18.4",
|
|
101
101
|
"remark": "^15.0.1",
|
|
102
102
|
"remark-gfm": "^4.0.1",
|
|
103
103
|
"remark-html": "^16.0.1",
|
|
@@ -105,66 +105,63 @@
|
|
|
105
105
|
"semver": "^7.8.5",
|
|
106
106
|
"sqlite-vec": "^0.1.9",
|
|
107
107
|
"superjson": "^2.2.6",
|
|
108
|
-
"tar": "^7.5.
|
|
108
|
+
"tar": "^7.5.22",
|
|
109
109
|
"tree-sitter": "^0.21.1",
|
|
110
110
|
"tree-sitter-javascript": "^0.23.1",
|
|
111
111
|
"tree-sitter-python": "^0.21.0",
|
|
112
112
|
"tree-sitter-typescript": "^0.23.2",
|
|
113
113
|
"turndown": "^7.2.4",
|
|
114
114
|
"unified": "^11.0.5",
|
|
115
|
-
"uuid": "^14.0.
|
|
116
|
-
"ws": "^8.
|
|
117
|
-
"yaml": "^2.9.
|
|
118
|
-
"yargs": "^18.
|
|
115
|
+
"uuid": "^14.0.3",
|
|
116
|
+
"ws": "^8.22.0",
|
|
117
|
+
"yaml": "^2.9.1",
|
|
118
|
+
"yargs": "^18.2.0",
|
|
119
119
|
"yauzl": "^3.4.0",
|
|
120
|
-
"zod": "^4.
|
|
120
|
+
"zod": "^4.6.7"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"@biomejs/biome": "^2.
|
|
124
|
-
"@commitlint/cli": "^21.2.
|
|
125
|
-
"@commitlint/config-conventional": "^21.2.
|
|
126
|
-
"@commitlint/types": "^21.2.
|
|
127
|
-
"@modelcontextprotocol/client": "^2.
|
|
123
|
+
"@biomejs/biome": "^2.6.3",
|
|
124
|
+
"@commitlint/cli": "^21.2.4",
|
|
125
|
+
"@commitlint/config-conventional": "^21.2.4",
|
|
126
|
+
"@commitlint/types": "^21.2.3",
|
|
127
|
+
"@modelcontextprotocol/client": "^2.4.0",
|
|
128
128
|
"@semantic-release/changelog": "^6.0.3",
|
|
129
129
|
"@semantic-release/git": "^10.0.1",
|
|
130
|
-
"@semantic-release/github": "^12.0.
|
|
131
|
-
"@semantic-release/npm": "^13.
|
|
130
|
+
"@semantic-release/github": "^12.0.10",
|
|
131
|
+
"@semantic-release/npm": "^13.2.0",
|
|
132
132
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
133
133
|
"@types/archiver": "^8.0.0",
|
|
134
134
|
"@types/better-sqlite3": "^7.6.13",
|
|
135
135
|
"@types/jsdom": "^28.0.3",
|
|
136
136
|
"@types/lint-staged": "~13.3.0",
|
|
137
|
-
"@types/node": "^26.
|
|
137
|
+
"@types/node": "^26.6.5",
|
|
138
138
|
"@types/node-fetch": "^2.6.13",
|
|
139
|
-
"@types/psl": "
|
|
140
|
-
"@types/react": "^19.
|
|
141
|
-
"@types/react-dom": "^19.
|
|
142
|
-
"@types/semver": "^7.
|
|
139
|
+
"@types/psl": "~1.1.3",
|
|
140
|
+
"@types/react": "^19.3.0",
|
|
141
|
+
"@types/react-dom": "^19.3.0",
|
|
142
|
+
"@types/semver": "^7.8.0",
|
|
143
143
|
"@types/tar": "^6.1.13",
|
|
144
144
|
"@types/turndown": "^5.0.6",
|
|
145
|
-
"@types/ws": "^8.18.
|
|
145
|
+
"@types/ws": "^8.18.2",
|
|
146
146
|
"@types/yauzl": "^3.4.0",
|
|
147
|
-
"@vitejs/plugin-react": "^6.
|
|
147
|
+
"@vitejs/plugin-react": "^6.1.2",
|
|
148
148
|
"archiver": "^8.0.0",
|
|
149
149
|
"domhandler": "^6.0.1",
|
|
150
150
|
"husky": "^9.1.7",
|
|
151
|
-
"lint-staged": "^17.
|
|
152
|
-
"memfs": "^4.
|
|
151
|
+
"lint-staged": "^17.6.0",
|
|
152
|
+
"memfs": "^4.80.0",
|
|
153
153
|
"msw": "^2.15.0",
|
|
154
154
|
"npm-run-all": "^4.1.5",
|
|
155
|
-
"semantic-release": "^25.0.
|
|
155
|
+
"semantic-release": "^25.0.9",
|
|
156
156
|
"typescript": "^5.9.3",
|
|
157
|
-
"vite": "^8.
|
|
157
|
+
"vite": "^8.3.5",
|
|
158
158
|
"vite-node": "^6.0.0",
|
|
159
|
-
"vite-plugin-dts": "^5.
|
|
160
|
-
"vitest": "^4.1.
|
|
159
|
+
"vite-plugin-dts": "^5.1.2",
|
|
160
|
+
"vitest": "^4.1.12"
|
|
161
161
|
},
|
|
162
162
|
"engines": {
|
|
163
163
|
"node": ">=22"
|
|
164
164
|
},
|
|
165
|
-
"overrides": {
|
|
166
|
-
"npm": "10.9.3"
|
|
167
|
-
},
|
|
168
165
|
"lint-staged": {
|
|
169
166
|
"*.{js,ts,jsx,tsx,json,md}": [
|
|
170
167
|
"biome check --write --no-errors-on-unmatched",
|