@farming-labs/docs 0.2.78 → 0.2.80
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-Ba94vwM2.mjs → agent-Cj50nyeV.mjs} +40 -3
- package/dist/{agent-CHgWJcK_.d.mts → agent-DGALg9hQ.d.mts} +256 -14
- package/dist/{agent-CM-hzhfh.mjs → agent-aWl_O6xn.mjs} +2 -2
- package/dist/{agent-evals-C8dkgJMN.mjs → agent-evals-DvQQtN62.mjs} +1 -1
- package/dist/{agent-export-DdF-IVfg.mjs → agent-export-BISSb83U.mjs} +5 -5
- package/dist/{agent-provenance-D8UBpnMc.mjs → agent-provenance-C_jgqNTW.mjs} +1 -1
- package/dist/agent-skills-bundle.d.mts +1 -1
- package/dist/{agent-skills-server-zvs0Yknt.d.mts → agent-skills-server-Daq-FOay.d.mts} +2 -2
- package/dist/agent-skills-vite.d.mts +3 -3
- package/dist/{agents-v0Em2KZo.mjs → agents-DLNUgcgU.mjs} +4 -4
- package/dist/cli/index.mjs +14 -14
- package/dist/client/react.d.mts +1 -1
- package/dist/{cloud-ask-ai-BwsdF7AQ.d.mts → cloud-ask-ai-o41WfOTk.d.mts} +1 -1
- package/dist/docs-cloud-server.d.mts +2 -2
- package/dist/{doctor-BbrN0rdC.mjs → doctor-BxP-UHaE.mjs} +9 -9
- package/dist/{golden-evaluations-Bk9t-HNq.mjs → golden-evaluations-Bk8MBi3Z.mjs} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +5 -5
- package/dist/{mcp-DT-WNsA-.mjs → mcp-BU63wzaM.mjs} +5 -4
- package/dist/mcp.d.mts +18 -6
- package/dist/mcp.mjs +292 -56
- package/dist/{prompt-references-CoDorsvS.mjs → prompt-references-CMMoF6AY.mjs} +2 -2
- package/dist/retrieval-digest-DIbiu0TW.d.mts +190 -0
- package/dist/{review-DrCaaT7G.mjs → review-D14mUw5D.mjs} +4 -4
- package/dist/{robots-C_v2HK43.mjs → robots-BukukxNm.mjs} +1 -1
- package/dist/{robots-izJbM9cv.mjs → robots-DmczzidR.mjs} +2 -2
- package/dist/{search-YiZMZDfb.mjs → search-DP96dV3e.mjs} +4 -4
- package/dist/server.d.mts +7 -7
- package/dist/server.mjs +6 -6
- package/dist/{sitemap-NO8UMO6Y.mjs → sitemap-DuosRvmn.mjs} +4 -4
- package/dist/{sitemap-server-Dgxs9V6S.mjs → sitemap-server-DzlV1NOB.mjs} +1 -1
- package/dist/{standards-discovery-BWyNgZSs.d.mts → standards-discovery-C2cUIQzW.d.mts} +1 -1
- package/dist/{types-CpLnwHak.d.mts → types-o-ULHPK6.d.mts} +2 -0
- package/package.json +6 -2
- package/dist/retrieval-digest-CO3wqeMk.d.mts +0 -413
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Rn as DocsSitemapConfig, Sr as ResolvedDocsRelatedLink, at as DocsAnalyticsEvent, ir as OpenDocsProvider, it as DocsAnalyticsConfig, nn as DocsObservabilityEvent, ot as DocsAnalyticsEventInput, rn as DocsObservabilityEventInput, sr as OpenDocsTarget, tn as DocsObservabilityConfig, tt as DocsAgentTraceEventInput } from "./types-o-ULHPK6.mjs";
|
|
2
|
+
import { R as DocsDiscoveryApiRouteOptions } from "./standards-discovery-C2cUIQzW.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/analytics.d.ts
|
|
5
|
+
declare const DOCS_AGENT_TRACE_EVENT_TYPES: readonly ["run.start", "run.end", "run.error", "user.input", "prompt.build", "retrieval.query", "retrieval.result", "retrieval.error", "model.call", "model.response", "model.stream", "model.error", "tool.call", "tool.result", "tool.error", "retry", "timeout", "error", "agent.final"];
|
|
6
|
+
interface DocsAgentTraceContext {
|
|
7
|
+
traceId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
startedAt: string;
|
|
10
|
+
startedMs: number;
|
|
11
|
+
}
|
|
12
|
+
interface ResolvedDocsAnalyticsConfig {
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
console: false | "log" | "info" | "debug";
|
|
15
|
+
includeInputs: boolean;
|
|
16
|
+
onEvent?: (event: DocsAnalyticsEvent) => void | Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
interface ResolvedDocsObservabilityConfig {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
console: false | "log" | "info" | "debug";
|
|
21
|
+
includeInputs: boolean;
|
|
22
|
+
onEvent?: (event: DocsObservabilityEvent) => void | Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
declare function createDocsAgentTraceId(prefix?: string): string;
|
|
25
|
+
declare function createDocsAgentTraceContext(name?: string): DocsAgentTraceContext;
|
|
26
|
+
declare function getDocsRequestAnalyticsProperties(request: Request): Record<string, unknown>;
|
|
27
|
+
declare function resolveDocsAnalyticsConfig(analytics?: boolean | DocsAnalyticsConfig): ResolvedDocsAnalyticsConfig;
|
|
28
|
+
declare function resolveDocsObservabilityConfig(observability?: boolean | DocsObservabilityConfig): ResolvedDocsObservabilityConfig;
|
|
29
|
+
declare function emitDocsAnalyticsEvent(analytics: boolean | DocsAnalyticsConfig | undefined, event: DocsAnalyticsEventInput): Promise<void>;
|
|
30
|
+
declare function emitDocsObservabilityEvent(observability: boolean | DocsObservabilityConfig | undefined, event: DocsObservabilityEventInput): Promise<void>;
|
|
31
|
+
declare function emitDocsAgentTraceEvent(observability: boolean | DocsObservabilityConfig | undefined, event: DocsAgentTraceEventInput): Promise<void>;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/prompt-utils.d.ts
|
|
34
|
+
type PromptAction = "copy" | "open";
|
|
35
|
+
interface SerializedOpenDocsProvider {
|
|
36
|
+
name: string;
|
|
37
|
+
iconHtml?: string;
|
|
38
|
+
urlTemplate: string;
|
|
39
|
+
promptUrlTemplate?: string;
|
|
40
|
+
target?: OpenDocsTarget;
|
|
41
|
+
prompt?: string;
|
|
42
|
+
}
|
|
43
|
+
interface PromptProviderChoice {
|
|
44
|
+
name: string;
|
|
45
|
+
iconHtml?: string;
|
|
46
|
+
urlTemplate: string;
|
|
47
|
+
}
|
|
48
|
+
type PromptProviderInput = Pick<SerializedOpenDocsProvider, "name" | "iconHtml"> & Partial<Pick<SerializedOpenDocsProvider, "promptUrlTemplate" | "urlTemplate">>;
|
|
49
|
+
interface SerializeOpenDocsProviderOptions {
|
|
50
|
+
target?: OpenDocsTarget;
|
|
51
|
+
prompt?: string;
|
|
52
|
+
}
|
|
53
|
+
declare const DEFAULT_PROMPT_PROVIDER_TEMPLATES: Record<string, string>;
|
|
54
|
+
declare const DEFAULT_OPEN_DOCS_TARGET: OpenDocsTarget;
|
|
55
|
+
declare const DEFAULT_OPEN_DOCS_PROMPT = "Read this documentation: {url}";
|
|
56
|
+
declare const DEFAULT_OPEN_DOCS_PROVIDER_IDS: readonly ["chatgpt", "claude"];
|
|
57
|
+
declare function normalizePromptProviderName(name: string): string;
|
|
58
|
+
declare function serializeDocsIcon(icon: unknown): string | undefined;
|
|
59
|
+
declare function serializeDocsIconRegistry(icons?: Record<string, unknown>): Record<string, string> | undefined;
|
|
60
|
+
declare function serializeOpenDocsProviders(providers?: OpenDocsProvider[], options?: SerializeOpenDocsProviderOptions): SerializedOpenDocsProvider[] | undefined;
|
|
61
|
+
declare function serializeOpenDocsProvider(provider: OpenDocsProvider, options?: SerializeOpenDocsProviderOptions): SerializedOpenDocsProvider | undefined;
|
|
62
|
+
declare function parsePromptStringArray(value: unknown): string[] | undefined;
|
|
63
|
+
declare function resolvePromptProviderChoices(availableProviders?: PromptProviderInput[], preferredNames?: string[]): PromptProviderChoice[];
|
|
64
|
+
declare function sanitizePromptText(text: string): string;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/sitemap.d.ts
|
|
67
|
+
declare const DEFAULT_SITEMAP_XML_ROUTE = "/sitemap.xml";
|
|
68
|
+
declare const DEFAULT_SITEMAP_MD_ROUTE = "/sitemap.md";
|
|
69
|
+
declare const DEFAULT_SITEMAP_MD_DOCS_ROUTE = "/docs/sitemap.md";
|
|
70
|
+
declare const DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE = "/.well-known/sitemap.md";
|
|
71
|
+
declare const DEFAULT_SITEMAP_MANIFEST_PATH = ".farming-labs/sitemap-manifest.json";
|
|
72
|
+
type DocsSitemapFormat = "xml" | "markdown";
|
|
73
|
+
interface DocsSitemapPageInput {
|
|
74
|
+
slug?: string;
|
|
75
|
+
url: string;
|
|
76
|
+
/** Override the public Markdown representation URL when it differs from `${url}.md`. */
|
|
77
|
+
markdownUrl?: string;
|
|
78
|
+
title: string;
|
|
79
|
+
description?: string;
|
|
80
|
+
related?: ResolvedDocsRelatedLink[];
|
|
81
|
+
sourcePath?: string;
|
|
82
|
+
lastmod?: string;
|
|
83
|
+
lastModified?: string;
|
|
84
|
+
}
|
|
85
|
+
interface DocsSitemapManifestPage {
|
|
86
|
+
url: string;
|
|
87
|
+
absoluteUrl?: string;
|
|
88
|
+
markdownUrl: string;
|
|
89
|
+
title: string;
|
|
90
|
+
description?: string;
|
|
91
|
+
sourcePath?: string;
|
|
92
|
+
lastmod?: string;
|
|
93
|
+
lastmodSource?: "git" | "filesystem" | "frontmatter" | "manifest" | "unknown";
|
|
94
|
+
related?: string[];
|
|
95
|
+
}
|
|
96
|
+
interface DocsSitemapManifest {
|
|
97
|
+
version: 1;
|
|
98
|
+
generatedAt: string;
|
|
99
|
+
baseUrl?: string;
|
|
100
|
+
entry: string;
|
|
101
|
+
siteTitle?: string;
|
|
102
|
+
pages: DocsSitemapManifestPage[];
|
|
103
|
+
}
|
|
104
|
+
interface DocsSitemapResolvedConfig {
|
|
105
|
+
enabled: boolean;
|
|
106
|
+
routePrefix: string;
|
|
107
|
+
baseUrl?: string;
|
|
108
|
+
manifestPath: string;
|
|
109
|
+
xml: {
|
|
110
|
+
enabled: boolean;
|
|
111
|
+
includeLastmod: boolean;
|
|
112
|
+
route: string;
|
|
113
|
+
};
|
|
114
|
+
markdown: {
|
|
115
|
+
enabled: boolean;
|
|
116
|
+
includeDescriptions: boolean;
|
|
117
|
+
includeLastmod: boolean;
|
|
118
|
+
linkTarget: "html" | "markdown" | "both";
|
|
119
|
+
route: string;
|
|
120
|
+
docsRoute?: string;
|
|
121
|
+
wellKnownRoute: string;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
interface CreateDocsSitemapResponseOptions extends DocsDiscoveryApiRouteOptions {
|
|
125
|
+
request: Request;
|
|
126
|
+
sitemap?: boolean | DocsSitemapConfig;
|
|
127
|
+
entry?: string;
|
|
128
|
+
siteTitle?: string;
|
|
129
|
+
baseUrl?: string;
|
|
130
|
+
pages: DocsSitemapPageInput[];
|
|
131
|
+
manifest?: DocsSitemapManifest | null;
|
|
132
|
+
}
|
|
133
|
+
declare function resolveDocsSitemapConfig(sitemap?: boolean | DocsSitemapConfig, defaults?: {
|
|
134
|
+
baseUrl?: string;
|
|
135
|
+
}): DocsSitemapResolvedConfig;
|
|
136
|
+
declare function resolveDocsSitemapRequest(url: URL, sitemap?: boolean | DocsSitemapConfig, options?: DocsDiscoveryApiRouteOptions): DocsSitemapFormat | null;
|
|
137
|
+
declare function toDocsSitemapMarkdownUrl(url: string): string;
|
|
138
|
+
declare function buildDocsSitemapManifest(options: {
|
|
139
|
+
pages: DocsSitemapPageInput[];
|
|
140
|
+
entry?: string;
|
|
141
|
+
siteTitle?: string;
|
|
142
|
+
baseUrl?: string;
|
|
143
|
+
generatedAt?: string;
|
|
144
|
+
resolveLastmod?: (page: DocsSitemapPageInput) => {
|
|
145
|
+
lastmod?: string;
|
|
146
|
+
lastmodSource?: DocsSitemapManifestPage["lastmodSource"];
|
|
147
|
+
} | undefined;
|
|
148
|
+
}): DocsSitemapManifest;
|
|
149
|
+
declare function renderDocsSitemapXml(manifest: DocsSitemapManifest, options?: {
|
|
150
|
+
baseUrl?: string;
|
|
151
|
+
includeLastmod?: boolean;
|
|
152
|
+
}): string;
|
|
153
|
+
declare function renderDocsSitemapMarkdown(manifest: DocsSitemapManifest, options?: {
|
|
154
|
+
baseUrl?: string;
|
|
155
|
+
includeDescriptions?: boolean;
|
|
156
|
+
includeLastmod?: boolean;
|
|
157
|
+
linkTarget?: "html" | "markdown" | "both";
|
|
158
|
+
}): string;
|
|
159
|
+
declare function readDocsSitemapManifestFromContentMap(contentMap?: Record<string, string> | null): DocsSitemapManifest | null;
|
|
160
|
+
declare function resolveDocsSitemapPageLastmod(manifest: DocsSitemapManifest | null | undefined, url: string): string | undefined;
|
|
161
|
+
declare function createDocsSitemapResponse({
|
|
162
|
+
request,
|
|
163
|
+
apiRoute,
|
|
164
|
+
sitemap,
|
|
165
|
+
entry,
|
|
166
|
+
siteTitle,
|
|
167
|
+
baseUrl,
|
|
168
|
+
pages,
|
|
169
|
+
manifest
|
|
170
|
+
}: CreateDocsSitemapResponseOptions): Response | null;
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region src/pagination.d.ts
|
|
173
|
+
declare class DocsPaginationCursorError extends Error {
|
|
174
|
+
readonly code = "invalid_cursor";
|
|
175
|
+
constructor();
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/retrieval-digest.d.ts
|
|
179
|
+
/** Validate the bounded HTTP(S) URL or root-relative URI reference used by provenance. */
|
|
180
|
+
declare function isDocsRetrievalCanonicalUrl(value: string): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Hash a retrieval source projection with portable SHA-256.
|
|
183
|
+
*
|
|
184
|
+
* The projection is normalized by removing one leading BOM, converting CRLF/CR
|
|
185
|
+
* line endings to LF, and trimming trailing whitespace. The helper is exported so
|
|
186
|
+
* agents can independently verify provenance in Node, edge, and browser runtimes.
|
|
187
|
+
*/
|
|
188
|
+
declare function digestDocsRetrievalContent(value: string): `sha256:${string}`;
|
|
189
|
+
//#endregion
|
|
190
|
+
export { SerializedOpenDocsProvider as A, DocsAgentTraceContext as B, DEFAULT_OPEN_DOCS_PROMPT as C, PromptAction as D, DEFAULT_PROMPT_PROVIDER_TEMPLATES as E, serializeDocsIcon as F, emitDocsAgentTraceEvent as G, ResolvedDocsObservabilityConfig as H, serializeDocsIconRegistry as I, getDocsRequestAnalyticsProperties as J, emitDocsAnalyticsEvent as K, serializeOpenDocsProvider as L, parsePromptStringArray as M, resolvePromptProviderChoices as N, PromptProviderChoice as O, sanitizePromptText as P, serializeOpenDocsProviders as R, toDocsSitemapMarkdownUrl as S, DEFAULT_OPEN_DOCS_TARGET as T, createDocsAgentTraceContext as U, ResolvedDocsAnalyticsConfig as V, createDocsAgentTraceId as W, resolveDocsObservabilityConfig as X, resolveDocsAnalyticsConfig as Y, renderDocsSitemapMarkdown as _, DEFAULT_SITEMAP_MD_DOCS_ROUTE as a, resolveDocsSitemapPageLastmod as b, DEFAULT_SITEMAP_XML_ROUTE as c, DocsSitemapManifestPage as d, DocsSitemapPageInput as f, readDocsSitemapManifestFromContentMap as g, createDocsSitemapResponse as h, DEFAULT_SITEMAP_MANIFEST_PATH as i, normalizePromptProviderName as j, SerializeOpenDocsProviderOptions as k, DocsSitemapFormat as l, buildDocsSitemapManifest as m, isDocsRetrievalCanonicalUrl as n, DEFAULT_SITEMAP_MD_ROUTE as o, DocsSitemapResolvedConfig as p, emitDocsObservabilityEvent as q, DocsPaginationCursorError as r, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE as s, digestDocsRetrievalContent as t, DocsSitemapManifest as u, renderDocsSitemapXml as v, DEFAULT_OPEN_DOCS_PROVIDER_IDS as w, resolveDocsSitemapRequest as x, resolveDocsSitemapConfig as y, DOCS_AGENT_TRACE_EVENT_TYPES as z };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as buildDocsAgentDiscoverySpec,
|
|
1
|
+
import { A as buildDocsAgentDiscoverySpec, Gn as getDocsMcpProtectedResourceMetadataRoutes, M as buildDocsConfigMap, Sn as findDocsAudienceMdxIssues, T as DOCS_CONFIG_MAP_TOP_LEVEL_KEYS, pn as resolveAskAISearchRequestConfig } from "./agent-Cj50nyeV.mjs";
|
|
2
2
|
import { _ as hasStructuredPageAgentContract, f as PAGE_AGENT_CONTRACT_FIELDS, g as getPageAgentFrontmatterIssues, v as normalizePageAgentFrontmatter } from "./markdown-sections-7OoA7ylx.mjs";
|
|
3
3
|
import { I as resolveDocsDiscoveryApiRoute, _ as DEFAULT_API_CATALOG_FORMAT, d as DEFAULT_AGENT_SKILLS_ROUTE_PATTERN, h as DEFAULT_AGENT_SKILL_FORMAT, l as DEFAULT_AGENT_SKILLS_INDEX_FORMAT, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, v as DEFAULT_API_CATALOG_ROUTE } from "./standards-discovery-BKlEnK_H.mjs";
|
|
4
|
-
import "./agent-provenance-
|
|
4
|
+
import "./agent-provenance-C_jgqNTW.mjs";
|
|
5
5
|
import { a as resolveDocsMetadataBaseUrl } from "./metadata-N252j5_a.mjs";
|
|
6
|
-
import { c as resolveDocsReviewConfig, o as ensureDocsReviewWorkflow, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-
|
|
6
|
+
import { c as resolveDocsReviewConfig, o as ensureDocsReviewWorkflow, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-DvQQtN62.mjs";
|
|
7
7
|
import { createFilesystemDocsMcpSource, getDocsConfigSchema, resolveDocsMcpConfig } from "./mcp.mjs";
|
|
8
8
|
import "./code-blocks-DnNVNK2M.mjs";
|
|
9
9
|
import { _ as resolveDocsContentDir, g as resolveDocsConfigPath, h as readTopLevelStringProperty, s as loadDocsConfigModuleResultWithProjectEnv } from "./config-Wcdj-D0a.mjs";
|
|
10
10
|
import { t as detectFramework } from "./utils-DpiIioYb.mjs";
|
|
11
|
-
import { a as extractAgentBlocks, i as createAgentUsefulnessPagesFromMcp, n as analyzeAgentSurfaceDrift, r as analyzeAgentUsefulness, t as resolveGoldenEvaluationInput } from "./golden-evaluations-
|
|
11
|
+
import { a as extractAgentBlocks, i as createAgentUsefulnessPagesFromMcp, n as analyzeAgentSurfaceDrift, r as analyzeAgentUsefulness, t as resolveGoldenEvaluationInput } from "./golden-evaluations-Bk8MBi3Z.mjs";
|
|
12
12
|
import matter from "gray-matter";
|
|
13
13
|
import { existsSync, lstatSync, readFileSync, readdirSync } from "node:fs";
|
|
14
14
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as resolveDocsSitemapConfig, S as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE,
|
|
1
|
+
import { It as resolveDocsSitemapConfig, S as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, Un as DEFAULT_MCP_WELL_KNOWN_ROUTE, Vn as DEFAULT_MCP_PUBLIC_ROUTE, a as DEFAULT_AGENT_MD_ROUTE, c as DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, et as normalizeDocsPathSegment, g as DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE, h as DEFAULT_LLMS_FULL_TXT_ROUTE, l as DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, n as DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, o as DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, t as DEFAULT_AGENTS_MD_ROUTE, v as DEFAULT_LLMS_TXT_ROUTE, x as DEFAULT_SKILL_MD_ROUTE, y as DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE } from "./agent-Cj50nyeV.mjs";
|
|
2
2
|
import { a as DEFAULT_A2A_AGENT_CARD_ROUTE, b as DEFAULT_LEGACY_SKILLS_INDEX_ROUTE, f as DEFAULT_AGENT_SKILLS_ROUTE_PREFIX, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, v as DEFAULT_API_CATALOG_ROUTE, x as DEFAULT_LEGACY_SKILLS_ROUTE_PREFIX } from "./standards-discovery-BKlEnK_H.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/robots.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./agent-
|
|
1
|
+
import "./agent-Cj50nyeV.mjs";
|
|
2
2
|
import "./markdown-sections-7OoA7ylx.mjs";
|
|
3
3
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
4
|
-
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-
|
|
4
|
+
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-BukukxNm.mjs";
|
|
5
5
|
import { a as loadDocsConfigModule, g as resolveDocsConfigPath, h as readTopLevelStringProperty, l as readBooleanProperty, m as readTopLevelBooleanProperty, p as readStringProperty, t as extractNestedObjectLiteral } from "./config-Wcdj-D0a.mjs";
|
|
6
6
|
import { t as detectFramework } from "./utils-DpiIioYb.mjs";
|
|
7
7
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { en as buildDocsSearchDocuments, nn as createAlgoliaSearchAdapter, on as createTypesenseSearchAdapter } from "./agent-Cj50nyeV.mjs";
|
|
2
2
|
import "./markdown-sections-7OoA7ylx.mjs";
|
|
3
3
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
4
|
-
import "./agent-provenance-
|
|
4
|
+
import "./agent-provenance-C_jgqNTW.mjs";
|
|
5
5
|
import { t as resolveDocsI18n } from "./i18n-hHVWcflJ.mjs";
|
|
6
6
|
import { a as resolveDocsMetadataBaseUrl } from "./metadata-N252j5_a.mjs";
|
|
7
|
-
import "./sitemap-server-
|
|
8
|
-
import "./agent-evals-
|
|
7
|
+
import "./sitemap-server-DzlV1NOB.mjs";
|
|
8
|
+
import "./agent-evals-DvQQtN62.mjs";
|
|
9
9
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
10
10
|
import "./code-blocks-DnNVNK2M.mjs";
|
|
11
11
|
import "./agent-skills-server-B2EXn2QD.mjs";
|
package/dist/server.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { An as DocsSearchQuery, At as DocsConfig, B as DocsAgentEvaluationAnswerRunner, Dn as DocsSearchFilterField, Dt as DocsCodeBlocksValidateConfig, F as DocsAgentContentChangesConfig, Fn as DocsSearchSourcePage, Ft as DocsContentChangedDocument, H as DocsAgentEvaluationSurface, I as DocsAgentEvaluationAnswerInput, In as DocsSearchWarning, It as DocsContentChangesResponse, J as DocsAgentGoldenExampleVerification, L as DocsAgentEvaluationAnswerProvider, Ln as DocsSearchWarningCode, Lt as DocsContentSnapshot, Mn as DocsSearchResponse, Mt as DocsContentChangeSnapshotContext, Nn as DocsSearchResult, Nt as DocsContentChangeSnapshotLoader, On as DocsSearchFilterInput, Pt as DocsContentChangeSnapshotSaver, Q as DocsAgentGoldenTaskFilters, R as DocsAgentEvaluationAnswerRequest, Rn as DocsSitemapConfig, Rt as DocsContentSnapshotDocument, Sn as DocsSearchDocument, U as DocsAgentEvaluationTaskInput, V as DocsAgentEvaluationSourceReference, X as DocsAgentGoldenTask, Y as DocsAgentGoldenExpectedExample, Z as DocsAgentGoldenTaskExpectation, _n as DocsSearchAdapterContext, a as ApiReferenceRenderer, at as DocsAnalyticsEvent, dn as DocsReviewRulesConfig, ft as DocsAskAIFeedbackConfig, gn as DocsSearchAdapter, gt as DocsAskAIMcpConfig, ht as DocsAskAIFeedbackValue, in as DocsPaginatedSearchResponse, it as DocsAnalyticsConfig, jn as DocsSearchRequest, jt as DocsContentChangeDocument, kn as DocsSearchFilters, ln as DocsReviewCiMode, mt as DocsAskAIFeedbackMessage, nn as DocsObservabilityEvent, nt as DocsAgentTraceEventType, on as DocsRetrievalSourceProvenance, ot as DocsAnalyticsEventInput, pt as DocsAskAIFeedbackData, q as DocsAgentGoldenAnswerExpectation, rn as DocsObservabilityEventInput, rt as DocsAgentTraceStatus, sn as DocsRetrievalSourceScope, tn as DocsObservabilityConfig, tr as McpDocsSearchConfig, tt as DocsAgentTraceEventInput, un as DocsReviewConfig, vn as DocsSearchAdapterFactory, wt as DocsCodeBlocksPlannerProvider, xn as DocsSearchConfig, yn as DocsSearchAdapterPage, z as DocsAgentEvaluationAnswerResult } from "./types-
|
|
2
|
-
import { n as resolveConfiguredAgentSkills, r as resolveConfiguredAgentSkillsSync, t as ResolveConfiguredAgentSkillsOptions } from "./agent-skills-server-
|
|
1
|
+
import { An as DocsSearchQuery, At as DocsConfig, B as DocsAgentEvaluationAnswerRunner, Dn as DocsSearchFilterField, Dt as DocsCodeBlocksValidateConfig, F as DocsAgentContentChangesConfig, Fn as DocsSearchSourcePage, Ft as DocsContentChangedDocument, H as DocsAgentEvaluationSurface, I as DocsAgentEvaluationAnswerInput, In as DocsSearchWarning, It as DocsContentChangesResponse, J as DocsAgentGoldenExampleVerification, L as DocsAgentEvaluationAnswerProvider, Ln as DocsSearchWarningCode, Lt as DocsContentSnapshot, Mn as DocsSearchResponse, Mt as DocsContentChangeSnapshotContext, Nn as DocsSearchResult, Nt as DocsContentChangeSnapshotLoader, On as DocsSearchFilterInput, Pt as DocsContentChangeSnapshotSaver, Q as DocsAgentGoldenTaskFilters, R as DocsAgentEvaluationAnswerRequest, Rn as DocsSitemapConfig, Rt as DocsContentSnapshotDocument, Sn as DocsSearchDocument, U as DocsAgentEvaluationTaskInput, V as DocsAgentEvaluationSourceReference, X as DocsAgentGoldenTask, Y as DocsAgentGoldenExpectedExample, Z as DocsAgentGoldenTaskExpectation, _n as DocsSearchAdapterContext, a as ApiReferenceRenderer, at as DocsAnalyticsEvent, dn as DocsReviewRulesConfig, ft as DocsAskAIFeedbackConfig, gn as DocsSearchAdapter, gt as DocsAskAIMcpConfig, ht as DocsAskAIFeedbackValue, in as DocsPaginatedSearchResponse, it as DocsAnalyticsConfig, jn as DocsSearchRequest, jt as DocsContentChangeDocument, kn as DocsSearchFilters, ln as DocsReviewCiMode, mt as DocsAskAIFeedbackMessage, nn as DocsObservabilityEvent, nt as DocsAgentTraceEventType, on as DocsRetrievalSourceProvenance, ot as DocsAnalyticsEventInput, pt as DocsAskAIFeedbackData, q as DocsAgentGoldenAnswerExpectation, rn as DocsObservabilityEventInput, rt as DocsAgentTraceStatus, sn as DocsRetrievalSourceScope, tn as DocsObservabilityConfig, tr as McpDocsSearchConfig, tt as DocsAgentTraceEventInput, un as DocsReviewConfig, vn as DocsSearchAdapterFactory, wt as DocsCodeBlocksPlannerProvider, xn as DocsSearchConfig, yn as DocsSearchAdapterPage, z as DocsAgentEvaluationAnswerResult } from "./types-o-ULHPK6.mjs";
|
|
2
|
+
import { n as resolveConfiguredAgentSkills, r as resolveConfiguredAgentSkillsSync, t as ResolveConfiguredAgentSkillsOptions } from "./agent-skills-server-Daq-FOay.mjs";
|
|
3
3
|
import { renderDocsAgentSkillsBundle } from "./agent-skills-vite.mjs";
|
|
4
|
-
import { i as isDocsCloudAskAIProvider, n as DocsCloudAskAIResponseOptions, r as createDocsCloudAskAIResponse, t as DocsCloudAskAIConfig } from "./cloud-ask-ai-
|
|
4
|
+
import { i as isDocsCloudAskAIProvider, n as DocsCloudAskAIResponseOptions, r as createDocsCloudAskAIResponse, t as DocsCloudAskAIConfig } from "./cloud-ask-ai-o41WfOTk.mjs";
|
|
5
5
|
import { DocsCloudAskAIOptions, DocsCloudPublicConfig, DocsCloudRouteHandlerOptions, DocsCloudRouteHandlers, DocsCloudRuntimeEnv, DocsCloudRuntimeValue, DocsCloudServer, DocsCloudServerOptions, DocsCloudTrackEventOptions, createDocsCloudRouteHandler, createDocsCloudServer } from "./docs-cloud-server.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { CreateDocsMcpServerOptions, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DOCS_CONFIG_SCHEMA_OPTIONS, DocsMcpAgentContractSummary, DocsMcpCodeExample, DocsMcpConfigSchema, DocsMcpConfigSchemaOption, DocsMcpContextResult, DocsMcpContextSource, DocsMcpDocsList, DocsMcpDocsPageSummary, DocsMcpDocsSection, DocsMcpHttpHandlers, DocsMcpNavigationNode, DocsMcpNavigationTree, DocsMcpPage, DocsMcpPageSectionIndex, DocsMcpPageSectionList, DocsMcpPaginatedDocsList, DocsMcpPagination, DocsMcpRequestContext, DocsMcpResolvedConfig, DocsMcpResolvedCorsConfig, DocsMcpResolvedProtectedResourceConfig, DocsMcpResolvedSecurityConfig, DocsMcpSource, DocsMcpTaskSummary, createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, getDocsConfigSchema, normalizeDocsMcpRoute, resolveDocsMcpConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
6
|
+
import { A as SerializedOpenDocsProvider, B as DocsAgentTraceContext, C as DEFAULT_OPEN_DOCS_PROMPT, D as PromptAction, E as DEFAULT_PROMPT_PROVIDER_TEMPLATES, F as serializeDocsIcon, G as emitDocsAgentTraceEvent, H as ResolvedDocsObservabilityConfig, I as serializeDocsIconRegistry, J as getDocsRequestAnalyticsProperties, K as emitDocsAnalyticsEvent, L as serializeOpenDocsProvider, M as parsePromptStringArray, N as resolvePromptProviderChoices, O as PromptProviderChoice, P as sanitizePromptText, R as serializeOpenDocsProviders, S as toDocsSitemapMarkdownUrl, T as DEFAULT_OPEN_DOCS_TARGET, U as createDocsAgentTraceContext, V as ResolvedDocsAnalyticsConfig, W as createDocsAgentTraceId, X as resolveDocsObservabilityConfig, Y as resolveDocsAnalyticsConfig, _ as renderDocsSitemapMarkdown, a as DEFAULT_SITEMAP_MD_DOCS_ROUTE, b as resolveDocsSitemapPageLastmod, c as DEFAULT_SITEMAP_XML_ROUTE, d as DocsSitemapManifestPage, f as DocsSitemapPageInput, g as readDocsSitemapManifestFromContentMap, h as createDocsSitemapResponse, i as DEFAULT_SITEMAP_MANIFEST_PATH, j as normalizePromptProviderName, k as SerializeOpenDocsProviderOptions, l as DocsSitemapFormat, m as buildDocsSitemapManifest, n as isDocsRetrievalCanonicalUrl, o as DEFAULT_SITEMAP_MD_ROUTE, p as DocsSitemapResolvedConfig, q as emitDocsObservabilityEvent, r as DocsPaginationCursorError, s as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, t as digestDocsRetrievalContent, u as DocsSitemapManifest, v as renderDocsSitemapXml, w as DEFAULT_OPEN_DOCS_PROVIDER_IDS, x as resolveDocsSitemapRequest, y as resolveDocsSitemapConfig, z as DOCS_AGENT_TRACE_EVENT_TYPES } from "./retrieval-digest-DIbiu0TW.mjs";
|
|
7
|
+
import { $n as enrichDocsSearchDocumentsWithProvenance, An as createDocsContentChangesHttpResponse, Bn as DocsSearchRequestResolutionOptions, Cn as DOCS_CONTENT_SNAPSHOT_FORMAT, Dn as DocsResolvedContentChangesConfig, En as DocsContentChangesRequestError, Fn as BuildDocsContentSnapshotOptions, Gn as buildDocsRetrievalDigestProjection, Hn as PerformDocsSearchOptions, Jn as createAlgoliaSearchAdapter, Kn as buildDocsSearchDocuments, Ln as DocsLocalMcpSearchRuntimeConfig, Mn as isDocsContentChangesRequest, Nn as resolveDocsContentChangesConfig, On as ResolveDocsContentChangesOptions, Pn as resolveDocsContentChangesRequest, Qn as createTypesenseSearchAdapter, Rn as DocsLocalMcpSearchRuntimeInput, Sn as DOCS_CONTENT_CHANGES_RESPONSE_VALUE, Tn as DocsContentChangesRequest, Un as buildDocsAskAIContext, Vn as EnrichDocsSearchDocumentsWithProvenanceOptions, Wn as buildDocsContentSnapshot, Xn as createMcpSearchAdapter, Yn as createCustomSearchAdapter, Zn as createSimpleSearchAdapter, _r as extractDocsMarkdownPromptBlocks, ar as resolveAskAISearchRequestConfig, cr as resolveDocsSearchError, dr as resolveLocalDocsMcpSearchConfig, er as formatDocsAskAIPackageHints, fr as resolveSearchRequestConfig, gr as ExtractedDocsMarkdownPromptBlocks, hr as DocsMarkdownPromptBlock, ir as performDocsSearchWithMetadata, jn as isDocsContentChangeGeneration, kn as createDocsContentChangeFeed, lr as resolveDocsSearchFilters, nr as normalizeDocsSearchFilters, or as resolveDocsRetrievalLastModified, rr as performDocsSearch, sr as resolveDocsSearchAudience, tr as inferDocsAskAIPackageHints, ur as resolveDocsSearchRequest, wn as DocsContentChangeFeed, xn as DOCS_CONTENT_CHANGES_FORMAT, zn as DocsSearchRequestError } from "./agent-DGALg9hQ.mjs";
|
|
8
|
+
import { CreateDocsMcpServerOptions, DEFAULT_DOCS_MCP_CONTENT_CHANGE_POLL_INTERVAL_MS, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DOCS_CONFIG_SCHEMA_OPTIONS, DOCS_MCP_CONTENT_CHANGES_CURRENT_URI, DOCS_MCP_CONTENT_CHANGES_URI_TEMPLATE, DocsMcpAgentContractSummary, DocsMcpCodeExample, DocsMcpConfigSchema, DocsMcpConfigSchemaOption, DocsMcpContextResult, DocsMcpContextSource, DocsMcpDocsList, DocsMcpDocsPageSummary, DocsMcpDocsSection, DocsMcpHttpHandlers, DocsMcpNavigationNode, DocsMcpNavigationTree, DocsMcpPage, DocsMcpPageSectionIndex, DocsMcpPageSectionList, DocsMcpPaginatedDocsList, DocsMcpPagination, DocsMcpRequestContext, DocsMcpResolvedConfig, DocsMcpResolvedCorsConfig, DocsMcpResolvedProtectedResourceConfig, DocsMcpResolvedSecurityConfig, DocsMcpSource, DocsMcpTaskSummary, createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, getDocsConfigSchema, normalizeDocsMcpRoute, resolveDocsMcpConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/code-group-mdx.d.ts
|
|
11
11
|
interface MarkdownNode {
|
|
@@ -351,4 +351,4 @@ declare function runDocsGoldenTasks(pages: readonly DocsMcpPage[], tasks: readon
|
|
|
351
351
|
//#region src/sitemap-server.d.ts
|
|
352
352
|
declare function readDocsSitemapManifest(rootDir: string, sitemap?: boolean | DocsSitemapConfig): DocsSitemapManifest | null;
|
|
353
353
|
//#endregion
|
|
354
|
-
export { type ApiReferenceFramework, type ApiReferenceOpenApiDiscovery, type ApiReferenceRenderer, type ApiReferenceRoute, type BuildDocsContentSnapshotOptions, type CreateDocsMcpServerOptions, DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, DEFAULT_OPEN_DOCS_PROMPT, DEFAULT_OPEN_DOCS_PROVIDER_IDS, DEFAULT_OPEN_DOCS_TARGET, DEFAULT_PROMPT_PROVIDER_TEMPLATES, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_CONFIG_SCHEMA_OPTIONS, DOCS_CONTENT_CHANGES_FORMAT, DOCS_CONTENT_CHANGES_RESPONSE_VALUE, DOCS_CONTENT_SNAPSHOT_FORMAT, type DocsAgentContentChangesConfig, type DocsAgentEvaluationAnswerInput, type DocsAgentEvaluationAnswerProvider, type DocsAgentEvaluationAnswerRequest, type DocsAgentEvaluationAnswerResult, type DocsAgentEvaluationAnswerRunner, type DocsAgentEvaluationSourceReference, type DocsAgentEvaluationSurface, type DocsAgentEvaluationTaskInput, type DocsAgentGoldenAnswerExpectation, type DocsAgentGoldenExampleVerification, type DocsAgentTraceContext, type DocsAgentTraceEventInput, type DocsAgentTraceEventType, type DocsAgentTraceStatus, type DocsAnalyticsConfig, type DocsAnalyticsEvent, type DocsAnalyticsEventInput, type DocsAskAIFeedbackConfig, type DocsAskAIFeedbackData, type DocsAskAIFeedbackMessage, type DocsAskAIFeedbackValue, type DocsAskAIMcpConfig, type DocsCloudAskAIConfig, type DocsCloudAskAIOptions, type DocsCloudAskAIResponseOptions, type DocsCloudPublicConfig, type DocsCloudRouteHandlerOptions, type DocsCloudRouteHandlers, type DocsCloudRuntimeEnv, type DocsCloudRuntimeValue, type DocsCloudServer, type DocsCloudServerOptions, type DocsCloudTrackEventOptions, type DocsContentChangeDocument, type DocsContentChangeFeed, type DocsContentChangeSnapshotContext, type DocsContentChangeSnapshotLoader, type DocsContentChangeSnapshotSaver, type DocsContentChangedDocument, type DocsContentChangesRequest, DocsContentChangesRequestError, type DocsContentChangesResponse, type DocsContentSnapshot, type DocsContentSnapshotDocument, type DocsGoldenAnswerMetrics, type DocsGoldenCitationMetrics, type DocsGoldenEvaluationStatus, type DocsGoldenExampleMetrics, type DocsGoldenExampleResult, type DocsGoldenExpectedExample, type DocsGoldenRetrievalMetrics, type DocsGoldenRetrievedSource, type DocsGoldenSelectionMetrics, type DocsGoldenTask, type DocsGoldenTaskExpectation, type DocsGoldenTaskFilters, type DocsGoldenTaskReport, type DocsGoldenTasksReport, type DocsGoldenUsageMetrics, type DocsMarkdownPromptBlock, type DocsMcpAgentContractSummary, type DocsMcpCodeExample, type DocsMcpConfigSchema, type DocsMcpConfigSchemaOption, type DocsMcpContextResult, type DocsMcpContextSource, type DocsMcpDocsList, type DocsMcpDocsPageSummary, type DocsMcpDocsSection, type DocsMcpHttpHandlers, type DocsMcpNavigationNode, type DocsMcpNavigationTree, type DocsMcpPage, type DocsMcpPageSectionIndex, type DocsMcpPageSectionList, type DocsMcpPaginatedDocsList, type DocsMcpPagination, type DocsMcpRequestContext, type DocsMcpResolvedConfig, type DocsMcpResolvedCorsConfig, type DocsMcpResolvedProtectedResourceConfig, type DocsMcpResolvedSecurityConfig, type DocsMcpSource, type DocsMcpTaskSummary, type DocsObservabilityConfig, type DocsObservabilityEvent, type DocsObservabilityEventInput, type DocsPaginatedSearchResponse, DocsPaginationCursorError, type DocsResolvedContentChangesConfig, type DocsRetrievalSourceProvenance, type DocsRetrievalSourceScope, type DocsSearchAdapter, type DocsSearchAdapterContext, type DocsSearchAdapterFactory, type DocsSearchAdapterPage, type DocsSearchConfig, type DocsSearchDocument, type DocsSearchFilterField, type DocsSearchFilterInput, type DocsSearchFilters, type DocsSearchQuery, type DocsSearchRequest, DocsSearchRequestError, type DocsSearchResponse, type DocsSearchResult, type DocsSearchSourcePage, type DocsSearchWarning, type DocsSearchWarningCode, type DocsSitemapFormat, type DocsSitemapManifest, type DocsSitemapManifestPage, type DocsSitemapPageInput, type DocsSitemapResolvedConfig, type EnrichDocsSearchDocumentsWithProvenanceOptions, type ExtractedDocsMarkdownPromptBlocks, type McpDocsSearchConfig, type PerformDocsSearchOptions, type PromptAction, type PromptProviderChoice, type ResolveConfiguredAgentSkillsOptions, type ResolveDocsContentChangesOptions, type ResolvedApiReferenceConfig, type ResolvedDocsAnalyticsConfig, type ResolvedDocsObservabilityConfig, type ResolvedDocsReviewConfig, type RunDocsGoldenTasksOptions, type SerializeOpenDocsProviderOptions, type SerializedOpenDocsProvider, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsContentSnapshot, buildDocsRetrievalDigestProjection, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsContentChangeFeed, createDocsContentChangesHttpResponse, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, digestDocsRetrievalContent, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, enrichDocsSearchDocumentsWithProvenance, ensureDocsReviewWorkflow, extractDocsMarkdownPromptBlocks, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, isDocsContentChangesRequest, isDocsRetrievalCanonicalUrl, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsContentChangesConfig, resolveDocsContentChangesRequest, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
|
354
|
+
export { type ApiReferenceFramework, type ApiReferenceOpenApiDiscovery, type ApiReferenceRenderer, type ApiReferenceRoute, type BuildDocsContentSnapshotOptions, type CreateDocsMcpServerOptions, DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_MCP_CONTENT_CHANGE_POLL_INTERVAL_MS, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, DEFAULT_OPEN_DOCS_PROMPT, DEFAULT_OPEN_DOCS_PROVIDER_IDS, DEFAULT_OPEN_DOCS_TARGET, DEFAULT_PROMPT_PROVIDER_TEMPLATES, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_CONFIG_SCHEMA_OPTIONS, DOCS_CONTENT_CHANGES_FORMAT, DOCS_CONTENT_CHANGES_RESPONSE_VALUE, DOCS_CONTENT_SNAPSHOT_FORMAT, DOCS_MCP_CONTENT_CHANGES_CURRENT_URI, DOCS_MCP_CONTENT_CHANGES_URI_TEMPLATE, type DocsAgentContentChangesConfig, type DocsAgentEvaluationAnswerInput, type DocsAgentEvaluationAnswerProvider, type DocsAgentEvaluationAnswerRequest, type DocsAgentEvaluationAnswerResult, type DocsAgentEvaluationAnswerRunner, type DocsAgentEvaluationSourceReference, type DocsAgentEvaluationSurface, type DocsAgentEvaluationTaskInput, type DocsAgentGoldenAnswerExpectation, type DocsAgentGoldenExampleVerification, type DocsAgentTraceContext, type DocsAgentTraceEventInput, type DocsAgentTraceEventType, type DocsAgentTraceStatus, type DocsAnalyticsConfig, type DocsAnalyticsEvent, type DocsAnalyticsEventInput, type DocsAskAIFeedbackConfig, type DocsAskAIFeedbackData, type DocsAskAIFeedbackMessage, type DocsAskAIFeedbackValue, type DocsAskAIMcpConfig, type DocsCloudAskAIConfig, type DocsCloudAskAIOptions, type DocsCloudAskAIResponseOptions, type DocsCloudPublicConfig, type DocsCloudRouteHandlerOptions, type DocsCloudRouteHandlers, type DocsCloudRuntimeEnv, type DocsCloudRuntimeValue, type DocsCloudServer, type DocsCloudServerOptions, type DocsCloudTrackEventOptions, type DocsContentChangeDocument, type DocsContentChangeFeed, type DocsContentChangeSnapshotContext, type DocsContentChangeSnapshotLoader, type DocsContentChangeSnapshotSaver, type DocsContentChangedDocument, type DocsContentChangesRequest, DocsContentChangesRequestError, type DocsContentChangesResponse, type DocsContentSnapshot, type DocsContentSnapshotDocument, type DocsGoldenAnswerMetrics, type DocsGoldenCitationMetrics, type DocsGoldenEvaluationStatus, type DocsGoldenExampleMetrics, type DocsGoldenExampleResult, type DocsGoldenExpectedExample, type DocsGoldenRetrievalMetrics, type DocsGoldenRetrievedSource, type DocsGoldenSelectionMetrics, type DocsGoldenTask, type DocsGoldenTaskExpectation, type DocsGoldenTaskFilters, type DocsGoldenTaskReport, type DocsGoldenTasksReport, type DocsGoldenUsageMetrics, type DocsLocalMcpSearchRuntimeConfig, type DocsLocalMcpSearchRuntimeInput, type DocsMarkdownPromptBlock, type DocsMcpAgentContractSummary, type DocsMcpCodeExample, type DocsMcpConfigSchema, type DocsMcpConfigSchemaOption, type DocsMcpContextResult, type DocsMcpContextSource, type DocsMcpDocsList, type DocsMcpDocsPageSummary, type DocsMcpDocsSection, type DocsMcpHttpHandlers, type DocsMcpNavigationNode, type DocsMcpNavigationTree, type DocsMcpPage, type DocsMcpPageSectionIndex, type DocsMcpPageSectionList, type DocsMcpPaginatedDocsList, type DocsMcpPagination, type DocsMcpRequestContext, type DocsMcpResolvedConfig, type DocsMcpResolvedCorsConfig, type DocsMcpResolvedProtectedResourceConfig, type DocsMcpResolvedSecurityConfig, type DocsMcpSource, type DocsMcpTaskSummary, type DocsObservabilityConfig, type DocsObservabilityEvent, type DocsObservabilityEventInput, type DocsPaginatedSearchResponse, DocsPaginationCursorError, type DocsResolvedContentChangesConfig, type DocsRetrievalSourceProvenance, type DocsRetrievalSourceScope, type DocsSearchAdapter, type DocsSearchAdapterContext, type DocsSearchAdapterFactory, type DocsSearchAdapterPage, type DocsSearchConfig, type DocsSearchDocument, type DocsSearchFilterField, type DocsSearchFilterInput, type DocsSearchFilters, type DocsSearchQuery, type DocsSearchRequest, DocsSearchRequestError, type DocsSearchRequestResolutionOptions, type DocsSearchResponse, type DocsSearchResult, type DocsSearchSourcePage, type DocsSearchWarning, type DocsSearchWarningCode, type DocsSitemapFormat, type DocsSitemapManifest, type DocsSitemapManifestPage, type DocsSitemapPageInput, type DocsSitemapResolvedConfig, type EnrichDocsSearchDocumentsWithProvenanceOptions, type ExtractedDocsMarkdownPromptBlocks, type McpDocsSearchConfig, type PerformDocsSearchOptions, type PromptAction, type PromptProviderChoice, type ResolveConfiguredAgentSkillsOptions, type ResolveDocsContentChangesOptions, type ResolvedApiReferenceConfig, type ResolvedDocsAnalyticsConfig, type ResolvedDocsObservabilityConfig, type ResolvedDocsReviewConfig, type RunDocsGoldenTasksOptions, type SerializeOpenDocsProviderOptions, type SerializedOpenDocsProvider, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsContentSnapshot, buildDocsRetrievalDigestProjection, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsContentChangeFeed, createDocsContentChangesHttpResponse, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, digestDocsRetrievalContent, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, enrichDocsSearchDocumentsWithProvenance, ensureDocsReviewWorkflow, extractDocsMarkdownPromptBlocks, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, isDocsContentChangeGeneration, isDocsContentChangesRequest, isDocsRetrievalCanonicalUrl, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsContentChangesConfig, resolveDocsContentChangesRequest, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveLocalDocsMcpSearchConfig, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
package/dist/server.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as emitDocsAnalyticsEvent, c as resolveDocsAnalyticsConfig, i as emitDocsAgentTraceEvent, l as resolveDocsObservabilityConfig, n as createDocsAgentTraceContext, o as emitDocsObservabilityEvent, r as createDocsAgentTraceId, s as getDocsRequestAnalyticsProperties, t as DOCS_AGENT_TRACE_EVENT_TYPES } from "./analytics-Bx44lg6d.mjs";
|
|
2
|
-
import { $t as
|
|
2
|
+
import { $t as buildDocsRetrievalDigestProjection, At as DEFAULT_SITEMAP_XML_ROUTE, Bt as DOCS_CONTENT_CHANGES_FORMAT, Dt as DEFAULT_SITEMAP_MD_DOCS_ROUTE, Et as DEFAULT_SITEMAP_MANIFEST_PATH, Ft as renderDocsSitemapXml, Gt as createDocsContentChangesHttpResponse, Ht as DOCS_CONTENT_SNAPSHOT_FORMAT, In as digestDocsRetrievalContent, It as resolveDocsSitemapConfig, Jt as resolveDocsContentChangesConfig, Kt as isDocsContentChangeGeneration, Ln as isDocsRetrievalCanonicalUrl, Lt as resolveDocsSitemapPageLastmod, Mt as createDocsSitemapResponse, Nt as readDocsSitemapManifestFromContentMap, Ot as DEFAULT_SITEMAP_MD_ROUTE, Pn as DocsPaginationCursorError, Pt as renderDocsSitemapMarkdown, Qt as buildDocsContentSnapshot, Rt as resolveDocsSitemapRequest, Ut as DocsContentChangesRequestError, Vt as DOCS_CONTENT_CHANGES_RESPONSE_VALUE, Wt as createDocsContentChangeFeed, Xt as DocsSearchRequestError, Yt as resolveDocsContentChangesRequest, Zt as buildDocsAskAIContext, _n as resolveDocsSearchFilters, an as createSimpleSearchAdapter, bn as resolveSearchRequestConfig, cn as formatDocsAskAIPackageHints, dn as performDocsSearch, en as buildDocsSearchDocuments, fn as performDocsSearchWithMetadata, gn as resolveDocsSearchError, hn as resolveDocsSearchAudience, in as createMcpSearchAdapter, jt as buildDocsSitemapManifest, kt as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, ln as inferDocsAskAIPackageHints, mn as resolveDocsRetrievalLastModified, nn as createAlgoliaSearchAdapter, on as createTypesenseSearchAdapter, pn as resolveAskAISearchRequestConfig, qt as isDocsContentChangesRequest, rn as createCustomSearchAdapter, sn as enrichDocsSearchDocumentsWithProvenance, un as normalizeDocsSearchFilters, vn as resolveDocsSearchRequest, xn as extractDocsMarkdownPromptBlocks, yn as resolveLocalDocsMcpSearchConfig, zt as toDocsSitemapMarkdownUrl } from "./agent-Cj50nyeV.mjs";
|
|
3
3
|
import "./markdown-sections-7OoA7ylx.mjs";
|
|
4
4
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
5
|
-
import "./agent-provenance-
|
|
6
|
-
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-
|
|
7
|
-
import { a as buildDocsReviewWorkflowPathFilters, c as resolveDocsReviewConfig, i as buildDocsReviewWorkflow, n as DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, o as ensureDocsReviewWorkflow, r as DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-
|
|
8
|
-
import { DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DOCS_CONFIG_SCHEMA_OPTIONS, createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, getDocsConfigSchema, normalizeDocsMcpRoute, resolveDocsMcpConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
5
|
+
import "./agent-provenance-C_jgqNTW.mjs";
|
|
6
|
+
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-DzlV1NOB.mjs";
|
|
7
|
+
import { a as buildDocsReviewWorkflowPathFilters, c as resolveDocsReviewConfig, i as buildDocsReviewWorkflow, n as DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, o as ensureDocsReviewWorkflow, r as DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-DvQQtN62.mjs";
|
|
8
|
+
import { DEFAULT_DOCS_MCP_CONTENT_CHANGE_POLL_INTERVAL_MS, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DOCS_CONFIG_SCHEMA_OPTIONS, DOCS_MCP_CONTENT_CHANGES_CURRENT_URI, DOCS_MCP_CONTENT_CHANGES_URI_TEMPLATE, createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, getDocsConfigSchema, normalizeDocsMcpRoute, resolveDocsMcpConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
9
9
|
import { n as isDocsCloudAskAIProvider, t as createDocsCloudAskAIResponse } from "./cloud-ask-ai-sbpjOR2K.mjs";
|
|
10
10
|
import { createDocsCloudRouteHandler, createDocsCloudServer } from "./docs-cloud-server.mjs";
|
|
11
11
|
import "./code-blocks-DnNVNK2M.mjs";
|
|
12
12
|
import { n as resolveConfiguredAgentSkillsSync, t as resolveConfiguredAgentSkills } from "./agent-skills-server-B2EXn2QD.mjs";
|
|
13
13
|
import { renderDocsAgentSkillsBundle } from "./agent-skills-vite.mjs";
|
|
14
14
|
|
|
15
|
-
export { DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, DEFAULT_OPEN_DOCS_PROMPT, DEFAULT_OPEN_DOCS_PROVIDER_IDS, DEFAULT_OPEN_DOCS_TARGET, DEFAULT_PROMPT_PROVIDER_TEMPLATES, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_CONFIG_SCHEMA_OPTIONS, DOCS_CONTENT_CHANGES_FORMAT, DOCS_CONTENT_CHANGES_RESPONSE_VALUE, DOCS_CONTENT_SNAPSHOT_FORMAT, DocsContentChangesRequestError, DocsPaginationCursorError, DocsSearchRequestError, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsContentSnapshot, buildDocsRetrievalDigestProjection, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsContentChangeFeed, createDocsContentChangesHttpResponse, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, digestDocsRetrievalContent, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, enrichDocsSearchDocumentsWithProvenance, ensureDocsReviewWorkflow, extractDocsMarkdownPromptBlocks, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, isDocsContentChangesRequest, isDocsRetrievalCanonicalUrl, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsContentChangesConfig, resolveDocsContentChangesRequest, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
|
15
|
+
export { DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_MCP_CONTENT_CHANGE_POLL_INTERVAL_MS, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, DEFAULT_OPEN_DOCS_PROMPT, DEFAULT_OPEN_DOCS_PROVIDER_IDS, DEFAULT_OPEN_DOCS_TARGET, DEFAULT_PROMPT_PROVIDER_TEMPLATES, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_CONFIG_SCHEMA_OPTIONS, DOCS_CONTENT_CHANGES_FORMAT, DOCS_CONTENT_CHANGES_RESPONSE_VALUE, DOCS_CONTENT_SNAPSHOT_FORMAT, DOCS_MCP_CONTENT_CHANGES_CURRENT_URI, DOCS_MCP_CONTENT_CHANGES_URI_TEMPLATE, DocsContentChangesRequestError, DocsPaginationCursorError, DocsSearchRequestError, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsContentSnapshot, buildDocsRetrievalDigestProjection, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsContentChangeFeed, createDocsContentChangesHttpResponse, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, digestDocsRetrievalContent, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, enrichDocsSearchDocumentsWithProvenance, ensureDocsReviewWorkflow, extractDocsMarkdownPromptBlocks, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, isDocsContentChangeGeneration, isDocsContentChangesRequest, isDocsRetrievalCanonicalUrl, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsContentChangesConfig, resolveDocsContentChangesRequest, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveLocalDocsMcpSearchConfig, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Ft as renderDocsSitemapXml, It as resolveDocsSitemapConfig, Pt as renderDocsSitemapMarkdown, jt as buildDocsSitemapManifest } from "./agent-
|
|
1
|
+
import { Ft as renderDocsSitemapXml, It as resolveDocsSitemapConfig, Pt as renderDocsSitemapMarkdown, jt as buildDocsSitemapManifest } from "./agent-Cj50nyeV.mjs";
|
|
2
2
|
import "./markdown-sections-7OoA7ylx.mjs";
|
|
3
3
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
4
|
-
import "./agent-provenance-
|
|
5
|
-
import "./sitemap-server-
|
|
6
|
-
import "./agent-evals-
|
|
4
|
+
import "./agent-provenance-C_jgqNTW.mjs";
|
|
5
|
+
import "./sitemap-server-DzlV1NOB.mjs";
|
|
6
|
+
import "./agent-evals-DvQQtN62.mjs";
|
|
7
7
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
8
8
|
import "./code-blocks-DnNVNK2M.mjs";
|
|
9
9
|
import "./agent-skills-server-B2EXn2QD.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as resolveDocsSitemapConfig } from "./agent-
|
|
1
|
+
import { It as resolveDocsSitemapConfig } from "./agent-Cj50nyeV.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as DocsAgentA2ASecurityScheme, M as DocsAgentA2ASkill, O as DocsAgentA2AProtocolBinding, h as DocsAgentA2AConfig, k as DocsAgentA2ASecurityRequirement, m as DocsAgentA2ACapabilities } from "./types-
|
|
1
|
+
import { A as DocsAgentA2ASecurityScheme, M as DocsAgentA2ASkill, O as DocsAgentA2AProtocolBinding, h as DocsAgentA2AConfig, k as DocsAgentA2ASecurityRequirement, m as DocsAgentA2ACapabilities } from "./types-o-ULHPK6.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/standards-discovery.d.ts
|
|
4
4
|
declare const DEFAULT_API_CATALOG_ROUTE = "/.well-known/api-catalog";
|
|
@@ -1207,6 +1207,8 @@ interface DocsMcpToolsConfig {
|
|
|
1207
1207
|
* package, and tag values before an agent runs a scoped search.
|
|
1208
1208
|
*/
|
|
1209
1209
|
searchFacets?: boolean;
|
|
1210
|
+
/** Expose body-free document changes with polling through `list_content_changes`. */
|
|
1211
|
+
listContentChanges?: boolean;
|
|
1210
1212
|
/** Expose a `get_navigation` tool for the docs tree. */
|
|
1211
1213
|
getNavigation?: boolean;
|
|
1212
1214
|
/** Expose a `get_code_examples` tool for fenced code blocks and their metadata. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/docs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.80",
|
|
4
4
|
"description": "Modern, flexible MDX-based docs framework — core types, config, and CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"author": "Farming Labs",
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=20"
|
|
14
|
+
},
|
|
12
15
|
"bin": {
|
|
13
16
|
"docs": "./dist/cli/index.mjs"
|
|
14
17
|
},
|
|
@@ -69,7 +72,7 @@
|
|
|
69
72
|
"dependencies": {
|
|
70
73
|
"@clack/prompts": "^0.9.1",
|
|
71
74
|
"@mdx-js/mdx": "^3.1.1",
|
|
72
|
-
"@modelcontextprotocol/
|
|
75
|
+
"@modelcontextprotocol/server": "2.0.0",
|
|
73
76
|
"@scalar/core": "^0.4.3",
|
|
74
77
|
"@vercel/sandbox": "^2.0.0",
|
|
75
78
|
"github-slugger": "^2.0.0",
|
|
@@ -90,6 +93,7 @@
|
|
|
90
93
|
}
|
|
91
94
|
},
|
|
92
95
|
"devDependencies": {
|
|
96
|
+
"@modelcontextprotocol/client": "2.0.0",
|
|
93
97
|
"@types/node": "^22.10.0",
|
|
94
98
|
"@types/react": "^19.2.2",
|
|
95
99
|
"ajv": "^8.18.0",
|