@arabold/docs-mcp-server 3.3.0 → 3.4.0

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.
@@ -1,4 +1,4 @@
1
- //#region src/utils/string.ts
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("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;");
40
40
  }
41
- //#endregion
42
41
  export { formatBytes as n, fullTrim as r, escapeHtml as t };
43
42
 
44
- //# sourceMappingURL=string-B3iUfzt2.js.map
43
+ //# sourceMappingURL=string-n2Z12tl6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"string-B3iUfzt2.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(\"&\", \"&amp;\")\n .replaceAll(\"<\", \"&lt;\")\n .replaceAll(\">\", \"&gt;\")\n .replaceAll('\"', \"&quot;\");\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"}
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(\"&\", \"&amp;\")\n .replaceAll(\"<\", \"&lt;\")\n .replaceAll(\">\", \"&gt;\")\n .replaceAll('\"', \"&quot;\");\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"}
@@ -0,0 +1 @@
1
+ export { t as checkAuthForProtocol, n as createAppServerConfig, r as ensurePlaywrightBrowsersInstalled, i as getEventBus, a as getGlobalOptions, o as handleEmbeddingModelChange, s as parseHeaders, c as resolveEmbeddingContext, l as resolveProtocol, u as validateHost, d as validatePort } from "./utils-7a9aMv8E.js";