@farming-labs/docs 0.2.31 → 0.2.32
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/{agent-D9m49prE.mjs → agent-BaiQvHO9.mjs} +5 -5
- package/dist/{agent-DEr3FFdg.mjs → agent-DTMhPZtU.mjs} +213 -1
- package/dist/{agents-BsY_8VP3.mjs → agents-BCi3Jfr-.mjs} +3 -3
- package/dist/cli/index.mjs +13 -13
- package/dist/{codeblocks-D7xOEhpM.mjs → codeblocks-DbaQ6PA5.mjs} +2 -2
- package/dist/{doctor-BOYKQ5jr.mjs → doctor-DRw8FhkQ.mjs} +5 -5
- package/dist/index.d.mts +40 -1
- package/dist/index.mjs +4 -4
- package/dist/{mcp-CiF7A5wT.mjs → mcp-HtLVW_s5.mjs} +3 -3
- package/dist/mcp.mjs +2 -2
- package/dist/{robots-BcP7nSfi.mjs → robots-Dq9xghyE.mjs} +1 -1
- package/dist/{robots-BzO2bi0d.mjs → robots-Dy3cdwPo.mjs} +2 -2
- package/dist/{search-CAL0CTm4.mjs → search-BA76-30z.mjs} +1 -1
- package/dist/{search-DsgBFnJX.mjs → search-BButtgQB.mjs} +3 -3
- package/dist/server.mjs +3 -3
- package/dist/{sitemap-Cax2grAh.mjs → sitemap-C4yINpdU.mjs} +3 -3
- package/dist/{sitemap-server-RZG9eOJB.mjs → sitemap-server-y96rUcF4.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./reading-time-CPAy1SWO.mjs";
|
|
2
|
-
import "./search-
|
|
3
|
-
import "./agent-
|
|
4
|
-
import "./robots-
|
|
5
|
-
import "./sitemap-server-
|
|
2
|
+
import "./search-BA76-30z.mjs";
|
|
3
|
+
import "./agent-DTMhPZtU.mjs";
|
|
4
|
+
import "./robots-Dq9xghyE.mjs";
|
|
5
|
+
import "./sitemap-server-y96rUcF4.mjs";
|
|
6
6
|
import "./config-De5z-2LK.mjs";
|
|
7
|
-
import { a as readPageTokenBudget, i as printAgentCompactHelp, n as inspectAgentCompactionState, o as scanDocsPageTargets, r as parseAgentCompactArgs, t as compactAgentDocs } from "./codeblocks-
|
|
7
|
+
import { a as readPageTokenBudget, i as printAgentCompactHelp, n as inspectAgentCompactionState, o as scanDocsPageTargets, r as parseAgentCompactArgs, t as compactAgentDocs } from "./codeblocks-DbaQ6PA5.mjs";
|
|
8
8
|
|
|
9
9
|
export { compactAgentDocs, parseAgentCompactArgs, printAgentCompactHelp };
|
|
@@ -300,6 +300,8 @@ function createDocsSitemapResponse({ request, sitemap, entry = "docs", siteTitle
|
|
|
300
300
|
//#endregion
|
|
301
301
|
//#region src/agent.ts
|
|
302
302
|
const DEFAULT_DOCS_API_ROUTE = "/api/docs";
|
|
303
|
+
const DEFAULT_DOCS_CONFIG_FORMAT = "docs-config-map.v1";
|
|
304
|
+
const DEFAULT_DOCS_CONFIG_ROUTE = `${DEFAULT_DOCS_API_ROUTE}?format=config`;
|
|
303
305
|
const DEFAULT_OPENAPI_SCHEMA_ROUTE = `${DEFAULT_DOCS_API_ROUTE}?format=openapi`;
|
|
304
306
|
const DEFAULT_AGENT_SPEC_ROUTE = "/api/docs/agent/spec";
|
|
305
307
|
const DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE = "/.well-known/agent";
|
|
@@ -455,6 +457,44 @@ const COMMON_SECOND_LEVEL_PUBLIC_SUFFIX_LABELS = new Set([
|
|
|
455
457
|
"or",
|
|
456
458
|
"org"
|
|
457
459
|
]);
|
|
460
|
+
const DOCS_CONFIG_MAP_TOP_LEVEL_KEYS = [
|
|
461
|
+
"entry",
|
|
462
|
+
"docsPath",
|
|
463
|
+
"contentDir",
|
|
464
|
+
"i18n",
|
|
465
|
+
"staticExport",
|
|
466
|
+
"theme",
|
|
467
|
+
"analytics",
|
|
468
|
+
"telemetry",
|
|
469
|
+
"cloud",
|
|
470
|
+
"observability",
|
|
471
|
+
"github",
|
|
472
|
+
"nav",
|
|
473
|
+
"themeToggle",
|
|
474
|
+
"breadcrumb",
|
|
475
|
+
"sidebar",
|
|
476
|
+
"components",
|
|
477
|
+
"onCopyClick",
|
|
478
|
+
"codeBlocks",
|
|
479
|
+
"feedback",
|
|
480
|
+
"mcp",
|
|
481
|
+
"icons",
|
|
482
|
+
"pageActions",
|
|
483
|
+
"search",
|
|
484
|
+
"lastUpdated",
|
|
485
|
+
"readingTime",
|
|
486
|
+
"ai",
|
|
487
|
+
"ordering",
|
|
488
|
+
"llmsTxt",
|
|
489
|
+
"sitemap",
|
|
490
|
+
"robots",
|
|
491
|
+
"changelog",
|
|
492
|
+
"apiReference",
|
|
493
|
+
"agent",
|
|
494
|
+
"review",
|
|
495
|
+
"metadata",
|
|
496
|
+
"og"
|
|
497
|
+
];
|
|
458
498
|
function normalizeDocsPathSegment(value) {
|
|
459
499
|
return value.replace(/^\/+|\/+$/g, "");
|
|
460
500
|
}
|
|
@@ -466,6 +506,173 @@ function normalizeDocsUrlPath(value) {
|
|
|
466
506
|
function isPlainObject(value) {
|
|
467
507
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
468
508
|
}
|
|
509
|
+
function isDocsConfigRequest(url) {
|
|
510
|
+
return url.searchParams.get("format")?.trim() === "config";
|
|
511
|
+
}
|
|
512
|
+
function buildDocsConfigMap(config, options = {}) {
|
|
513
|
+
const pointers = {};
|
|
514
|
+
const values = serializeDocsConfigMapValue(pickDocsConfigMapValues(config), [], /* @__PURE__ */ new WeakSet(), pointers);
|
|
515
|
+
const mappedValues = isPlainObject(values) ? values : {};
|
|
516
|
+
const language = containsDocsConfigKind(mappedValues, "jsx") ? "tsx" : "ts";
|
|
517
|
+
return {
|
|
518
|
+
schemaVersion: 1,
|
|
519
|
+
format: DEFAULT_DOCS_CONFIG_FORMAT,
|
|
520
|
+
source: {
|
|
521
|
+
file: options.file ?? (language === "tsx" ? "docs.config.tsx" : "docs.config.ts"),
|
|
522
|
+
language
|
|
523
|
+
},
|
|
524
|
+
serialization: {
|
|
525
|
+
mode: "json-safe",
|
|
526
|
+
redacted: "Scalar values under secret-like keys such as apiKey, token, secret, password, authorization, and credential are redacted unless the key ends with Env.",
|
|
527
|
+
nonSerializable: "described"
|
|
528
|
+
},
|
|
529
|
+
values: mappedValues,
|
|
530
|
+
pointers
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
function pickDocsConfigMapValues(config) {
|
|
534
|
+
const output = {};
|
|
535
|
+
for (const key of DOCS_CONFIG_MAP_TOP_LEVEL_KEYS) if (Object.prototype.hasOwnProperty.call(config, key)) output[key] = config[key];
|
|
536
|
+
return output;
|
|
537
|
+
}
|
|
538
|
+
function serializeDocsConfigMapValue(value, path, seen, pointers, depth = 0) {
|
|
539
|
+
const key = path.at(-1) ?? "";
|
|
540
|
+
const pointerPath = toDocsConfigJsonPointer(path);
|
|
541
|
+
const setPointer = (kind) => {
|
|
542
|
+
if (path.length > 0) pointers[pointerPath] = {
|
|
543
|
+
path: toDocsConfigDotPath(path),
|
|
544
|
+
kind
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
if (value === void 0) return void 0;
|
|
548
|
+
if (shouldRedactDocsConfigKey(key) && value !== null && typeof value !== "object") {
|
|
549
|
+
setPointer("secret");
|
|
550
|
+
return {
|
|
551
|
+
$kind: "secret",
|
|
552
|
+
value: "[redacted]"
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
if (value === null || typeof value === "string" || typeof value === "boolean") {
|
|
556
|
+
setPointer(typeof value);
|
|
557
|
+
return value;
|
|
558
|
+
}
|
|
559
|
+
if (typeof value === "number") {
|
|
560
|
+
setPointer("number");
|
|
561
|
+
return Number.isFinite(value) ? value : String(value);
|
|
562
|
+
}
|
|
563
|
+
if (typeof value === "bigint") {
|
|
564
|
+
setPointer("bigint");
|
|
565
|
+
return {
|
|
566
|
+
$kind: "bigint",
|
|
567
|
+
value: value.toString()
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
if (typeof value === "symbol") {
|
|
571
|
+
setPointer("symbol");
|
|
572
|
+
return {
|
|
573
|
+
$kind: "symbol",
|
|
574
|
+
value: String(value)
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
if (typeof value === "function") {
|
|
578
|
+
setPointer("function");
|
|
579
|
+
return {
|
|
580
|
+
$kind: "function",
|
|
581
|
+
name: getDocsConfigFunctionName(value)
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
if (value instanceof Date) {
|
|
585
|
+
setPointer("date");
|
|
586
|
+
return {
|
|
587
|
+
$kind: "date",
|
|
588
|
+
value: value.toISOString()
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
if (value instanceof URL) {
|
|
592
|
+
setPointer("url");
|
|
593
|
+
return value.toString();
|
|
594
|
+
}
|
|
595
|
+
if (depth >= 10) {
|
|
596
|
+
setPointer("truncated");
|
|
597
|
+
return {
|
|
598
|
+
$kind: "truncated",
|
|
599
|
+
reason: "Exceeded max depth of 10."
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
if (Array.isArray(value)) {
|
|
603
|
+
setPointer("array");
|
|
604
|
+
return value.map((entry, index) => serializeDocsConfigMapValue(entry, [...path, String(index)], seen, pointers, depth + 1)).filter((entry) => entry !== void 0);
|
|
605
|
+
}
|
|
606
|
+
if (isDocsConfigReactElement(value)) {
|
|
607
|
+
setPointer("jsx");
|
|
608
|
+
return {
|
|
609
|
+
$kind: "jsx",
|
|
610
|
+
component: getDocsConfigReactElementName(value)
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
if (seen.has(value)) {
|
|
614
|
+
setPointer("circular");
|
|
615
|
+
return { $kind: "circular" };
|
|
616
|
+
}
|
|
617
|
+
seen.add(value);
|
|
618
|
+
const output = {};
|
|
619
|
+
for (const [childKey, childValue] of Object.entries(value)) {
|
|
620
|
+
const serialized = serializeDocsConfigMapValue(childValue, [...path, childKey], seen, pointers, depth + 1);
|
|
621
|
+
if (serialized !== void 0) output[childKey] = serialized;
|
|
622
|
+
}
|
|
623
|
+
seen.delete(value);
|
|
624
|
+
if (path.length === 1 && path[0] === "theme") {
|
|
625
|
+
setPointer("theme");
|
|
626
|
+
return {
|
|
627
|
+
$kind: "theme",
|
|
628
|
+
...output
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
setPointer("object");
|
|
632
|
+
return output;
|
|
633
|
+
}
|
|
634
|
+
function shouldRedactDocsConfigKey(key) {
|
|
635
|
+
const normalized = key.replace(/[-_]/g, "").toLowerCase();
|
|
636
|
+
if (!normalized || normalized === "env" || normalized.endsWith("env")) return false;
|
|
637
|
+
return normalized.includes("apikey") || normalized.includes("token") || normalized.includes("secret") || normalized.includes("password") || normalized.includes("authorization") || normalized.includes("credential");
|
|
638
|
+
}
|
|
639
|
+
function isDocsConfigReactElement(value) {
|
|
640
|
+
if (!isPlainObject(value) || !("$$typeof" in value)) return false;
|
|
641
|
+
return String(value.$$typeof).includes("react.");
|
|
642
|
+
}
|
|
643
|
+
function getDocsConfigReactElementName(value) {
|
|
644
|
+
const type = value.type;
|
|
645
|
+
if (typeof type === "string") return type;
|
|
646
|
+
if (typeof type === "function") return getDocsConfigFunctionName(type);
|
|
647
|
+
if (isPlainObject(type)) {
|
|
648
|
+
const displayName = type.displayName;
|
|
649
|
+
if (typeof displayName === "string") return displayName;
|
|
650
|
+
const render = type.render;
|
|
651
|
+
if (typeof render === "function") return getDocsConfigFunctionName(render);
|
|
652
|
+
}
|
|
653
|
+
return "unknown";
|
|
654
|
+
}
|
|
655
|
+
function getDocsConfigFunctionName(value) {
|
|
656
|
+
const displayName = value.displayName;
|
|
657
|
+
return typeof displayName === "string" ? displayName : value.name || "anonymous";
|
|
658
|
+
}
|
|
659
|
+
function toDocsConfigJsonPointer(path) {
|
|
660
|
+
return path.length === 0 ? "" : `/${path.map(escapeDocsConfigJsonPointerPart).join("/")}`;
|
|
661
|
+
}
|
|
662
|
+
function escapeDocsConfigJsonPointerPart(value) {
|
|
663
|
+
return value.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
664
|
+
}
|
|
665
|
+
function toDocsConfigDotPath(path) {
|
|
666
|
+
return path.map((part, index) => /^\d+$/.test(part) ? `[${part}]` : index === 0 ? part : `.${part}`).join("");
|
|
667
|
+
}
|
|
668
|
+
function containsDocsConfigKind(value, kind) {
|
|
669
|
+
if (!isPlainObject(value)) {
|
|
670
|
+
if (!Array.isArray(value)) return false;
|
|
671
|
+
}
|
|
672
|
+
if (Array.isArray(value)) return value.some((entry) => containsDocsConfigKind(entry, kind));
|
|
673
|
+
if (value["$kind"] === kind) return true;
|
|
674
|
+
return Object.values(value).some((entry) => containsDocsConfigKind(entry, kind));
|
|
675
|
+
}
|
|
469
676
|
function normalizeDocsAgentFeedbackRoute(route, fallback = DEFAULT_AGENT_FEEDBACK_ROUTE) {
|
|
470
677
|
if (!route || route.trim().length === 0) return fallback;
|
|
471
678
|
const normalized = `/${route}`.replace(/\/+/g, "/");
|
|
@@ -1514,6 +1721,7 @@ function buildDocsAgentDiscoverySpec({ origin, entry = "docs", i18n = null, sear
|
|
|
1514
1721
|
},
|
|
1515
1722
|
api: {
|
|
1516
1723
|
docs: DEFAULT_DOCS_API_ROUTE,
|
|
1724
|
+
config: DEFAULT_DOCS_CONFIG_ROUTE,
|
|
1517
1725
|
agentSpec: DEFAULT_AGENT_SPEC_ROUTE,
|
|
1518
1726
|
agentSpecDefault: DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE,
|
|
1519
1727
|
agentSpecFallback: DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE,
|
|
@@ -1523,6 +1731,10 @@ function buildDocsAgentDiscoverySpec({ origin, entry = "docs", i18n = null, sear
|
|
|
1523
1731
|
agents: `${DEFAULT_DOCS_API_ROUTE}?format=agents`,
|
|
1524
1732
|
openapi: DEFAULT_OPENAPI_SCHEMA_ROUTE
|
|
1525
1733
|
},
|
|
1734
|
+
config: {
|
|
1735
|
+
format: DEFAULT_DOCS_CONFIG_FORMAT,
|
|
1736
|
+
endpoint: DEFAULT_DOCS_CONFIG_ROUTE
|
|
1737
|
+
},
|
|
1526
1738
|
markdown: {
|
|
1527
1739
|
enabled: true,
|
|
1528
1740
|
acceptHeader: markdown?.acceptHeader === false ? null : "text/markdown",
|
|
@@ -1731,4 +1943,4 @@ function toYamlString(value) {
|
|
|
1731
1943
|
}
|
|
1732
1944
|
|
|
1733
1945
|
//#endregion
|
|
1734
|
-
export {
|
|
1946
|
+
export { renderDocsSkillDocument as $, buildDocsConfigMap as A, renderDocsRelatedMarkdownLines as At, isDocsConfigRequest as B, DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE as C, renderDocsSitemapMarkdown as Ct, DOCS_TRADITIONAL_BOT_USER_AGENT_HEADER_PATTERN as D, resolveDocsSitemapRequest as Dt, DOCS_MARKDOWN_SIGNATURE_AGENT_HEADER as E, resolveDocsSitemapPageLastmod as Et, getDocsMarkdownCanonicalLinkHeader as F, matchesDocsLlmsTxtSection as G, isDocsMcpRequest as H, getDocsMarkdownVaryHeader as I, parseDocsAgentFeedbackData as J, normalizeDocsPathSegment as K, hasDocsMarkdownSignatureAgent as L, detectDocsMarkdownAgentRequest as M, findDocsMarkdownPage as N, buildDocsAgentDiscoverySpec as O, toDocsSitemapMarkdownUrl as Ot, getDocsLlmsTxtMaxCharsIssue as P, renderDocsMarkdownNotFound as Q, isDocsAgentDiscoveryRequest as R, DEFAULT_SKILL_MD_ROUTE as S, readDocsSitemapManifestFromContentMap as St, DOCS_BOT_LIKE_USER_AGENT_HEADER_PATTERN as T, resolveDocsSitemapConfig as Tt, isDocsPublicGetRequest as U, isDocsLlmsTxtPublicRequest as V, isDocsSkillRequest as W, renderDocsLlmsTxt as X, renderDocsAgentsDocument as Y, renderDocsMarkdownDocument as Z, DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE as _, DEFAULT_SITEMAP_MD_ROUTE as _t, DEFAULT_AGENT_MD_ROUTE as a, resolveDocsLlmsTxtRequest as at, DEFAULT_MCP_WELL_KNOWN_ROUTE as b, buildDocsSitemapManifest as bt, DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE as c, resolveDocsMarkdownRecovery as ct, DEFAULT_DOCS_CONFIG_FORMAT as d, resolveDocsSkillFormat as dt, resolveDocsAgentFeedbackConfig as et, DEFAULT_DOCS_CONFIG_ROUTE as f, selectDocsLlmsTxtContent as ft, DEFAULT_LLMS_TXT_ROUTE as g, DEFAULT_SITEMAP_MD_DOCS_ROUTE as gt, DEFAULT_LLMS_TXT_MAX_CHARS as h, DEFAULT_SITEMAP_MANIFEST_PATH as ht, DEFAULT_AGENT_FEEDBACK_ROUTE as i, resolveDocsLlmsTxtFormat as it, buildDocsMcpEndpointCandidates as j, buildDocsAgentFeedbackSchema as k, normalizeDocsRelated as kt, DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE as l, resolveDocsMarkdownRequest as lt, DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE as m, validateDocsAgentFeedbackPayload as mt, DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE as n, resolveDocsAgentMdxContent as nt, DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE as o, resolveDocsLlmsTxtSections as ot, DEFAULT_LLMS_FULL_TXT_ROUTE as p, toDocsMarkdownUrl as pt, normalizeDocsUrlPath as q, DEFAULT_AGENT_FEEDBACK_PAYLOAD_SCHEMA as r, resolveDocsAgentsFormat as rt, DEFAULT_AGENT_SPEC_ROUTE as s, resolveDocsMarkdownCanonicalUrl as st, DEFAULT_AGENTS_MD_ROUTE as t, resolveDocsAgentFeedbackRequest as tt, DEFAULT_DOCS_API_ROUTE as u, resolveDocsOpenApiDiscoveryConfig as ut, DEFAULT_MCP_PUBLIC_ROUTE as v, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE as vt, DOCS_AI_AGENT_USER_AGENT_HEADER_PATTERN as w, renderDocsSitemapXml as wt, DEFAULT_OPENAPI_SCHEMA_ROUTE as x, createDocsSitemapResponse as xt, DEFAULT_MCP_ROUTE as y, DEFAULT_SITEMAP_XML_ROUTE as yt, isDocsAgentsRequest as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./search-
|
|
2
|
-
import {
|
|
3
|
-
import { S as resolveApiReferenceConfig } from "./sitemap-server-
|
|
1
|
+
import "./search-BA76-30z.mjs";
|
|
2
|
+
import { Y as renderDocsAgentsDocument, a as DEFAULT_AGENT_MD_ROUTE, et as resolveDocsAgentFeedbackConfig, n as DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, o as DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, t as DEFAULT_AGENTS_MD_ROUTE, x as DEFAULT_OPENAPI_SCHEMA_ROUTE } from "./agent-DTMhPZtU.mjs";
|
|
3
|
+
import { S as resolveApiReferenceConfig } from "./sitemap-server-y96rUcF4.mjs";
|
|
4
4
|
import { resolveDocsMcpConfig } from "./mcp.mjs";
|
|
5
5
|
import "./server.mjs";
|
|
6
6
|
import { c as readNavTitle, f as readTopLevelStringProperty, i as loadDocsConfigModule, o as readBooleanProperty, p as resolveDocsConfigPath, t as extractNestedObjectLiteral, u as readStringProperty } from "./config-De5z-2LK.mjs";
|
package/dist/cli/index.mjs
CHANGED
|
@@ -132,10 +132,10 @@ async function main() {
|
|
|
132
132
|
printCloudHelp();
|
|
133
133
|
process.exit(1);
|
|
134
134
|
} else if (parsedCommand.command === "mcp") {
|
|
135
|
-
const { runMcp } = await import("../mcp-
|
|
135
|
+
const { runMcp } = await import("../mcp-HtLVW_s5.mjs");
|
|
136
136
|
await runMcp(mcpOptions);
|
|
137
137
|
} else if (parsedCommand.command === "agent" && subcommand === "compact") {
|
|
138
|
-
const { compactAgentDocs, parseAgentCompactArgs, printAgentCompactHelp } = await import("../agent-
|
|
138
|
+
const { compactAgentDocs, parseAgentCompactArgs, printAgentCompactHelp } = await import("../agent-BaiQvHO9.mjs");
|
|
139
139
|
const agentCompactOptions = parseAgentCompactArgs(args.slice(2));
|
|
140
140
|
if (agentCompactOptions.help) {
|
|
141
141
|
printAgentCompactHelp();
|
|
@@ -145,11 +145,11 @@ async function main() {
|
|
|
145
145
|
} else if (parsedCommand.command === "agent") {
|
|
146
146
|
console.error(pc.red(`Unknown agent subcommand: ${subcommand ?? "(missing)"}`));
|
|
147
147
|
console.error();
|
|
148
|
-
const { printAgentCompactHelp } = await import("../agent-
|
|
148
|
+
const { printAgentCompactHelp } = await import("../agent-BaiQvHO9.mjs");
|
|
149
149
|
printAgentCompactHelp();
|
|
150
150
|
process.exit(1);
|
|
151
151
|
} else if (parsedCommand.command === "agents" && subcommand === "generate") {
|
|
152
|
-
const { generateAgents, parseAgentsGenerateArgs, printAgentsGenerateHelp } = await import("../agents-
|
|
152
|
+
const { generateAgents, parseAgentsGenerateArgs, printAgentsGenerateHelp } = await import("../agents-BCi3Jfr-.mjs");
|
|
153
153
|
const agentsOptions = parseAgentsGenerateArgs(args.slice(2));
|
|
154
154
|
if (agentsOptions.help) {
|
|
155
155
|
printAgentsGenerateHelp();
|
|
@@ -159,11 +159,11 @@ async function main() {
|
|
|
159
159
|
} else if (parsedCommand.command === "agents") {
|
|
160
160
|
console.error(pc.red(`Unknown agents subcommand: ${subcommand ?? "(missing)"}`));
|
|
161
161
|
console.error();
|
|
162
|
-
const { printAgentsGenerateHelp } = await import("../agents-
|
|
162
|
+
const { printAgentsGenerateHelp } = await import("../agents-BCi3Jfr-.mjs");
|
|
163
163
|
printAgentsGenerateHelp();
|
|
164
164
|
process.exit(1);
|
|
165
165
|
} else if (parsedCommand.command === "doctor") {
|
|
166
|
-
const { parseDoctorArgs, printDoctorHelp, runDoctor } = await import("../doctor-
|
|
166
|
+
const { parseDoctorArgs, printDoctorHelp, runDoctor } = await import("../doctor-DRw8FhkQ.mjs");
|
|
167
167
|
const doctorOptions = parseDoctorArgs(args.slice(1));
|
|
168
168
|
if (doctorOptions.help) {
|
|
169
169
|
printDoctorHelp();
|
|
@@ -179,7 +179,7 @@ async function main() {
|
|
|
179
179
|
}
|
|
180
180
|
await runReview(reviewOptions);
|
|
181
181
|
} else if ((parsedCommand.command === "codeblocks" || parsedCommand.command === "code-blocks") && subcommand === "validate") {
|
|
182
|
-
const { parseCodeBlocksValidateArgs, printCodeBlocksValidateHelp, runCodeBlocksValidate } = await import("../codeblocks-
|
|
182
|
+
const { parseCodeBlocksValidateArgs, printCodeBlocksValidateHelp, runCodeBlocksValidate } = await import("../codeblocks-DbaQ6PA5.mjs");
|
|
183
183
|
const codeBlocksOptions = parseCodeBlocksValidateArgs(args.slice(2));
|
|
184
184
|
if (codeBlocksOptions.help) {
|
|
185
185
|
printCodeBlocksValidateHelp();
|
|
@@ -189,11 +189,11 @@ async function main() {
|
|
|
189
189
|
} else if (parsedCommand.command === "codeblocks" || parsedCommand.command === "code-blocks") {
|
|
190
190
|
console.error(pc.red(`Unknown codeblocks subcommand: ${subcommand ?? "(missing)"}`));
|
|
191
191
|
console.error();
|
|
192
|
-
const { printCodeBlocksValidateHelp } = await import("../codeblocks-
|
|
192
|
+
const { printCodeBlocksValidateHelp } = await import("../codeblocks-DbaQ6PA5.mjs");
|
|
193
193
|
printCodeBlocksValidateHelp();
|
|
194
194
|
process.exit(1);
|
|
195
195
|
} else if (parsedCommand.command === "search" && subcommand === "sync") {
|
|
196
|
-
const { syncSearch } = await import("../search-
|
|
196
|
+
const { syncSearch } = await import("../search-BButtgQB.mjs");
|
|
197
197
|
await syncSearch(searchSyncOptions);
|
|
198
198
|
} else if (parsedCommand.command === "search") {
|
|
199
199
|
console.error(pc.red(`Unknown search subcommand: ${subcommand ?? "(missing)"}`));
|
|
@@ -201,7 +201,7 @@ async function main() {
|
|
|
201
201
|
printHelp();
|
|
202
202
|
process.exit(1);
|
|
203
203
|
} else if (parsedCommand.command === "sitemap" && subcommand === "generate") {
|
|
204
|
-
const { generateSitemap, parseSitemapGenerateArgs, printSitemapGenerateHelp } = await import("../sitemap-
|
|
204
|
+
const { generateSitemap, parseSitemapGenerateArgs, printSitemapGenerateHelp } = await import("../sitemap-C4yINpdU.mjs");
|
|
205
205
|
const sitemapOptions = parseSitemapGenerateArgs(args.slice(2));
|
|
206
206
|
if (sitemapOptions.help) {
|
|
207
207
|
printSitemapGenerateHelp();
|
|
@@ -211,11 +211,11 @@ async function main() {
|
|
|
211
211
|
} else if (parsedCommand.command === "sitemap") {
|
|
212
212
|
console.error(pc.red(`Unknown sitemap subcommand: ${subcommand ?? "(missing)"}`));
|
|
213
213
|
console.error();
|
|
214
|
-
const { printSitemapGenerateHelp } = await import("../sitemap-
|
|
214
|
+
const { printSitemapGenerateHelp } = await import("../sitemap-C4yINpdU.mjs");
|
|
215
215
|
printSitemapGenerateHelp();
|
|
216
216
|
process.exit(1);
|
|
217
217
|
} else if (parsedCommand.command === "robots" && subcommand === "generate") {
|
|
218
|
-
const { generateRobots, parseRobotsGenerateArgs, printRobotsGenerateHelp } = await import("../robots-
|
|
218
|
+
const { generateRobots, parseRobotsGenerateArgs, printRobotsGenerateHelp } = await import("../robots-Dy3cdwPo.mjs");
|
|
219
219
|
const robotsOptions = parseRobotsGenerateArgs(args.slice(2));
|
|
220
220
|
if (robotsOptions.help) {
|
|
221
221
|
printRobotsGenerateHelp();
|
|
@@ -225,7 +225,7 @@ async function main() {
|
|
|
225
225
|
} else if (parsedCommand.command === "robots") {
|
|
226
226
|
console.error(pc.red(`Unknown robots subcommand: ${subcommand ?? "(missing)"}`));
|
|
227
227
|
console.error();
|
|
228
|
-
const { printRobotsGenerateHelp } = await import("../robots-
|
|
228
|
+
const { printRobotsGenerateHelp } = await import("../robots-Dy3cdwPo.mjs");
|
|
229
229
|
printRobotsGenerateHelp();
|
|
230
230
|
process.exit(1);
|
|
231
231
|
} else if (parsedCommand.command === "downgrade") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as parseGeneratedAgentDocument, h as hashGeneratedAgentContent, m as GENERATED_AGENT_PROVENANCE_VERSION, v as serializeGeneratedAgentDocument } from "./search-
|
|
2
|
-
import {
|
|
1
|
+
import { _ as parseGeneratedAgentDocument, h as hashGeneratedAgentContent, m as GENERATED_AGENT_PROVENANCE_VERSION, v as serializeGeneratedAgentDocument } from "./search-BA76-30z.mjs";
|
|
2
|
+
import { N as findDocsMarkdownPage, Z as renderDocsMarkdownDocument } from "./agent-DTMhPZtU.mjs";
|
|
3
3
|
import "./index.mjs";
|
|
4
4
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
5
5
|
import "./server.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./reading-time-CPAy1SWO.mjs";
|
|
2
|
-
import "./search-
|
|
3
|
-
import {
|
|
4
|
-
import { a as analyzeDocsRobotsTxt, n as DEFAULT_ROBOTS_TXT_ROUTE, u as resolveDocsRobotsConfig } from "./robots-
|
|
5
|
-
import "./sitemap-server-
|
|
2
|
+
import "./search-BA76-30z.mjs";
|
|
3
|
+
import { C as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, S as DEFAULT_SKILL_MD_ROUTE, Tt as resolveDocsSitemapConfig, _t as DEFAULT_SITEMAP_MD_ROUTE, b as DEFAULT_MCP_WELL_KNOWN_ROUTE, c as DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, g as DEFAULT_LLMS_TXT_ROUTE, i as DEFAULT_AGENT_FEEDBACK_ROUTE, j as buildDocsMcpEndpointCandidates, l as DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, n as DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, p as DEFAULT_LLMS_FULL_TXT_ROUTE, t as DEFAULT_AGENTS_MD_ROUTE, v as DEFAULT_MCP_PUBLIC_ROUTE, vt as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, yt as DEFAULT_SITEMAP_XML_ROUTE } from "./agent-DTMhPZtU.mjs";
|
|
4
|
+
import { a as analyzeDocsRobotsTxt, n as DEFAULT_ROBOTS_TXT_ROUTE, u as resolveDocsRobotsConfig } from "./robots-Dq9xghyE.mjs";
|
|
5
|
+
import "./sitemap-server-y96rUcF4.mjs";
|
|
6
6
|
import { createFilesystemDocsMcpSource, resolveDocsMcpConfig } from "./mcp.mjs";
|
|
7
7
|
import "./server.mjs";
|
|
8
8
|
import { a as loadProjectEnv, c as readNavTitle, f as readTopLevelStringProperty, i as loadDocsConfigModule, m as resolveDocsContentDir, o as readBooleanProperty, p as resolveDocsConfigPath, r as extractTopLevelConfigObject, t as extractNestedObjectLiteral } from "./config-De5z-2LK.mjs";
|
|
9
9
|
import { t as detectFramework } from "./utils-CoHZJ1i4.mjs";
|
|
10
|
-
import { n as inspectAgentCompactionState, o as scanDocsPageTargets, t as compactAgentDocs } from "./codeblocks-
|
|
10
|
+
import { n as inspectAgentCompactionState, o as scanDocsPageTargets, t as compactAgentDocs } from "./codeblocks-DbaQ6PA5.mjs";
|
|
11
11
|
import { existsSync, lstatSync, readFileSync, readdirSync } from "node:fs";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { LATEST_PROTOCOL_VERSION } from "@modelcontextprotocol/sdk/types.js";
|
package/dist/index.d.mts
CHANGED
|
@@ -238,6 +238,8 @@ declare function serializeGeneratedAgentDocument(content: string, provenance: Ge
|
|
|
238
238
|
//#endregion
|
|
239
239
|
//#region src/agent.d.ts
|
|
240
240
|
declare const DEFAULT_DOCS_API_ROUTE = "/api/docs";
|
|
241
|
+
declare const DEFAULT_DOCS_CONFIG_FORMAT = "docs-config-map.v1";
|
|
242
|
+
declare const DEFAULT_DOCS_CONFIG_ROUTE = "/api/docs?format=config";
|
|
241
243
|
declare const DEFAULT_OPENAPI_SCHEMA_ROUTE = "/api/docs?format=openapi";
|
|
242
244
|
declare const DEFAULT_AGENT_SPEC_ROUTE = "/api/docs/agent/spec";
|
|
243
245
|
declare const DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE = "/.well-known/agent";
|
|
@@ -312,6 +314,34 @@ interface DocsOpenApiResolvedDiscoveryConfig {
|
|
|
312
314
|
specUrl?: string;
|
|
313
315
|
apiReferencePath?: string;
|
|
314
316
|
}
|
|
317
|
+
type DocsConfigMapJsonPrimitive = string | number | boolean | null;
|
|
318
|
+
type DocsConfigMapJsonValue = DocsConfigMapJsonPrimitive | DocsConfigMapJsonValue[] | {
|
|
319
|
+
[key: string]: DocsConfigMapJsonValue;
|
|
320
|
+
};
|
|
321
|
+
interface DocsConfigMapPointer {
|
|
322
|
+
/** Dot-path form for humans and TypeScript users, e.g. `mcp.tools.readPage`. */
|
|
323
|
+
path: string;
|
|
324
|
+
/** Coarse value kind at this pointer. */
|
|
325
|
+
kind: string;
|
|
326
|
+
}
|
|
327
|
+
interface DocsConfigMap {
|
|
328
|
+
schemaVersion: 1;
|
|
329
|
+
format: typeof DEFAULT_DOCS_CONFIG_FORMAT;
|
|
330
|
+
source: {
|
|
331
|
+
/** Best-effort source label; adapters only receive the runtime config object. */file: string; /** Best-effort language hint based on serializing the runtime config object. */
|
|
332
|
+
language: "ts" | "tsx";
|
|
333
|
+
};
|
|
334
|
+
serialization: {
|
|
335
|
+
mode: "json-safe";
|
|
336
|
+
redacted: string;
|
|
337
|
+
nonSerializable: "described";
|
|
338
|
+
};
|
|
339
|
+
values: {
|
|
340
|
+
[key: string]: DocsConfigMapJsonValue;
|
|
341
|
+
};
|
|
342
|
+
/** RFC 6901 JSON Pointer index for mapping response values back to docs.config paths. */
|
|
343
|
+
pointers: Record<string, DocsConfigMapPointer>;
|
|
344
|
+
}
|
|
315
345
|
interface DocsLlmsTxtResolvedMaxChars {
|
|
316
346
|
mode: LlmsTxtMaxCharsMode;
|
|
317
347
|
chars: number;
|
|
@@ -434,6 +464,10 @@ interface DocsMarkdownCanonicalUrlOptions {
|
|
|
434
464
|
}
|
|
435
465
|
declare function normalizeDocsPathSegment(value: string): string;
|
|
436
466
|
declare function normalizeDocsUrlPath(value: string): string;
|
|
467
|
+
declare function isDocsConfigRequest(url: URL): boolean;
|
|
468
|
+
declare function buildDocsConfigMap(config: DocsConfig | Record<string, unknown>, options?: {
|
|
469
|
+
file?: string;
|
|
470
|
+
}): DocsConfigMap;
|
|
437
471
|
declare function buildDocsAgentFeedbackSchema(payloadSchema: Record<string, unknown>): Record<string, unknown>;
|
|
438
472
|
declare function resolveDocsAgentFeedbackConfig(feedback?: boolean | FeedbackConfig): DocsAgentFeedbackResolvedConfig;
|
|
439
473
|
declare function resolveDocsAgentFeedbackRequest(url: URL, feedback: DocsAgentFeedbackResolvedConfig): DocsAgentFeedbackRequest | null;
|
|
@@ -554,6 +588,7 @@ declare function buildDocsAgentDiscoverySpec({
|
|
|
554
588
|
};
|
|
555
589
|
api: {
|
|
556
590
|
docs: string;
|
|
591
|
+
config: string;
|
|
557
592
|
agentSpec: string;
|
|
558
593
|
agentSpecDefault: string;
|
|
559
594
|
agentSpecFallback: string;
|
|
@@ -563,6 +598,10 @@ declare function buildDocsAgentDiscoverySpec({
|
|
|
563
598
|
agents: string;
|
|
564
599
|
openapi: string;
|
|
565
600
|
};
|
|
601
|
+
config: {
|
|
602
|
+
format: string;
|
|
603
|
+
endpoint: string;
|
|
604
|
+
};
|
|
566
605
|
markdown: {
|
|
567
606
|
enabled: boolean;
|
|
568
607
|
acceptHeader: string | null;
|
|
@@ -740,4 +779,4 @@ declare function renderDocsRobotsGeneratedBlock(options?: DocsRobotsRenderOption
|
|
|
740
779
|
declare function upsertDocsRobotsGeneratedBlock(existing: string, block: string): string;
|
|
741
780
|
declare function analyzeDocsRobotsTxt(content: string, options?: DocsRobotsRenderOptions): DocsRobotsAnalysis;
|
|
742
781
|
//#endregion
|
|
743
|
-
export { type AIConfig, type AgentFeedbackConfig, type AlgoliaDocsSearchConfig, type ApiReferenceConfig, type ApiReferenceRenderer, type BreadcrumbConfig, type ChangelogConfig, type ChangelogEntrySummary, type ChangelogFrontmatter, type CodeBlockCopyData, type CopyMarkdownConfig, type CopyMarkdownFormat, type CustomDocsSearchConfig, DEFAULT_AGENTS_MD_ROUTE, DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, DEFAULT_AGENT_FEEDBACK_PAYLOAD_SCHEMA, DEFAULT_AGENT_FEEDBACK_ROUTE, DEFAULT_AGENT_MD_ROUTE, DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, DEFAULT_AGENT_SPEC_ROUTE, DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, DEFAULT_DOCS_AI_ROBOTS_USER_AGENTS, DEFAULT_DOCS_API_ROUTE, DEFAULT_LLMS_FULL_TXT_ROUTE, DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE, DEFAULT_LLMS_TXT_MAX_CHARS, DEFAULT_LLMS_TXT_ROUTE, DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE, DEFAULT_MCP_PUBLIC_ROUTE, DEFAULT_MCP_ROUTE, DEFAULT_MCP_WELL_KNOWN_ROUTE, DEFAULT_OPENAPI_SCHEMA_ROUTE, DEFAULT_ROBOTS_TXT_ROUTE, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DEFAULT_SKILL_MD_ROUTE, DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_AI_AGENT_USER_AGENT_HEADER_PATTERN, DOCS_BOT_LIKE_USER_AGENT_HEADER_PATTERN, DOCS_MARKDOWN_SIGNATURE_AGENT_HEADER, DOCS_ROBOTS_GENERATED_BLOCK_END, DOCS_ROBOTS_GENERATED_BLOCK_START, DOCS_TRADITIONAL_BOT_USER_AGENT_HEADER_PATTERN, type DocsAgentDiscoverySpecOptions, type DocsAgentFeedbackContext, type DocsAgentFeedbackData, type DocsAgentFeedbackDiscoveryConfig, type DocsAgentFeedbackRequest, type DocsAgentFeedbackResolvedConfig, type DocsAgentTraceContext, type DocsAgentTraceEventInput, type DocsAgentTraceEventType, type DocsAgentTraceStatus, type DocsAgentsDocumentOptions, type DocsAnalyticsConfig, type DocsAnalyticsEvent, type DocsAnalyticsEventInput, type DocsAnalyticsEventType, type DocsAnalyticsInput, type DocsAnalyticsSource, type DocsAskAIActionData, type DocsAskAIActionType, type DocsAskAIFeedbackConfig, type DocsAskAIFeedbackData, type DocsAskAIFeedbackMessage, type DocsAskAIFeedbackValue, type DocsAskAIMcpConfig, type DocsCloudApiKeyConfig, type DocsCloudConfig, type DocsCloudFeatureConfig, type DocsCloudPreviewConfig, type DocsCloudPublishConfig, type DocsCodeBlocksConfig, type DocsCodeBlocksPlannerConfig, type DocsCodeBlocksPlannerProvider, type DocsCodeBlocksRunnerConfig, type DocsCodeBlocksRunnerProvider, type DocsCodeBlocksValidateConfig, type DocsCodeBlocksValidationMode, type DocsCodeBlocksValidationPolicy, type DocsConfig, type DocsFeedbackData, type DocsFeedbackValue, type DocsI18nConfig, type DocsLlmsDiscoveryConfig, type DocsLlmsTxtGeneratedContent, type DocsLlmsTxtGeneratedSection, type DocsLlmsTxtMaxCharsIssue, type DocsLlmsTxtPageInput, type DocsLlmsTxtRequest, type DocsLlmsTxtResolvedMaxChars, type DocsLlmsTxtResolvedSection, type DocsLlmsTxtSelectedContent, type DocsMarkdownAgentDetection, type DocsMarkdownPage, type DocsMarkdownRecoveryMatch, type DocsMarkdownRecoveryResult, type DocsMcpConfig, type DocsMcpEndpointCandidate, type DocsMcpEndpointCandidateOptions, type DocsMcpToolsConfig, type DocsMetadata, type DocsNav, type DocsObservabilityConfig, type DocsObservabilityEvent, type DocsObservabilityEventInput, type DocsOpenApiDiscoveryConfig, type DocsOpenApiResolvedDiscoveryConfig, type DocsPageStructuredDataInput, type DocsPathMatch, type DocsRelatedItem, type DocsReviewCiConfig, type DocsReviewCiMode, type DocsReviewConfig, type DocsReviewRulesConfig, type DocsReviewScoreConfig, type DocsReviewSeverity, type DocsRobotsConfig, type DocsRobotsRenderOptions, type DocsRobotsResolvedConfig, type DocsRobotsRule, type DocsSearchAdapter, type DocsSearchAdapterContext, type DocsSearchAdapterFactory, type DocsSearchChunkingConfig, type DocsSearchConfig, type DocsSearchDocument, type DocsSearchEmbeddingsConfig, type DocsSearchQuery, type DocsSearchResult, type DocsSearchResultType, type DocsSearchSourcePage, type DocsSitemapConfig, type DocsSitemapFormat, type DocsSitemapManifest, type DocsSitemapManifestPage, type DocsSitemapPageInput, type DocsSitemapResolvedConfig, type DocsSkillDocumentOptions, type DocsStructuredDataBreadcrumb, type DocsTelemetryAgentSurface, type DocsTelemetryAgentSurfaceContext, type DocsTelemetryAgentSurfaceRequestOptions, type DocsTelemetryConfig, type DocsTelemetryContext, type DocsTelemetryEvent, type DocsTelemetryEventInput, type DocsTelemetryEventType, type DocsTelemetryFeatures, type DocsTelemetryFramework, type DocsTheme, type FeedbackConfig, type FontStyle, GENERATED_AGENT_PROVENANCE_MARKER, GENERATED_AGENT_PROVENANCE_VERSION, type GeneratedAgentProvenance, type GeneratedAgentSourceKind, type GithubConfig, type LastUpdatedConfig, type LlmsTxtConfig, type LlmsTxtMaxCharsConfig, type LlmsTxtMaxCharsMode, type LlmsTxtSectionConfig, type McpDocsSearchConfig, type OGConfig, type OpenDocsConfig, type OpenDocsProvider, type OpenDocsProviderConfig, type OpenDocsProviderId, type OpenDocsTarget, type OpenGraphImage, type OrderingItem, type PageActionsConfig, type PageFrontmatter, type PageOpenGraph, type PageSidebarFrontmatter, type PageTwitter, type PromptAction, type PromptProviderChoice, type ReadingTimeConfig, type ReadingTimeFormat, type ResolvedChangelogConfig, type ResolvedDocsAnalyticsConfig, type ResolvedDocsI18n, type ResolvedDocsObservabilityConfig, type ResolvedDocsRelatedLink, type ResolvedDocsTelemetryConfig, type SerializeOpenDocsProviderOptions, type SerializedOpenDocsProvider, type SidebarComponentProps, type SidebarConfig, type SidebarFolderIndexBehavior, type SidebarFolderNode, type SidebarNode, type SidebarPageNode, type SidebarTree, type SimpleDocsSearchConfig, type ThemeToggleConfig, type TypesenseDocsSearchConfig, type TypographyConfig, type UIConfig, analyzeDocsRobotsTxt, applySidebarFolderIndexBehavior, buildDocsAgentDiscoverySpec, buildDocsAgentFeedbackSchema, buildDocsAskAIContext, buildDocsMcpEndpointCandidates, buildDocsPageStructuredData, buildDocsSearchDocuments, buildDocsSitemapManifest, buildPageOpenGraph, buildPageTwitter, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsRobotsResponse, createDocsSitemapResponse, createMcpSearchAdapter, createSimpleSearchAdapter, createTheme, createTypesenseSearchAdapter, deepMerge, defineDocs, detectDocsMarkdownAgentRequest, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, emitDocsTelemetryAgentSurfaceEvent, emitDocsTelemetryEvent, emitDocsTelemetryMcpToolEvent, emitDocsTelemetryProjectEvent, estimateReadingTimeMinutes, extendTheme, findDocsMarkdownPage, formatDocsAskAIPackageHints, getDocsLlmsTxtMaxCharsIssue, getDocsMarkdownCanonicalLinkHeader, getDocsMarkdownVaryHeader, getDocsRequestAnalyticsProperties, getDocsRobotsAllowRoutes, getDocsTelemetryFeatures, hasDocsMarkdownSignatureAgent, hashGeneratedAgentContent, inferDocsAskAIPackageHints, inferDocsTelemetryAgentSurface, isDocsAgentDiscoveryRequest, isDocsAgentsRequest, isDocsLlmsTxtPublicRequest, isDocsMcpRequest, isDocsPublicGetRequest, isDocsSkillRequest, matchesDocsLlmsTxtSection, normalizeDocsPathSegment, normalizeDocsRelated, normalizeDocsUrlPath, normalizeGeneratedAgentContent, parseDocsAgentFeedbackData, parseGeneratedAgentDocument, performDocsSearch, readDocsSitemapManifestFromContentMap, renderDocsAgentsDocument, renderDocsLlmsTxt, renderDocsMarkdownDocument, renderDocsMarkdownNotFound, renderDocsPageStructuredDataJson, renderDocsRelatedMarkdownLines, renderDocsRobotsGeneratedBlock, renderDocsRobotsTxt, renderDocsSitemapMarkdown, renderDocsSitemapXml, renderDocsSkillDocument, resolveAskAISearchRequestConfig, resolveChangelogConfig, resolveDocsAgentFeedbackConfig, resolveDocsAgentFeedbackRequest, resolveDocsAgentMdxContent, resolveDocsAgentsFormat, resolveDocsAnalyticsConfig, resolveDocsI18n, resolveDocsLlmsTxtFormat, resolveDocsLlmsTxtRequest, resolveDocsLlmsTxtSections, resolveDocsLocale, resolveDocsMarkdownCanonicalUrl, resolveDocsMarkdownRecovery, resolveDocsMarkdownRequest, resolveDocsMetadataBaseUrl, resolveDocsObservabilityConfig, resolveDocsOpenApiDiscoveryConfig, resolveDocsPath, resolveDocsRobotsConfig, resolveDocsRobotsRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveDocsSkillFormat, resolveDocsTelemetryConfig, resolveOGImage, resolvePageReadingTime, resolvePageSidebarFolderIndexBehavior, resolveReadingTimeFromContent, resolveReadingTimeFromSource, resolveReadingTimeOptions, resolveSearchRequestConfig, resolveSidebarFolderIndexBehavior, resolveSidebarFolderIndexBehaviorForPath, resolveTitle, selectDocsLlmsTxtContent, serializeGeneratedAgentDocument, stripGeneratedAgentProvenance, toDocsMarkdownUrl, toDocsSitemapMarkdownUrl, upsertDocsRobotsGeneratedBlock, validateDocsAgentFeedbackPayload };
|
|
782
|
+
export { type AIConfig, type AgentFeedbackConfig, type AlgoliaDocsSearchConfig, type ApiReferenceConfig, type ApiReferenceRenderer, type BreadcrumbConfig, type ChangelogConfig, type ChangelogEntrySummary, type ChangelogFrontmatter, type CodeBlockCopyData, type CopyMarkdownConfig, type CopyMarkdownFormat, type CustomDocsSearchConfig, DEFAULT_AGENTS_MD_ROUTE, DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, DEFAULT_AGENT_FEEDBACK_PAYLOAD_SCHEMA, DEFAULT_AGENT_FEEDBACK_ROUTE, DEFAULT_AGENT_MD_ROUTE, DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, DEFAULT_AGENT_SPEC_ROUTE, DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, DEFAULT_DOCS_AI_ROBOTS_USER_AGENTS, DEFAULT_DOCS_API_ROUTE, DEFAULT_DOCS_CONFIG_FORMAT, DEFAULT_DOCS_CONFIG_ROUTE, DEFAULT_LLMS_FULL_TXT_ROUTE, DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE, DEFAULT_LLMS_TXT_MAX_CHARS, DEFAULT_LLMS_TXT_ROUTE, DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE, DEFAULT_MCP_PUBLIC_ROUTE, DEFAULT_MCP_ROUTE, DEFAULT_MCP_WELL_KNOWN_ROUTE, DEFAULT_OPENAPI_SCHEMA_ROUTE, DEFAULT_ROBOTS_TXT_ROUTE, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DEFAULT_SKILL_MD_ROUTE, DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_AI_AGENT_USER_AGENT_HEADER_PATTERN, DOCS_BOT_LIKE_USER_AGENT_HEADER_PATTERN, DOCS_MARKDOWN_SIGNATURE_AGENT_HEADER, DOCS_ROBOTS_GENERATED_BLOCK_END, DOCS_ROBOTS_GENERATED_BLOCK_START, DOCS_TRADITIONAL_BOT_USER_AGENT_HEADER_PATTERN, type DocsAgentDiscoverySpecOptions, type DocsAgentFeedbackContext, type DocsAgentFeedbackData, type DocsAgentFeedbackDiscoveryConfig, type DocsAgentFeedbackRequest, type DocsAgentFeedbackResolvedConfig, type DocsAgentTraceContext, type DocsAgentTraceEventInput, type DocsAgentTraceEventType, type DocsAgentTraceStatus, type DocsAgentsDocumentOptions, type DocsAnalyticsConfig, type DocsAnalyticsEvent, type DocsAnalyticsEventInput, type DocsAnalyticsEventType, type DocsAnalyticsInput, type DocsAnalyticsSource, type DocsAskAIActionData, type DocsAskAIActionType, type DocsAskAIFeedbackConfig, type DocsAskAIFeedbackData, type DocsAskAIFeedbackMessage, type DocsAskAIFeedbackValue, type DocsAskAIMcpConfig, type DocsCloudApiKeyConfig, type DocsCloudConfig, type DocsCloudFeatureConfig, type DocsCloudPreviewConfig, type DocsCloudPublishConfig, type DocsCodeBlocksConfig, type DocsCodeBlocksPlannerConfig, type DocsCodeBlocksPlannerProvider, type DocsCodeBlocksRunnerConfig, type DocsCodeBlocksRunnerProvider, type DocsCodeBlocksValidateConfig, type DocsCodeBlocksValidationMode, type DocsCodeBlocksValidationPolicy, type DocsConfig, type DocsConfigMap, type DocsConfigMapJsonValue, type DocsConfigMapPointer, type DocsFeedbackData, type DocsFeedbackValue, type DocsI18nConfig, type DocsLlmsDiscoveryConfig, type DocsLlmsTxtGeneratedContent, type DocsLlmsTxtGeneratedSection, type DocsLlmsTxtMaxCharsIssue, type DocsLlmsTxtPageInput, type DocsLlmsTxtRequest, type DocsLlmsTxtResolvedMaxChars, type DocsLlmsTxtResolvedSection, type DocsLlmsTxtSelectedContent, type DocsMarkdownAgentDetection, type DocsMarkdownPage, type DocsMarkdownRecoveryMatch, type DocsMarkdownRecoveryResult, type DocsMcpConfig, type DocsMcpEndpointCandidate, type DocsMcpEndpointCandidateOptions, type DocsMcpToolsConfig, type DocsMetadata, type DocsNav, type DocsObservabilityConfig, type DocsObservabilityEvent, type DocsObservabilityEventInput, type DocsOpenApiDiscoveryConfig, type DocsOpenApiResolvedDiscoveryConfig, type DocsPageStructuredDataInput, type DocsPathMatch, type DocsRelatedItem, type DocsReviewCiConfig, type DocsReviewCiMode, type DocsReviewConfig, type DocsReviewRulesConfig, type DocsReviewScoreConfig, type DocsReviewSeverity, type DocsRobotsConfig, type DocsRobotsRenderOptions, type DocsRobotsResolvedConfig, type DocsRobotsRule, type DocsSearchAdapter, type DocsSearchAdapterContext, type DocsSearchAdapterFactory, type DocsSearchChunkingConfig, type DocsSearchConfig, type DocsSearchDocument, type DocsSearchEmbeddingsConfig, type DocsSearchQuery, type DocsSearchResult, type DocsSearchResultType, type DocsSearchSourcePage, type DocsSitemapConfig, type DocsSitemapFormat, type DocsSitemapManifest, type DocsSitemapManifestPage, type DocsSitemapPageInput, type DocsSitemapResolvedConfig, type DocsSkillDocumentOptions, type DocsStructuredDataBreadcrumb, type DocsTelemetryAgentSurface, type DocsTelemetryAgentSurfaceContext, type DocsTelemetryAgentSurfaceRequestOptions, type DocsTelemetryConfig, type DocsTelemetryContext, type DocsTelemetryEvent, type DocsTelemetryEventInput, type DocsTelemetryEventType, type DocsTelemetryFeatures, type DocsTelemetryFramework, type DocsTheme, type FeedbackConfig, type FontStyle, GENERATED_AGENT_PROVENANCE_MARKER, GENERATED_AGENT_PROVENANCE_VERSION, type GeneratedAgentProvenance, type GeneratedAgentSourceKind, type GithubConfig, type LastUpdatedConfig, type LlmsTxtConfig, type LlmsTxtMaxCharsConfig, type LlmsTxtMaxCharsMode, type LlmsTxtSectionConfig, type McpDocsSearchConfig, type OGConfig, type OpenDocsConfig, type OpenDocsProvider, type OpenDocsProviderConfig, type OpenDocsProviderId, type OpenDocsTarget, type OpenGraphImage, type OrderingItem, type PageActionsConfig, type PageFrontmatter, type PageOpenGraph, type PageSidebarFrontmatter, type PageTwitter, type PromptAction, type PromptProviderChoice, type ReadingTimeConfig, type ReadingTimeFormat, type ResolvedChangelogConfig, type ResolvedDocsAnalyticsConfig, type ResolvedDocsI18n, type ResolvedDocsObservabilityConfig, type ResolvedDocsRelatedLink, type ResolvedDocsTelemetryConfig, type SerializeOpenDocsProviderOptions, type SerializedOpenDocsProvider, type SidebarComponentProps, type SidebarConfig, type SidebarFolderIndexBehavior, type SidebarFolderNode, type SidebarNode, type SidebarPageNode, type SidebarTree, type SimpleDocsSearchConfig, type ThemeToggleConfig, type TypesenseDocsSearchConfig, type TypographyConfig, type UIConfig, analyzeDocsRobotsTxt, applySidebarFolderIndexBehavior, buildDocsAgentDiscoverySpec, buildDocsAgentFeedbackSchema, buildDocsAskAIContext, buildDocsConfigMap, buildDocsMcpEndpointCandidates, buildDocsPageStructuredData, buildDocsSearchDocuments, buildDocsSitemapManifest, buildPageOpenGraph, buildPageTwitter, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsRobotsResponse, createDocsSitemapResponse, createMcpSearchAdapter, createSimpleSearchAdapter, createTheme, createTypesenseSearchAdapter, deepMerge, defineDocs, detectDocsMarkdownAgentRequest, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, emitDocsTelemetryAgentSurfaceEvent, emitDocsTelemetryEvent, emitDocsTelemetryMcpToolEvent, emitDocsTelemetryProjectEvent, estimateReadingTimeMinutes, extendTheme, findDocsMarkdownPage, formatDocsAskAIPackageHints, getDocsLlmsTxtMaxCharsIssue, getDocsMarkdownCanonicalLinkHeader, getDocsMarkdownVaryHeader, getDocsRequestAnalyticsProperties, getDocsRobotsAllowRoutes, getDocsTelemetryFeatures, hasDocsMarkdownSignatureAgent, hashGeneratedAgentContent, inferDocsAskAIPackageHints, inferDocsTelemetryAgentSurface, isDocsAgentDiscoveryRequest, isDocsAgentsRequest, isDocsConfigRequest, isDocsLlmsTxtPublicRequest, isDocsMcpRequest, isDocsPublicGetRequest, isDocsSkillRequest, matchesDocsLlmsTxtSection, normalizeDocsPathSegment, normalizeDocsRelated, normalizeDocsUrlPath, normalizeGeneratedAgentContent, parseDocsAgentFeedbackData, parseGeneratedAgentDocument, performDocsSearch, readDocsSitemapManifestFromContentMap, renderDocsAgentsDocument, renderDocsLlmsTxt, renderDocsMarkdownDocument, renderDocsMarkdownNotFound, renderDocsPageStructuredDataJson, renderDocsRelatedMarkdownLines, renderDocsRobotsGeneratedBlock, renderDocsRobotsTxt, renderDocsSitemapMarkdown, renderDocsSitemapXml, renderDocsSkillDocument, resolveAskAISearchRequestConfig, resolveChangelogConfig, resolveDocsAgentFeedbackConfig, resolveDocsAgentFeedbackRequest, resolveDocsAgentMdxContent, resolveDocsAgentsFormat, resolveDocsAnalyticsConfig, resolveDocsI18n, resolveDocsLlmsTxtFormat, resolveDocsLlmsTxtRequest, resolveDocsLlmsTxtSections, resolveDocsLocale, resolveDocsMarkdownCanonicalUrl, resolveDocsMarkdownRecovery, resolveDocsMarkdownRequest, resolveDocsMetadataBaseUrl, resolveDocsObservabilityConfig, resolveDocsOpenApiDiscoveryConfig, resolveDocsPath, resolveDocsRobotsConfig, resolveDocsRobotsRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveDocsSkillFormat, resolveDocsTelemetryConfig, resolveOGImage, resolvePageReadingTime, resolvePageSidebarFolderIndexBehavior, resolveReadingTimeFromContent, resolveReadingTimeFromSource, resolveReadingTimeOptions, resolveSearchRequestConfig, resolveSidebarFolderIndexBehavior, resolveSidebarFolderIndexBehaviorForPath, resolveTitle, selectDocsLlmsTxtContent, serializeGeneratedAgentDocument, stripGeneratedAgentProvenance, toDocsMarkdownUrl, toDocsSitemapMarkdownUrl, upsertDocsRobotsGeneratedBlock, validateDocsAgentFeedbackPayload };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as extendTheme, a as resolveReadingTimeOptions, b as defineDocs, c as buildPageTwitter, d as resolveOGImage, f as resolveTitle, g as createTheme, h as resolveDocsPath, i as resolveReadingTimeFromSource, l as renderDocsPageStructuredDataJson, m as resolveDocsLocale, n as resolvePageReadingTime, o as buildDocsPageStructuredData, p as resolveDocsI18n, r as resolveReadingTimeFromContent, s as buildPageOpenGraph, t as estimateReadingTimeMinutes, u as resolveDocsMetadataBaseUrl, v as deepMerge, y as resolveChangelogConfig } from "./reading-time-CPAy1SWO.mjs";
|
|
2
|
-
import { A as resolveDocsTelemetryConfig, C as resolveSidebarFolderIndexBehaviorForPath, D as emitDocsTelemetryProjectEvent, E as emitDocsTelemetryMcpToolEvent, F as emitDocsAnalyticsEvent, I as emitDocsObservabilityEvent, L as getDocsRequestAnalyticsProperties, M as createDocsAgentTraceContext, N as createDocsAgentTraceId, O as getDocsTelemetryFeatures, P as emitDocsAgentTraceEvent, R as resolveDocsAnalyticsConfig, S as resolveSidebarFolderIndexBehavior, T as emitDocsTelemetryEvent, _ as parseGeneratedAgentDocument, a as createMcpSearchAdapter, b as applySidebarFolderIndexBehavior, c as formatDocsAskAIPackageHints, d as resolveAskAISearchRequestConfig, f as resolveSearchRequestConfig, g as normalizeGeneratedAgentContent, h as hashGeneratedAgentContent, i as createCustomSearchAdapter, j as DOCS_AGENT_TRACE_EVENT_TYPES, k as inferDocsTelemetryAgentSurface, l as inferDocsAskAIPackageHints, m as GENERATED_AGENT_PROVENANCE_VERSION, n as buildDocsSearchDocuments, o as createSimpleSearchAdapter, p as GENERATED_AGENT_PROVENANCE_MARKER, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter, t as buildDocsAskAIContext, u as performDocsSearch, v as serializeGeneratedAgentDocument, w as emitDocsTelemetryAgentSurfaceEvent, x as resolvePageSidebarFolderIndexBehavior, y as stripGeneratedAgentProvenance, z as resolveDocsObservabilityConfig } from "./search-
|
|
3
|
-
import { $ as
|
|
4
|
-
import { a as analyzeDocsRobotsTxt, c as renderDocsRobotsGeneratedBlock, d as resolveDocsRobotsRequest, f as upsertDocsRobotsGeneratedBlock, i as DOCS_ROBOTS_GENERATED_BLOCK_START, l as renderDocsRobotsTxt, n as DEFAULT_ROBOTS_TXT_ROUTE, o as createDocsRobotsResponse, r as DOCS_ROBOTS_GENERATED_BLOCK_END, s as getDocsRobotsAllowRoutes, t as DEFAULT_DOCS_AI_ROBOTS_USER_AGENTS, u as resolveDocsRobotsConfig } from "./robots-
|
|
2
|
+
import { A as resolveDocsTelemetryConfig, C as resolveSidebarFolderIndexBehaviorForPath, D as emitDocsTelemetryProjectEvent, E as emitDocsTelemetryMcpToolEvent, F as emitDocsAnalyticsEvent, I as emitDocsObservabilityEvent, L as getDocsRequestAnalyticsProperties, M as createDocsAgentTraceContext, N as createDocsAgentTraceId, O as getDocsTelemetryFeatures, P as emitDocsAgentTraceEvent, R as resolveDocsAnalyticsConfig, S as resolveSidebarFolderIndexBehavior, T as emitDocsTelemetryEvent, _ as parseGeneratedAgentDocument, a as createMcpSearchAdapter, b as applySidebarFolderIndexBehavior, c as formatDocsAskAIPackageHints, d as resolveAskAISearchRequestConfig, f as resolveSearchRequestConfig, g as normalizeGeneratedAgentContent, h as hashGeneratedAgentContent, i as createCustomSearchAdapter, j as DOCS_AGENT_TRACE_EVENT_TYPES, k as inferDocsTelemetryAgentSurface, l as inferDocsAskAIPackageHints, m as GENERATED_AGENT_PROVENANCE_VERSION, n as buildDocsSearchDocuments, o as createSimpleSearchAdapter, p as GENERATED_AGENT_PROVENANCE_MARKER, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter, t as buildDocsAskAIContext, u as performDocsSearch, v as serializeGeneratedAgentDocument, w as emitDocsTelemetryAgentSurfaceEvent, x as resolvePageSidebarFolderIndexBehavior, y as stripGeneratedAgentProvenance, z as resolveDocsObservabilityConfig } from "./search-BA76-30z.mjs";
|
|
3
|
+
import { $ as renderDocsSkillDocument, A as buildDocsConfigMap, At as renderDocsRelatedMarkdownLines, B as isDocsConfigRequest, C as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, Ct as renderDocsSitemapMarkdown, D as DOCS_TRADITIONAL_BOT_USER_AGENT_HEADER_PATTERN, Dt as resolveDocsSitemapRequest, E as DOCS_MARKDOWN_SIGNATURE_AGENT_HEADER, Et as resolveDocsSitemapPageLastmod, F as getDocsMarkdownCanonicalLinkHeader, G as matchesDocsLlmsTxtSection, H as isDocsMcpRequest, I as getDocsMarkdownVaryHeader, J as parseDocsAgentFeedbackData, K as normalizeDocsPathSegment, L as hasDocsMarkdownSignatureAgent, M as detectDocsMarkdownAgentRequest, N as findDocsMarkdownPage, O as buildDocsAgentDiscoverySpec, Ot as toDocsSitemapMarkdownUrl, P as getDocsLlmsTxtMaxCharsIssue, Q as renderDocsMarkdownNotFound, R as isDocsAgentDiscoveryRequest, S as DEFAULT_SKILL_MD_ROUTE, St as readDocsSitemapManifestFromContentMap, T as DOCS_BOT_LIKE_USER_AGENT_HEADER_PATTERN, Tt as resolveDocsSitemapConfig, U as isDocsPublicGetRequest, V as isDocsLlmsTxtPublicRequest, W as isDocsSkillRequest, X as renderDocsLlmsTxt, Y as renderDocsAgentsDocument, Z as renderDocsMarkdownDocument, _ as DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE, _t as DEFAULT_SITEMAP_MD_ROUTE, a as DEFAULT_AGENT_MD_ROUTE, at as resolveDocsLlmsTxtRequest, b as DEFAULT_MCP_WELL_KNOWN_ROUTE, bt as buildDocsSitemapManifest, c as DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, ct as resolveDocsMarkdownRecovery, d as DEFAULT_DOCS_CONFIG_FORMAT, dt as resolveDocsSkillFormat, et as resolveDocsAgentFeedbackConfig, f as DEFAULT_DOCS_CONFIG_ROUTE, ft as selectDocsLlmsTxtContent, g as DEFAULT_LLMS_TXT_ROUTE, gt as DEFAULT_SITEMAP_MD_DOCS_ROUTE, h as DEFAULT_LLMS_TXT_MAX_CHARS, ht as DEFAULT_SITEMAP_MANIFEST_PATH, i as DEFAULT_AGENT_FEEDBACK_ROUTE, it as resolveDocsLlmsTxtFormat, j as buildDocsMcpEndpointCandidates, k as buildDocsAgentFeedbackSchema, kt as normalizeDocsRelated, l as DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, lt as resolveDocsMarkdownRequest, m as DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE, mt as validateDocsAgentFeedbackPayload, n as DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, nt as resolveDocsAgentMdxContent, o as DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, ot as resolveDocsLlmsTxtSections, p as DEFAULT_LLMS_FULL_TXT_ROUTE, pt as toDocsMarkdownUrl, q as normalizeDocsUrlPath, r as DEFAULT_AGENT_FEEDBACK_PAYLOAD_SCHEMA, rt as resolveDocsAgentsFormat, s as DEFAULT_AGENT_SPEC_ROUTE, st as resolveDocsMarkdownCanonicalUrl, t as DEFAULT_AGENTS_MD_ROUTE, tt as resolveDocsAgentFeedbackRequest, u as DEFAULT_DOCS_API_ROUTE, ut as resolveDocsOpenApiDiscoveryConfig, v as DEFAULT_MCP_PUBLIC_ROUTE, vt as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, w as DOCS_AI_AGENT_USER_AGENT_HEADER_PATTERN, wt as renderDocsSitemapXml, x as DEFAULT_OPENAPI_SCHEMA_ROUTE, xt as createDocsSitemapResponse, y as DEFAULT_MCP_ROUTE, yt as DEFAULT_SITEMAP_XML_ROUTE, z as isDocsAgentsRequest } from "./agent-DTMhPZtU.mjs";
|
|
4
|
+
import { a as analyzeDocsRobotsTxt, c as renderDocsRobotsGeneratedBlock, d as resolveDocsRobotsRequest, f as upsertDocsRobotsGeneratedBlock, i as DOCS_ROBOTS_GENERATED_BLOCK_START, l as renderDocsRobotsTxt, n as DEFAULT_ROBOTS_TXT_ROUTE, o as createDocsRobotsResponse, r as DOCS_ROBOTS_GENERATED_BLOCK_END, s as getDocsRobotsAllowRoutes, t as DEFAULT_DOCS_AI_ROBOTS_USER_AGENTS, u as resolveDocsRobotsConfig } from "./robots-Dq9xghyE.mjs";
|
|
5
5
|
|
|
6
|
-
export { DEFAULT_AGENTS_MD_ROUTE, DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, DEFAULT_AGENT_FEEDBACK_PAYLOAD_SCHEMA, DEFAULT_AGENT_FEEDBACK_ROUTE, DEFAULT_AGENT_MD_ROUTE, DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, DEFAULT_AGENT_SPEC_ROUTE, DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, DEFAULT_DOCS_AI_ROBOTS_USER_AGENTS, DEFAULT_DOCS_API_ROUTE, DEFAULT_LLMS_FULL_TXT_ROUTE, DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE, DEFAULT_LLMS_TXT_MAX_CHARS, DEFAULT_LLMS_TXT_ROUTE, DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE, DEFAULT_MCP_PUBLIC_ROUTE, DEFAULT_MCP_ROUTE, DEFAULT_MCP_WELL_KNOWN_ROUTE, DEFAULT_OPENAPI_SCHEMA_ROUTE, DEFAULT_ROBOTS_TXT_ROUTE, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DEFAULT_SKILL_MD_ROUTE, DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_AI_AGENT_USER_AGENT_HEADER_PATTERN, DOCS_BOT_LIKE_USER_AGENT_HEADER_PATTERN, DOCS_MARKDOWN_SIGNATURE_AGENT_HEADER, DOCS_ROBOTS_GENERATED_BLOCK_END, DOCS_ROBOTS_GENERATED_BLOCK_START, DOCS_TRADITIONAL_BOT_USER_AGENT_HEADER_PATTERN, GENERATED_AGENT_PROVENANCE_MARKER, GENERATED_AGENT_PROVENANCE_VERSION, analyzeDocsRobotsTxt, applySidebarFolderIndexBehavior, buildDocsAgentDiscoverySpec, buildDocsAgentFeedbackSchema, buildDocsAskAIContext, buildDocsMcpEndpointCandidates, buildDocsPageStructuredData, buildDocsSearchDocuments, buildDocsSitemapManifest, buildPageOpenGraph, buildPageTwitter, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsRobotsResponse, createDocsSitemapResponse, createMcpSearchAdapter, createSimpleSearchAdapter, createTheme, createTypesenseSearchAdapter, deepMerge, defineDocs, detectDocsMarkdownAgentRequest, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, emitDocsTelemetryAgentSurfaceEvent, emitDocsTelemetryEvent, emitDocsTelemetryMcpToolEvent, emitDocsTelemetryProjectEvent, estimateReadingTimeMinutes, extendTheme, findDocsMarkdownPage, formatDocsAskAIPackageHints, getDocsLlmsTxtMaxCharsIssue, getDocsMarkdownCanonicalLinkHeader, getDocsMarkdownVaryHeader, getDocsRequestAnalyticsProperties, getDocsRobotsAllowRoutes, getDocsTelemetryFeatures, hasDocsMarkdownSignatureAgent, hashGeneratedAgentContent, inferDocsAskAIPackageHints, inferDocsTelemetryAgentSurface, isDocsAgentDiscoveryRequest, isDocsAgentsRequest, isDocsLlmsTxtPublicRequest, isDocsMcpRequest, isDocsPublicGetRequest, isDocsSkillRequest, matchesDocsLlmsTxtSection, normalizeDocsPathSegment, normalizeDocsRelated, normalizeDocsUrlPath, normalizeGeneratedAgentContent, parseDocsAgentFeedbackData, parseGeneratedAgentDocument, performDocsSearch, readDocsSitemapManifestFromContentMap, renderDocsAgentsDocument, renderDocsLlmsTxt, renderDocsMarkdownDocument, renderDocsMarkdownNotFound, renderDocsPageStructuredDataJson, renderDocsRelatedMarkdownLines, renderDocsRobotsGeneratedBlock, renderDocsRobotsTxt, renderDocsSitemapMarkdown, renderDocsSitemapXml, renderDocsSkillDocument, resolveAskAISearchRequestConfig, resolveChangelogConfig, resolveDocsAgentFeedbackConfig, resolveDocsAgentFeedbackRequest, resolveDocsAgentMdxContent, resolveDocsAgentsFormat, resolveDocsAnalyticsConfig, resolveDocsI18n, resolveDocsLlmsTxtFormat, resolveDocsLlmsTxtRequest, resolveDocsLlmsTxtSections, resolveDocsLocale, resolveDocsMarkdownCanonicalUrl, resolveDocsMarkdownRecovery, resolveDocsMarkdownRequest, resolveDocsMetadataBaseUrl, resolveDocsObservabilityConfig, resolveDocsOpenApiDiscoveryConfig, resolveDocsPath, resolveDocsRobotsConfig, resolveDocsRobotsRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveDocsSkillFormat, resolveDocsTelemetryConfig, resolveOGImage, resolvePageReadingTime, resolvePageSidebarFolderIndexBehavior, resolveReadingTimeFromContent, resolveReadingTimeFromSource, resolveReadingTimeOptions, resolveSearchRequestConfig, resolveSidebarFolderIndexBehavior, resolveSidebarFolderIndexBehaviorForPath, resolveTitle, selectDocsLlmsTxtContent, serializeGeneratedAgentDocument, stripGeneratedAgentProvenance, toDocsMarkdownUrl, toDocsSitemapMarkdownUrl, upsertDocsRobotsGeneratedBlock, validateDocsAgentFeedbackPayload };
|
|
6
|
+
export { DEFAULT_AGENTS_MD_ROUTE, DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, DEFAULT_AGENT_FEEDBACK_PAYLOAD_SCHEMA, DEFAULT_AGENT_FEEDBACK_ROUTE, DEFAULT_AGENT_MD_ROUTE, DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, DEFAULT_AGENT_SPEC_ROUTE, DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, DEFAULT_DOCS_AI_ROBOTS_USER_AGENTS, DEFAULT_DOCS_API_ROUTE, DEFAULT_DOCS_CONFIG_FORMAT, DEFAULT_DOCS_CONFIG_ROUTE, DEFAULT_LLMS_FULL_TXT_ROUTE, DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE, DEFAULT_LLMS_TXT_MAX_CHARS, DEFAULT_LLMS_TXT_ROUTE, DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE, DEFAULT_MCP_PUBLIC_ROUTE, DEFAULT_MCP_ROUTE, DEFAULT_MCP_WELL_KNOWN_ROUTE, DEFAULT_OPENAPI_SCHEMA_ROUTE, DEFAULT_ROBOTS_TXT_ROUTE, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DEFAULT_SKILL_MD_ROUTE, DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_AI_AGENT_USER_AGENT_HEADER_PATTERN, DOCS_BOT_LIKE_USER_AGENT_HEADER_PATTERN, DOCS_MARKDOWN_SIGNATURE_AGENT_HEADER, DOCS_ROBOTS_GENERATED_BLOCK_END, DOCS_ROBOTS_GENERATED_BLOCK_START, DOCS_TRADITIONAL_BOT_USER_AGENT_HEADER_PATTERN, GENERATED_AGENT_PROVENANCE_MARKER, GENERATED_AGENT_PROVENANCE_VERSION, analyzeDocsRobotsTxt, applySidebarFolderIndexBehavior, buildDocsAgentDiscoverySpec, buildDocsAgentFeedbackSchema, buildDocsAskAIContext, buildDocsConfigMap, buildDocsMcpEndpointCandidates, buildDocsPageStructuredData, buildDocsSearchDocuments, buildDocsSitemapManifest, buildPageOpenGraph, buildPageTwitter, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsRobotsResponse, createDocsSitemapResponse, createMcpSearchAdapter, createSimpleSearchAdapter, createTheme, createTypesenseSearchAdapter, deepMerge, defineDocs, detectDocsMarkdownAgentRequest, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, emitDocsTelemetryAgentSurfaceEvent, emitDocsTelemetryEvent, emitDocsTelemetryMcpToolEvent, emitDocsTelemetryProjectEvent, estimateReadingTimeMinutes, extendTheme, findDocsMarkdownPage, formatDocsAskAIPackageHints, getDocsLlmsTxtMaxCharsIssue, getDocsMarkdownCanonicalLinkHeader, getDocsMarkdownVaryHeader, getDocsRequestAnalyticsProperties, getDocsRobotsAllowRoutes, getDocsTelemetryFeatures, hasDocsMarkdownSignatureAgent, hashGeneratedAgentContent, inferDocsAskAIPackageHints, inferDocsTelemetryAgentSurface, isDocsAgentDiscoveryRequest, isDocsAgentsRequest, isDocsConfigRequest, isDocsLlmsTxtPublicRequest, isDocsMcpRequest, isDocsPublicGetRequest, isDocsSkillRequest, matchesDocsLlmsTxtSection, normalizeDocsPathSegment, normalizeDocsRelated, normalizeDocsUrlPath, normalizeGeneratedAgentContent, parseDocsAgentFeedbackData, parseGeneratedAgentDocument, performDocsSearch, readDocsSitemapManifestFromContentMap, renderDocsAgentsDocument, renderDocsLlmsTxt, renderDocsMarkdownDocument, renderDocsMarkdownNotFound, renderDocsPageStructuredDataJson, renderDocsRelatedMarkdownLines, renderDocsRobotsGeneratedBlock, renderDocsRobotsTxt, renderDocsSitemapMarkdown, renderDocsSitemapXml, renderDocsSkillDocument, resolveAskAISearchRequestConfig, resolveChangelogConfig, resolveDocsAgentFeedbackConfig, resolveDocsAgentFeedbackRequest, resolveDocsAgentMdxContent, resolveDocsAgentsFormat, resolveDocsAnalyticsConfig, resolveDocsI18n, resolveDocsLlmsTxtFormat, resolveDocsLlmsTxtRequest, resolveDocsLlmsTxtSections, resolveDocsLocale, resolveDocsMarkdownCanonicalUrl, resolveDocsMarkdownRecovery, resolveDocsMarkdownRequest, resolveDocsMetadataBaseUrl, resolveDocsObservabilityConfig, resolveDocsOpenApiDiscoveryConfig, resolveDocsPath, resolveDocsRobotsConfig, resolveDocsRobotsRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveDocsSkillFormat, resolveDocsTelemetryConfig, resolveOGImage, resolvePageReadingTime, resolvePageSidebarFolderIndexBehavior, resolveReadingTimeFromContent, resolveReadingTimeFromSource, resolveReadingTimeOptions, resolveSearchRequestConfig, resolveSidebarFolderIndexBehavior, resolveSidebarFolderIndexBehaviorForPath, resolveTitle, selectDocsLlmsTxtContent, serializeGeneratedAgentDocument, stripGeneratedAgentProvenance, toDocsMarkdownUrl, toDocsSitemapMarkdownUrl, upsertDocsRobotsGeneratedBlock, validateDocsAgentFeedbackPayload };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./search-
|
|
2
|
-
import "./agent-
|
|
3
|
-
import "./sitemap-server-
|
|
1
|
+
import "./search-BA76-30z.mjs";
|
|
2
|
+
import "./agent-DTMhPZtU.mjs";
|
|
3
|
+
import "./sitemap-server-y96rUcF4.mjs";
|
|
4
4
|
import { createFilesystemDocsMcpSource, resolveDocsMcpConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
5
5
|
import "./server.mjs";
|
|
6
6
|
import { c as readNavTitle, m as resolveDocsContentDir, n as extractObjectLiteral, o as readBooleanProperty, p as resolveDocsConfigPath, u as readStringProperty } from "./config-De5z-2LK.mjs";
|
package/dist/mcp.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as emitDocsTelemetryProjectEvent, E as emitDocsTelemetryMcpToolEvent, F as emitDocsAnalyticsEvent, M as createDocsAgentTraceContext, N as createDocsAgentTraceId, P as emitDocsAgentTraceEvent, u as performDocsSearch, w as emitDocsTelemetryAgentSurfaceEvent, x as resolvePageSidebarFolderIndexBehavior, y as stripGeneratedAgentProvenance } from "./search-
|
|
2
|
-
import {
|
|
1
|
+
import { D as emitDocsTelemetryProjectEvent, E as emitDocsTelemetryMcpToolEvent, F as emitDocsAnalyticsEvent, M as createDocsAgentTraceContext, N as createDocsAgentTraceId, P as emitDocsAgentTraceEvent, u as performDocsSearch, w as emitDocsTelemetryAgentSurfaceEvent, x as resolvePageSidebarFolderIndexBehavior, y as stripGeneratedAgentProvenance } from "./search-BA76-30z.mjs";
|
|
2
|
+
import { At as renderDocsRelatedMarkdownLines, kt as normalizeDocsRelated } from "./agent-DTMhPZtU.mjs";
|
|
3
3
|
import matter from "gray-matter";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, K as normalizeDocsPathSegment, S as DEFAULT_SKILL_MD_ROUTE, Tt as resolveDocsSitemapConfig, _ as DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE, a as DEFAULT_AGENT_MD_ROUTE, b as DEFAULT_MCP_WELL_KNOWN_ROUTE, c as DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, g as DEFAULT_LLMS_TXT_ROUTE, l as DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, m as DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE, n as DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, o as DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, p as DEFAULT_LLMS_FULL_TXT_ROUTE, t as DEFAULT_AGENTS_MD_ROUTE, v as DEFAULT_MCP_PUBLIC_ROUTE } from "./agent-DTMhPZtU.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/robots.ts
|
|
4
4
|
const DEFAULT_ROBOTS_TXT_ROUTE = "/robots.txt";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./agent-
|
|
2
|
-
import { c as renderDocsRobotsGeneratedBlock, f as upsertDocsRobotsGeneratedBlock, i as DOCS_ROBOTS_GENERATED_BLOCK_START, r as DOCS_ROBOTS_GENERATED_BLOCK_END, u as resolveDocsRobotsConfig } from "./robots-
|
|
1
|
+
import "./agent-DTMhPZtU.mjs";
|
|
2
|
+
import { c as renderDocsRobotsGeneratedBlock, f as upsertDocsRobotsGeneratedBlock, i as DOCS_ROBOTS_GENERATED_BLOCK_START, r as DOCS_ROBOTS_GENERATED_BLOCK_END, u as resolveDocsRobotsConfig } from "./robots-Dq9xghyE.mjs";
|
|
3
3
|
import { f as readTopLevelStringProperty, i as loadDocsConfigModule, o as readBooleanProperty, p as resolveDocsConfigPath, t as extractNestedObjectLiteral, u as readStringProperty } from "./config-De5z-2LK.mjs";
|
|
4
4
|
import { t as detectFramework } from "./utils-CoHZJ1i4.mjs";
|
|
5
5
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as isDocsAgentDiscoveryRequest, W as isDocsSkillRequest, at as resolveDocsLlmsTxtRequest, dt as resolveDocsSkillFormat, et as resolveDocsAgentFeedbackConfig, lt as resolveDocsMarkdownRequest, rt as resolveDocsAgentsFormat, tt as resolveDocsAgentFeedbackRequest, z as isDocsAgentsRequest } from "./agent-DTMhPZtU.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/cloud-analytics.ts
|
|
4
4
|
const DEFAULT_DOCS_CLOUD_ANALYTICS_ENDPOINT = "https://api.farming-labs.dev/v1/analytics/events";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as buildDocsSearchDocuments, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter } from "./search-
|
|
2
|
-
import "./agent-
|
|
3
|
-
import "./sitemap-server-
|
|
1
|
+
import { n as buildDocsSearchDocuments, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter } from "./search-BA76-30z.mjs";
|
|
2
|
+
import "./agent-DTMhPZtU.mjs";
|
|
3
|
+
import "./sitemap-server-y96rUcF4.mjs";
|
|
4
4
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
5
5
|
import "./server.mjs";
|
|
6
6
|
import { a as loadProjectEnv, f as readTopLevelStringProperty, m as resolveDocsContentDir, p as resolveDocsConfigPath } from "./config-De5z-2LK.mjs";
|
package/dist/server.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as emitDocsAnalyticsEvent, I as emitDocsObservabilityEvent, L as getDocsRequestAnalyticsProperties, M as createDocsAgentTraceContext, N as createDocsAgentTraceId, P as emitDocsAgentTraceEvent, R as resolveDocsAnalyticsConfig, a as createMcpSearchAdapter, c as formatDocsAskAIPackageHints, d as resolveAskAISearchRequestConfig, f as resolveSearchRequestConfig, i as createCustomSearchAdapter, j as DOCS_AGENT_TRACE_EVENT_TYPES, l as inferDocsAskAIPackageHints, n as buildDocsSearchDocuments, o as createSimpleSearchAdapter, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter, t as buildDocsAskAIContext, u as performDocsSearch, z as resolveDocsObservabilityConfig } from "./search-
|
|
2
|
-
import { Ct as
|
|
3
|
-
import { C as resolveApiReferenceOpenApiDiscovery, S as resolveApiReferenceConfig, T as remarkCodeGroup, _ as buildApiReferenceOpenApiDocument, a as DEFAULT_PROMPT_PROVIDER_TEMPLATES, b as buildApiReferenceScalarCss, c as resolvePromptProviderChoices, d as serializeDocsIconRegistry, f as serializeOpenDocsProvider, g as buildApiReferenceHtmlDocumentAsync, h as buildApiReferenceHtmlDocument, i as DEFAULT_OPEN_DOCS_TARGET, l as sanitizePromptText, m as DEFAULT_API_REFERENCE_OPENAPI_ROUTE, n as DEFAULT_OPEN_DOCS_PROMPT, o as normalizePromptProviderName, p as serializeOpenDocsProviders, r as DEFAULT_OPEN_DOCS_PROVIDER_IDS, s as parsePromptStringArray, t as readDocsSitemapManifest, u as serializeDocsIcon, v as buildApiReferenceOpenApiDocumentAsync, w as resolveApiReferenceRenderer, x as isApiReferenceOpenApiRequest, y as buildApiReferencePageTitle } from "./sitemap-server-
|
|
1
|
+
import { F as emitDocsAnalyticsEvent, I as emitDocsObservabilityEvent, L as getDocsRequestAnalyticsProperties, M as createDocsAgentTraceContext, N as createDocsAgentTraceId, P as emitDocsAgentTraceEvent, R as resolveDocsAnalyticsConfig, a as createMcpSearchAdapter, c as formatDocsAskAIPackageHints, d as resolveAskAISearchRequestConfig, f as resolveSearchRequestConfig, i as createCustomSearchAdapter, j as DOCS_AGENT_TRACE_EVENT_TYPES, l as inferDocsAskAIPackageHints, n as buildDocsSearchDocuments, o as createSimpleSearchAdapter, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter, t as buildDocsAskAIContext, u as performDocsSearch, z as resolveDocsObservabilityConfig } from "./search-BA76-30z.mjs";
|
|
2
|
+
import { Ct as renderDocsSitemapMarkdown, Dt as resolveDocsSitemapRequest, Et as resolveDocsSitemapPageLastmod, Ot as toDocsSitemapMarkdownUrl, St as readDocsSitemapManifestFromContentMap, Tt as resolveDocsSitemapConfig, _t as DEFAULT_SITEMAP_MD_ROUTE, bt as buildDocsSitemapManifest, gt as DEFAULT_SITEMAP_MD_DOCS_ROUTE, ht as DEFAULT_SITEMAP_MANIFEST_PATH, vt as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, wt as renderDocsSitemapXml, xt as createDocsSitemapResponse, yt as DEFAULT_SITEMAP_XML_ROUTE } from "./agent-DTMhPZtU.mjs";
|
|
3
|
+
import { C as resolveApiReferenceOpenApiDiscovery, S as resolveApiReferenceConfig, T as remarkCodeGroup, _ as buildApiReferenceOpenApiDocument, a as DEFAULT_PROMPT_PROVIDER_TEMPLATES, b as buildApiReferenceScalarCss, c as resolvePromptProviderChoices, d as serializeDocsIconRegistry, f as serializeOpenDocsProvider, g as buildApiReferenceHtmlDocumentAsync, h as buildApiReferenceHtmlDocument, i as DEFAULT_OPEN_DOCS_TARGET, l as sanitizePromptText, m as DEFAULT_API_REFERENCE_OPENAPI_ROUTE, n as DEFAULT_OPEN_DOCS_PROMPT, o as normalizePromptProviderName, p as serializeOpenDocsProviders, r as DEFAULT_OPEN_DOCS_PROVIDER_IDS, s as parsePromptStringArray, t as readDocsSitemapManifest, u as serializeDocsIcon, v as buildApiReferenceOpenApiDocumentAsync, w as resolveApiReferenceRenderer, x as isApiReferenceOpenApiRequest, y as buildApiReferencePageTitle } from "./sitemap-server-y96rUcF4.mjs";
|
|
4
4
|
import { a as ensureDocsReviewWorkflow, i as buildDocsReviewWorkflowPathFilters, n as DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, o as readDocsReviewConfigFromSource, r as buildDocsReviewWorkflow, s as resolveDocsReviewConfig, t as DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD } from "./review-CJD85JTm.mjs";
|
|
5
5
|
import { createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, normalizeDocsMcpRoute, resolveDocsMcpConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./search-
|
|
2
|
-
import {
|
|
3
|
-
import "./sitemap-server-
|
|
1
|
+
import "./search-BA76-30z.mjs";
|
|
2
|
+
import { Ct as renderDocsSitemapMarkdown, Tt as resolveDocsSitemapConfig, bt as buildDocsSitemapManifest, wt as renderDocsSitemapXml } from "./agent-DTMhPZtU.mjs";
|
|
3
|
+
import "./sitemap-server-y96rUcF4.mjs";
|
|
4
4
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
5
5
|
import "./server.mjs";
|
|
6
6
|
import { c as readNavTitle, f as readTopLevelStringProperty, i as loadDocsConfigModule, m as resolveDocsContentDir, o as readBooleanProperty, p as resolveDocsConfigPath, t as extractNestedObjectLiteral, u as readStringProperty } from "./config-De5z-2LK.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tt as resolveDocsSitemapConfig } from "./agent-DTMhPZtU.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
4
4
|
import path, { basename, join, relative } from "node:path";
|