@arabold/docs-mcp-server 2.1.0 → 2.1.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/index.js +2 -2
- package/dist/{main-CmXZnHFM.js → main-ntnRQ8Za.js} +23 -12
- package/dist/main-ntnRQ8Za.js.map +1 -0
- package/dist/{utils-XwXdQlZ_.js → utils-CZz1DsHw.js} +2 -1
- package/dist/utils-CZz1DsHw.js.map +1 -0
- package/package.json +1 -1
- package/dist/main-CmXZnHFM.js.map +0 -1
- package/dist/utils-XwXdQlZ_.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { s as sanitizeEnvironment, l as logger } from "./logger-CLtABTNb.js";
|
|
|
4
4
|
process.setSourceMapsEnabled(true);
|
|
5
5
|
sanitizeEnvironment();
|
|
6
6
|
const [{ runCli }, { ensurePlaywrightBrowsersInstalled }] = await Promise.all([
|
|
7
|
-
import("./main-
|
|
8
|
-
import("./utils-
|
|
7
|
+
import("./main-ntnRQ8Za.js"),
|
|
8
|
+
import("./utils-CZz1DsHw.js").then((n) => n.u)
|
|
9
9
|
]);
|
|
10
10
|
ensurePlaywrightBrowsersInstalled();
|
|
11
11
|
runCli().catch((error) => {
|
|
@@ -9,7 +9,7 @@ import path from "node:path";
|
|
|
9
9
|
import { URL as URL$1 } from "node:url";
|
|
10
10
|
import envPaths from "env-paths";
|
|
11
11
|
import { l as logger, n as normalizeEnvValue, g as getLogLevelFromEnv, a as setLogLevel, L as LogLevel } from "./logger-CLtABTNb.js";
|
|
12
|
-
import { t as telemetry, T as TelemetryEvent, P as PipelineJobStatus, g as getProjectRoot, E as EmbeddingConfig, a as EventType, S as ServerEventName, s as shouldEnableTelemetry, r as resolveProtocol, p as parseAuthConfig, v as validateAuthConfig, w as warnHttpUsage, e as ensurePlaywrightBrowsersInstalled, b as getEventBus, c as createAppServerConfig, d as parseHeaders, f as validatePort, h as validateHost, i as resolveStorePath, j as initTelemetry, k as EventBusService, l as TelemetryService } from "./utils-
|
|
12
|
+
import { t as telemetry, T as TelemetryEvent, P as PipelineJobStatus, g as getProjectRoot, E as EmbeddingConfig, a as EventType, S as ServerEventName, s as shouldEnableTelemetry, r as resolveProtocol, p as parseAuthConfig, v as validateAuthConfig, w as warnHttpUsage, e as ensurePlaywrightBrowsersInstalled, b as getEventBus, c as createAppServerConfig, d as parseHeaders, f as validatePort, h as validateHost, i as resolveStorePath, j as initTelemetry, k as EventBusService, l as TelemetryService } from "./utils-CZz1DsHw.js";
|
|
13
13
|
import yargs from "yargs";
|
|
14
14
|
import { hideBin } from "yargs/helpers";
|
|
15
15
|
import yaml from "yaml";
|
|
@@ -2420,6 +2420,9 @@ class MimeTypeUtils {
|
|
|
2420
2420
|
"text/x-xml": "xml",
|
|
2421
2421
|
"text/xml": "xml",
|
|
2422
2422
|
"application/xml": "xml",
|
|
2423
|
+
"application/xslt+xml": "xml",
|
|
2424
|
+
"application/xml-dtd": "xml",
|
|
2425
|
+
"application/wsdl+xml": "xml",
|
|
2423
2426
|
"text/x-sql": "sql",
|
|
2424
2427
|
"text/x-graphql": "graphql",
|
|
2425
2428
|
// Schema/API definitions
|
|
@@ -9238,6 +9241,9 @@ class DocumentStore {
|
|
|
9238
9241
|
}
|
|
9239
9242
|
EmbeddingConfig.setKnownModelDimensions(config.model, this.modelDimension);
|
|
9240
9243
|
}
|
|
9244
|
+
if (this.embeddings instanceof FixedDimensionEmbeddings && this.embeddings.allowTruncate) {
|
|
9245
|
+
this.modelDimension = Math.min(this.modelDimension, this.dbDimension);
|
|
9246
|
+
}
|
|
9241
9247
|
if (this.modelDimension > this.dbDimension) {
|
|
9242
9248
|
throw new DimensionError(config.modelSpec, this.modelDimension, this.dbDimension);
|
|
9243
9249
|
}
|
|
@@ -9285,14 +9291,14 @@ class DocumentStore {
|
|
|
9285
9291
|
* This prevents FTS5 syntax errors while supporting intuitive phrase searches.
|
|
9286
9292
|
*
|
|
9287
9293
|
* Query construction:
|
|
9288
|
-
* - Exact match of full input: `
|
|
9289
|
-
* - Individual terms: `
|
|
9290
|
-
* - Combined: `
|
|
9294
|
+
* - Exact match of full input: `"escaped full query"`
|
|
9295
|
+
* - Individual terms: `"term1" OR "term2" OR "phrase"`
|
|
9296
|
+
* - Combined: `"full query" OR "term1" OR "term2"`
|
|
9291
9297
|
*
|
|
9292
9298
|
* Examples:
|
|
9293
|
-
* - `foo bar` -> `
|
|
9294
|
-
* - `"hello world"` -> `
|
|
9295
|
-
* - `test "exact phrase" word` -> `
|
|
9299
|
+
* - `foo bar` -> `"foo bar" OR "foo" OR "bar"`
|
|
9300
|
+
* - `"hello world"` -> `"hello world"`
|
|
9301
|
+
* - `test "exact phrase" word` -> `"test exact phrase word" OR "test" OR "exact phrase" OR "word"`
|
|
9296
9302
|
*/
|
|
9297
9303
|
escapeFtsQuery(query) {
|
|
9298
9304
|
const tokens = [];
|
|
@@ -11455,7 +11461,7 @@ const Layout = ({
|
|
|
11455
11461
|
children,
|
|
11456
11462
|
eventClientConfig
|
|
11457
11463
|
}) => {
|
|
11458
|
-
const versionString = version || "2.1.
|
|
11464
|
+
const versionString = version || "2.1.1";
|
|
11459
11465
|
const versionInitializer = `versionUpdate({ currentVersion: ${`'${versionString}'`} })`;
|
|
11460
11466
|
return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
|
|
11461
11467
|
/* @__PURE__ */ jsxs("head", { children: [
|
|
@@ -13807,7 +13813,7 @@ class AppServer {
|
|
|
13807
13813
|
try {
|
|
13808
13814
|
if (telemetry.isEnabled()) {
|
|
13809
13815
|
telemetry.setGlobalContext({
|
|
13810
|
-
appVersion: "2.1.
|
|
13816
|
+
appVersion: "2.1.1",
|
|
13811
13817
|
appPlatform: process.platform,
|
|
13812
13818
|
appNodeVersion: process.version,
|
|
13813
13819
|
appServicesEnabled: this.getActiveServicesList(),
|
|
@@ -14926,6 +14932,11 @@ const TEXT_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
|
14926
14932
|
".html",
|
|
14927
14933
|
".htm",
|
|
14928
14934
|
".xml",
|
|
14935
|
+
".xsl",
|
|
14936
|
+
".xslt",
|
|
14937
|
+
".xsd",
|
|
14938
|
+
".dtd",
|
|
14939
|
+
".wsdl",
|
|
14929
14940
|
".xhtml",
|
|
14930
14941
|
// Stylesheets
|
|
14931
14942
|
".css",
|
|
@@ -17961,7 +17972,7 @@ function createCli(argv) {
|
|
|
17961
17972
|
let globalEventBus = null;
|
|
17962
17973
|
let globalTelemetryService = null;
|
|
17963
17974
|
const commandStartTimes = /* @__PURE__ */ new Map();
|
|
17964
|
-
const cli = registerGlobalOutputOptions(yargs(hideBin(argv))).scriptName("docs-mcp-server").strict().usage("Usage: $0 <command> [options]").version("2.1.
|
|
17975
|
+
const cli = registerGlobalOutputOptions(yargs(hideBin(argv))).scriptName("docs-mcp-server").strict().usage("Usage: $0 <command> [options]").version("2.1.1").option("verbose", {
|
|
17965
17976
|
type: "boolean",
|
|
17966
17977
|
description: "Enable verbose (debug) logging",
|
|
17967
17978
|
default: false
|
|
@@ -18022,7 +18033,7 @@ function createCli(argv) {
|
|
|
18022
18033
|
if (shouldEnableTelemetry() && telemetry.isEnabled()) {
|
|
18023
18034
|
const commandName = argv2._[0]?.toString() || "default";
|
|
18024
18035
|
telemetry.setGlobalContext({
|
|
18025
|
-
appVersion: "2.1.
|
|
18036
|
+
appVersion: "2.1.1",
|
|
18026
18037
|
appPlatform: process.platform,
|
|
18027
18038
|
appNodeVersion: process.version,
|
|
18028
18039
|
appInterface: "cli",
|
|
@@ -18168,4 +18179,4 @@ export {
|
|
|
18168
18179
|
cleanupCliCommand,
|
|
18169
18180
|
runCli
|
|
18170
18181
|
};
|
|
18171
|
-
//# sourceMappingURL=main-
|
|
18182
|
+
//# sourceMappingURL=main-ntnRQ8Za.js.map
|