@farming-labs/docs 0.2.103 → 0.2.105
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-BLHMoVId.mjs → agent-CaCWThBY.mjs} +4 -4
- package/dist/{agent-CFqECAG0.mjs → agent-DCTGj6J7.mjs} +212 -19
- package/dist/{agent-evals-GpcaCbRb.mjs → agent-evals-D-sPJfXz.mjs} +5 -5
- package/dist/{agent-export-oiWxB5aX.mjs → agent-export-GcTZPLfB.mjs} +30 -17
- package/dist/agent-feedback-evaluations-DQCTFegz.mjs +240 -0
- package/dist/agent-feedback-loop-vaC-M1sx.mjs +196 -0
- package/dist/agent-maintenance-CuZ7iAKq.mjs +289 -0
- package/dist/agent-skills-bundle.d.mts +1 -1
- package/dist/{agent-skills-progressive-disclosure-Da9LKEKv.mjs → agent-skills-progressive-disclosure-DL-q4JZo.mjs} +1 -1
- package/dist/{agent-skills-server-CICMh0zv.d.mts → agent-skills-server-D34054x5.d.mts} +2 -2
- package/dist/{agent-skills-server-DFqQyO_V.mjs → agent-skills-server-Ddbf15pY.mjs} +1 -1
- package/dist/agent-skills-vite.d.mts +3 -3
- package/dist/agent-skills-vite.mjs +2 -2
- package/dist/{agents-CtqIUW5I.mjs → agents-e1SYT64z.mjs} +11 -10
- package/dist/{analytics-Bx44lg6d.mjs → analytics-CqfcIBdg.mjs} +1 -1
- package/dist/{analytics-C75BnTEW.d.mts → analytics-aeXwEvQX.d.mts} +1 -1
- package/dist/authoring-Do87QzBd.mjs +41 -0
- package/dist/authoring-mcp-Be7quE5R.mjs +380 -0
- package/dist/browser.d.mts +3 -3
- package/dist/browser.mjs +2 -2
- package/dist/cli/index.mjs +103 -35
- package/dist/client/react.d.mts +1 -1
- package/dist/client/react.mjs +1 -1
- package/dist/{cloud-FNfcbfli.mjs → cloud-Bvof6mET.mjs} +3 -3
- package/dist/{cloud-ask-ai-BmbZVAT5.d.mts → cloud-ask-ai-BqfiQaNZ.d.mts} +1 -1
- package/dist/{cloud-ask-ai-CkCYjf2N.mjs → cloud-ask-ai-CK2qlNns.mjs} +1 -1
- package/dist/{code-blocks-Bel6vDqI.mjs → code-blocks-D90CCJFs.mjs} +1 -1
- package/dist/{codeblocks-jbWuvtJQ.mjs → codeblocks-C911CdyJ.mjs} +2 -2
- package/dist/{agent-lWTq6pgr.d.mts → content-change-hydration-CoYRs3pC.d.mts} +707 -675
- package/dist/{dev-BvbYmTLz.mjs → dev-Bx0JNglW.mjs} +3 -3
- package/dist/docs-cloud-server.d.mts +2 -2
- package/dist/docs-cloud-server.mjs +2 -2
- package/dist/{doctor-Bmm0uY98.mjs → doctor-CtK1CRPj.mjs} +20 -16
- package/dist/{downgrade-Dqm0rJMy.mjs → downgrade-BXmQMkMy.mjs} +2 -2
- package/dist/feedback-DWVUMrxy.mjs +72 -0
- package/dist/feedback-evals-k0sFDdms.mjs +146 -0
- package/dist/{golden-evaluations-K45fcWGW.mjs → golden-evaluations-De4KwoYr.mjs} +3 -3
- package/dist/index.d.mts +236 -9
- package/dist/index.mjs +14 -11
- package/dist/{init-jDQSo-Or.mjs → init-CCV2eRNB.mjs} +3 -3
- package/dist/markdown-rendering.mjs +1 -1
- package/dist/{markdown-sections-7OoA7ylx.mjs → markdown-sections-BKy4labo.mjs} +110 -2
- package/dist/{mcp-CwgKlbIz.mjs → mcp-DsjWxF7g.mjs} +11 -10
- package/dist/mcp.d.mts +20 -5
- package/dist/mcp.mjs +538 -56
- package/dist/{metadata-D4v_R1t5.mjs → metadata-7htr-Xj_.mjs} +1 -1
- package/dist/{content-change-hydration-BsbBXAUi.mjs → openapi-mcp-DQ3xptKo.mjs} +182 -4
- package/dist/openapi-mcp-node-vO3IXVGI.mjs +43 -0
- package/dist/{package-version--oQiHwZj.mjs → package-version-Ci99L0yo.mjs} +1 -1
- package/dist/{prompt-references-DW5vG5zs.mjs → prompt-references-1Wce71c7.mjs} +3 -3
- package/dist/propose-DJOiHu9Y.mjs +73 -0
- package/dist/retrieval-digest-B-SgtXKK.mjs +177 -0
- package/dist/retrieval-digest-DyNRD-mt.d.mts +467 -0
- package/dist/{review-C_5wB0rR.mjs → review-XI9FXeos.mjs} +12 -12
- package/dist/{robots-NQesPX5L.mjs → robots-BOjWB1ky.mjs} +2 -2
- package/dist/{robots-BQ42Y84a.mjs → robots-CzKesbdX.mjs} +6 -6
- package/dist/{search-B5etKU-v.mjs → search-DwAoC9X7.mjs} +12 -11
- package/dist/server.d.mts +47 -264
- package/dist/server.mjs +14 -11
- package/dist/{sidebar-CwZlgyAz.d.mts → sidebar-CJze8SBi.d.mts} +1 -1
- package/dist/{sitemap-DjhxvQP1.mjs → sitemap-DOaJIKJf.mjs} +11 -10
- package/dist/{sitemap-server-B0SiREN0.mjs → sitemap-server-NeVu8W38.mjs} +11 -1
- package/dist/{skills-BFang8vF.mjs → skills-BILSESek.mjs} +11 -10
- package/dist/{standards-discovery-Ckx0tN7B.mjs → standards-discovery-Bpz90VYq.mjs} +2 -177
- package/dist/{standards-discovery-D1Ys4J3h.d.mts → standards-discovery-Xm84bS4M.d.mts} +1 -1
- package/dist/{types-DLLefoU5.d.mts → types-QhYMnKvb.d.mts} +148 -2
- package/dist/{upgrade-kj2crJSk.mjs → upgrade-B92U83xo.mjs} +2 -2
- package/package.json +1 -1
- package/dist/retrieval-digest-DYEsIeCE.d.mts +0 -164
- /package/dist/{audience-exposure-Cw3SA4WE.d.mts → audience-exposure-CkNZNeVX.d.mts} +0 -0
- /package/dist/{cloud-analytics-CSyFE6SS.mjs → cloud-analytics-Ci1yiwD8.mjs} +0 -0
- /package/dist/{config-BaTmjDqD.mjs → config-DrZ3fXgf.mjs} +0 -0
- /package/dist/{errors-DZiNXv5c.mjs → errors-BDmra6mz.mjs} +0 -0
- /package/dist/{i18n-B3BIxShC.mjs → i18n-B1gJ9EW0.mjs} +0 -0
- /package/dist/{sidebar-IcpElOVH.mjs → sidebar-3W51s2sF.mjs} +0 -0
- /package/dist/{templates-kc7jxspR.mjs → templates-DdB4BBGq.mjs} +0 -0
- /package/dist/{utils-DOMeZW9V.mjs → utils-Cc1SrVza.mjs} +0 -0
package/dist/server.d.mts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { n as resolveConfiguredAgentSkills, r as resolveConfiguredAgentSkillsSync, t as ResolveConfiguredAgentSkillsOptions } from "./agent-skills-server-
|
|
1
|
+
import { $ as DocsAgentGoldenFreshnessExpectation, $n as DocsSearchFilterDecision, B as DocsAgentEvaluationAnswerRequest, Bn as DocsSearchAdapterFactory, Bt as DocsConfig, Ct as DocsAskAIFeedbackData, En as DocsPaginatedSearchResponse, Et as DocsAskAIMcpConfig, G as DocsAgentEvaluationTaskInput, Gt as DocsContentChangedDocument, H as DocsAgentEvaluationAnswerRunner, Hn as DocsSearchAmbiguityDecision, Ht as DocsContentChangeSnapshotContext, Jt as DocsContentSnapshotDocument, Kn as DocsSearchConfig, Kt as DocsContentChangesResponse, L as DocsAgentContentChangesConfig, Mn as DocsReviewConfig, Nn as DocsReviewRulesConfig, On as DocsRetrievalSourceProvenance, Pr as McpDocsSearchConfig, R as DocsAgentEvaluationAnswerInput, Rn as DocsSearchAdapter, Sn as DocsOpenApiMcpConfig, St as DocsAskAIFeedbackConfig, Tt as DocsAskAIFeedbackValue, U as DocsAgentEvaluationSourceReference, Un as DocsSearchAmbiguityDecisionStatus, Ut as DocsContentChangeSnapshotLoader, V as DocsAgentEvaluationAnswerResult, Vn as DocsSearchAdapterPage, Vt as DocsContentChangeDocument, W as DocsAgentEvaluationSurface, Wn as DocsSearchAmbiguityResolution, Wt as DocsContentChangeSnapshotSaver, X as DocsAgentGoldenAuthenticatedContentExpectation, Y as DocsAgentGoldenAnswerExpectation, Yn as DocsSearchExplanation, Z as DocsAgentGoldenExampleVerification, _r as DocsSitemapConfig, a as ApiReferenceRenderer, ar as DocsSearchMatchedTerm, cr as DocsSearchRankingReasonCode, dr as DocsSearchResponse, dt as DocsAgentTraceEventInput, er as DocsSearchFilterDecisionOutcome, et as DocsAgentGoldenPromptInjectionExpectation, fn as DocsObservabilityConfig, fr as DocsSearchResult, ft as DocsAgentTraceEventType, gr as DocsSearchWarningCode, gt as DocsAnalyticsEventInput, hr as DocsSearchWarning, ht as DocsAnalyticsEvent, ir as DocsSearchMatchField, jn as DocsReviewCiMode, kn as DocsRetrievalSourceScope, lr as DocsSearchRankingStrategy, mn as DocsObservabilityEventInput, mr as DocsSearchSourcePage, mt as DocsAnalyticsConfig, nr as DocsSearchFilterInput, nt as DocsAgentGoldenQueryVariantKind, or as DocsSearchQuery, pn as DocsObservabilityEvent, pt as DocsAgentTraceStatus, qn as DocsSearchDocument, qt as DocsContentSnapshot, rr as DocsSearchFilters, rt as DocsAgentGoldenSafetyExpectation, sr as DocsSearchRankingReason, tr as DocsSearchFilterField, tt as DocsAgentGoldenQueryVariant, ur as DocsSearchRequest, wt as DocsAskAIFeedbackMessage, z as DocsAgentEvaluationAnswerProvider, zn as DocsSearchAdapterContext } from "./types-QhYMnKvb.mjs";
|
|
2
|
+
import { n as resolveConfiguredAgentSkills, r as resolveConfiguredAgentSkillsSync, t as ResolveConfiguredAgentSkillsOptions } from "./agent-skills-server-D34054x5.mjs";
|
|
3
3
|
import { renderDocsAgentSkillsBundle } from "./agent-skills-vite.mjs";
|
|
4
|
-
import { a as createDocsAgentTraceContext, c as emitDocsAnalyticsEvent, d as resolveDocsAnalyticsConfig, f as resolveDocsObservabilityConfig, i as ResolvedDocsObservabilityConfig, l as emitDocsObservabilityEvent, n as DocsAgentTraceContext, o as createDocsAgentTraceId, r as ResolvedDocsAnalyticsConfig, s as emitDocsAgentTraceEvent, t as DOCS_AGENT_TRACE_EVENT_TYPES, u as getDocsRequestAnalyticsProperties } from "./analytics-
|
|
5
|
-
import { i as isDocsCloudAskAIProvider, n as DocsCloudAskAIResponseOptions, r as createDocsCloudAskAIResponse, t as DocsCloudAskAIConfig } from "./cloud-ask-ai-
|
|
4
|
+
import { a as createDocsAgentTraceContext, c as emitDocsAnalyticsEvent, d as resolveDocsAnalyticsConfig, f as resolveDocsObservabilityConfig, i as ResolvedDocsObservabilityConfig, l as emitDocsObservabilityEvent, n as DocsAgentTraceContext, o as createDocsAgentTraceId, r as ResolvedDocsAnalyticsConfig, s as emitDocsAgentTraceEvent, t as DOCS_AGENT_TRACE_EVENT_TYPES, u as getDocsRequestAnalyticsProperties } from "./analytics-aeXwEvQX.mjs";
|
|
5
|
+
import { i as isDocsCloudAskAIProvider, n as DocsCloudAskAIResponseOptions, r as createDocsCloudAskAIResponse, t as DocsCloudAskAIConfig } from "./cloud-ask-ai-BqfiQaNZ.mjs";
|
|
6
6
|
import { DocsCloudAskAIOptions, DocsCloudPublicConfig, DocsCloudRouteHandlerOptions, DocsCloudRouteHandlers, DocsCloudRuntimeEnv, DocsCloudRuntimeValue, DocsCloudServer, DocsCloudServerOptions, DocsCloudTrackEventOptions, createDocsCloudRouteHandler, createDocsCloudServer } from "./docs-cloud-server.mjs";
|
|
7
|
-
import { $
|
|
7
|
+
import { $ as resolveDocsSearchError, A as DocsSearchRequestError, B as createCustomSearchAdapter, C as isDocsContentChangesRequest, E as BuildDocsContentSnapshotOptions, F as buildDocsContentSnapshot, G as formatDocsAskAIPackageHints, H as createSimpleSearchAdapter, I as buildDocsRetrievalDigestProjection, J as performDocsSearch, K as inferDocsAskAIPackageHints, L as buildDocsSearchDocuments, M as EnrichDocsSearchDocumentsWithProvenanceOptions, N as PerformDocsSearchOptions, O as DocsLocalMcpSearchRuntimeConfig, P as buildDocsAskAIContext, Q as resolveDocsSearchAudience, S as isDocsContentChangeGeneration, T as resolveDocsContentChangesRequest, U as createTypesenseSearchAdapter, V as createMcpSearchAdapter, W as enrichDocsSearchDocumentsWithProvenance, X as resolveAskAISearchRequestConfig, Y as performDocsSearchWithMetadata, Z as resolveDocsRetrievalLastModified, _ as DocsContentChangesRequestError, _r as DocsMarkdownPromptBlock, a as DocsContentChangeHydrationResponse, b as createDocsContentChangeFeed, c as HydrateDocsContentChangesOptions, d as hydrateDocsContentChanges, et as resolveDocsSearchFilters, f as DOCS_CONTENT_CHANGES_FORMAT, g as DocsContentChangesRequest, h as DocsContentChangeFeed, i as DocsContentChangeHydrationContent, j as DocsSearchRequestResolutionOptions, k as DocsLocalMcpSearchRuntimeInput, l as MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, m as DOCS_CONTENT_SNAPSHOT_FORMAT, n as DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, nt as resolveLocalDocsMcpSearchConfig, o as DocsContentChangeHydrationSection, p as DOCS_CONTENT_CHANGES_RESPONSE_VALUE, q as normalizeDocsSearchFilters, r as DocsContentChangeHydrationBudget, rt as resolveSearchRequestConfig, s as DocsContentChangeHydrationTombstone, t as DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, tt as resolveDocsSearchRequest, u as MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, v as DocsResolvedContentChangesConfig, vr as ExtractedDocsMarkdownPromptBlocks, w as resolveDocsContentChangesConfig, x as createDocsContentChangesHttpResponse, y as ResolveDocsContentChangesOptions, yr as extractDocsMarkdownPromptBlocks, z as createAlgoliaSearchAdapter } from "./content-change-hydration-CoYRs3pC.mjs";
|
|
8
|
+
import { $ as DocsGoldenRetrievedSource, A as PromptProviderChoice, B as serializeOpenDocsProviders, C as resolveDocsSitemapRequest, D as DEFAULT_OPEN_DOCS_TARGET, E as DEFAULT_OPEN_DOCS_PROVIDER_IDS, F as resolvePromptProviderChoices, G as DocsGoldenEvaluationDimensionCoverage, H as DocsGoldenCitationMetrics, I as sanitizePromptText, J as DocsGoldenExampleMetrics, K as DocsGoldenEvaluationQuality, L as serializeDocsIcon, M as SerializedOpenDocsProvider, N as normalizePromptProviderName, O as DEFAULT_PROMPT_PROVIDER_TEMPLATES, P as parsePromptStringArray, Q as DocsGoldenRetrievalMetrics, R as serializeDocsIconRegistry, S as resolveDocsSitemapPageLastmod, T as DEFAULT_OPEN_DOCS_PROMPT, U as DocsGoldenEvaluationCoverage, V as DocsGoldenAnswerMetrics, W as DocsGoldenEvaluationCoverageStatus, X as DocsGoldenExpectedExample, Y as DocsGoldenExampleResult, Z as DocsGoldenQueryVariantResult, _ as createDocsSitemapResponse, _t as analyzeDocsAgentFeedback, a as DocsPaginationCursorError, at as DocsGoldenTaskExpectation, b as renderDocsSitemapXml, c as DEFAULT_SITEMAP_MD_ROUTE, ct as DocsGoldenTasksReport, d as DocsSitemapFormat, dt as runDocsGoldenTasks, et as DocsGoldenSafetyCaseKind, f as DocsSitemapManifest, ft as DOCS_AGENT_FEEDBACK_IMPROVEMENT_FORMAT, g as buildDocsSitemapManifest, gt as DocsAgentFeedbackIssueDraft, h as DocsSitemapResolvedConfig, ht as DocsAgentFeedbackImprovementReport, it as DocsGoldenTask, j as SerializeOpenDocsProviderOptions, k as PromptAction, l as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, lt as DocsGoldenUsageMetrics, m as DocsSitemapPageInput, mt as DocsAgentFeedbackImprovementOptions, n as digestDocsRetrievalContent, nt as DocsGoldenSafetyMetrics, o as DEFAULT_SITEMAP_MANIFEST_PATH, ot as DocsGoldenTaskFilters, p as DocsSitemapManifestPage, pt as DocsAgentFeedbackCluster, q as DocsGoldenEvaluationStatus, r as isDocsRetrievalCanonicalUrl, rt as DocsGoldenSelectionMetrics, s as DEFAULT_SITEMAP_MD_DOCS_ROUTE, st as DocsGoldenTaskReport, tt as DocsGoldenSafetyCaseResult, u as DEFAULT_SITEMAP_XML_ROUTE, ut as RunDocsGoldenTasksOptions, v as readDocsSitemapManifestFromContentMap, vt as readDocsAgentFeedbackFile, w as toDocsSitemapMarkdownUrl, x as resolveDocsSitemapConfig, y as renderDocsSitemapMarkdown, z as serializeOpenDocsProvider } from "./retrieval-digest-DyNRD-mt.mjs";
|
|
8
9
|
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, DocsMcpResolvedPromptsConfig, DocsMcpResolvedProtectedResourceConfig, DocsMcpResolvedSecurityConfig, DocsMcpSource, DocsMcpTaskSummary, createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, getDocsConfigSchema, normalizeDocsMcpRoute, resolveDocsMcpConfig, resolveDocsMcpPromptsConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
9
|
-
import {
|
|
10
|
+
import { McpServer } from "@modelcontextprotocol/server";
|
|
10
11
|
|
|
11
12
|
//#region src/code-group-mdx.d.ts
|
|
12
13
|
interface MarkdownNode {
|
|
@@ -37,6 +38,7 @@ interface ResolvedApiReferenceConfig {
|
|
|
37
38
|
specUrl?: string;
|
|
38
39
|
catalogTargets?: string[];
|
|
39
40
|
renderer?: ApiReferenceRenderer;
|
|
41
|
+
mcp?: DocsOpenApiMcpConfig;
|
|
40
42
|
routeRoot: string;
|
|
41
43
|
exclude: string[];
|
|
42
44
|
}
|
|
@@ -137,267 +139,48 @@ declare function buildDocsReviewWorkflowPathFilters(options: {
|
|
|
137
139
|
configContent?: string;
|
|
138
140
|
}): string[];
|
|
139
141
|
//#endregion
|
|
140
|
-
//#region src/
|
|
141
|
-
interface
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
title?: string;
|
|
149
|
-
framework?: string;
|
|
150
|
-
packageManager?: string;
|
|
151
|
-
runnable: boolean;
|
|
152
|
-
env: string[];
|
|
153
|
-
meta: Record<string, string | boolean>;
|
|
154
|
-
code: string;
|
|
155
|
-
}
|
|
156
|
-
interface DocsCodeBlockCommand {
|
|
157
|
-
cmd: string;
|
|
158
|
-
args: string[];
|
|
159
|
-
}
|
|
160
|
-
interface DocsCodeBlockExecutionPlan {
|
|
161
|
-
id: string;
|
|
162
|
-
target: DocsCodeBlockTarget;
|
|
163
|
-
action: "execute" | "validate-syntax" | "skip";
|
|
164
|
-
template: string;
|
|
165
|
-
runtime?: string;
|
|
166
|
-
filePath?: string;
|
|
167
|
-
command?: DocsCodeBlockCommand;
|
|
168
|
-
requiredEnv: string[];
|
|
169
|
-
reason?: string;
|
|
170
|
-
planner: DocsCodeBlocksPlannerProvider;
|
|
171
|
-
}
|
|
172
|
-
type DocsCodeBlockValidationStatus = "PLAN" | "PASS" | "SKIP" | "FAIL";
|
|
173
|
-
interface DocsCodeBlockValidationResult {
|
|
174
|
-
id: string;
|
|
175
|
-
target: DocsCodeBlockTarget;
|
|
176
|
-
plan: DocsCodeBlockExecutionPlan;
|
|
177
|
-
status: DocsCodeBlockValidationStatus;
|
|
178
|
-
stdout?: string;
|
|
179
|
-
stderr?: string;
|
|
180
|
-
exitCode?: number | null;
|
|
181
|
-
reason?: string;
|
|
182
|
-
}
|
|
183
|
-
type OptionalModuleImporter = (specifier: string) => Promise<unknown>;
|
|
184
|
-
declare global {
|
|
185
|
-
var __DOCS_CODE_BLOCKS_MODULE_IMPORTER__: OptionalModuleImporter | undefined;
|
|
186
|
-
}
|
|
187
|
-
//#endregion
|
|
188
|
-
//#region src/agent-evals.d.ts
|
|
189
|
-
type DocsGoldenEvaluationStatus = "unmeasured" | "passed" | "failed";
|
|
190
|
-
type DocsGoldenEvaluationCoverageStatus = "measured" | "partially-measured" | "unmeasured";
|
|
191
|
-
type DocsGoldenTaskFilters = DocsAgentGoldenTaskFilters;
|
|
192
|
-
type DocsGoldenExpectedExample = DocsAgentGoldenExpectedExample;
|
|
193
|
-
type DocsGoldenTaskExpectation = DocsAgentGoldenTaskExpectation;
|
|
194
|
-
type DocsGoldenTask = DocsAgentGoldenTask;
|
|
195
|
-
interface DocsGoldenRetrievedSource {
|
|
196
|
-
rank: number;
|
|
197
|
-
url: string;
|
|
198
|
-
title: string;
|
|
199
|
-
framework?: string;
|
|
142
|
+
//#region src/authoring-mcp.d.ts
|
|
143
|
+
interface DocsAuthoringMcpOptions {
|
|
144
|
+
rootDir: string;
|
|
145
|
+
/** Project-relative or absolute docs content directory. @default entry */
|
|
146
|
+
contentDir?: string;
|
|
147
|
+
/** Public docs entry and default content directory. @default "docs" */
|
|
148
|
+
entry?: string;
|
|
149
|
+
name?: string;
|
|
200
150
|
version?: string;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
interface DocsGoldenCitationMetrics {
|
|
217
|
-
/** Where the citation evidence came from. Context/results are not model-answer citations. */
|
|
218
|
-
evidence: "context" | "results";
|
|
219
|
-
expected: string[];
|
|
220
|
-
actual: string[];
|
|
221
|
-
missing: string[];
|
|
222
|
-
unexpected: string[];
|
|
223
|
-
precision: number;
|
|
224
|
-
recall: number;
|
|
225
|
-
/** True when every rendered Source line maps one-to-one to a returned source record. */
|
|
226
|
-
integrity: boolean;
|
|
227
|
-
passed: boolean;
|
|
228
|
-
}
|
|
229
|
-
interface DocsGoldenSelectionMetrics {
|
|
230
|
-
requestedFramework?: string;
|
|
231
|
-
requestedVersion?: string;
|
|
232
|
-
requestedPackage?: string | readonly string[];
|
|
233
|
-
requestedTags?: string | readonly string[];
|
|
234
|
-
requestedLocale?: string;
|
|
235
|
-
expectedFramework?: string;
|
|
236
|
-
expectedVersion?: string;
|
|
237
|
-
expectedPackage?: string | readonly string[];
|
|
238
|
-
expectedTags?: string | readonly string[];
|
|
239
|
-
expectedLocale?: string;
|
|
240
|
-
firstFrameworkMatchRank: number | null;
|
|
241
|
-
firstVersionMatchRank: number | null;
|
|
242
|
-
firstPackageMatchRank?: number | null;
|
|
243
|
-
firstTagsMatchRank?: number | null;
|
|
244
|
-
firstLocaleMatchRank: number | null;
|
|
245
|
-
conflictingSources: string[];
|
|
246
|
-
ambiguousSources: string[];
|
|
247
|
-
passed: boolean;
|
|
248
|
-
}
|
|
249
|
-
interface DocsGoldenExampleResult {
|
|
250
|
-
expected: DocsGoldenExpectedExample;
|
|
251
|
-
matchedId?: string;
|
|
252
|
-
source?: string;
|
|
253
|
-
verification: "present" | "syntax" | "execute";
|
|
254
|
-
status: "passed" | "failed" | "skipped";
|
|
255
|
-
reason?: string;
|
|
256
|
-
syntaxValid: boolean;
|
|
257
|
-
executed: boolean;
|
|
258
|
-
executionStatus?: DocsCodeBlockValidationResult["status"];
|
|
259
|
-
/** @deprecated Static/planner executability signal retained for report compatibility. */
|
|
260
|
-
executable: boolean;
|
|
261
|
-
passed: boolean;
|
|
262
|
-
}
|
|
263
|
-
interface DocsGoldenExampleMetrics {
|
|
264
|
-
expected: number;
|
|
265
|
-
matched: number;
|
|
266
|
-
syntaxValid: number;
|
|
267
|
-
executed: number;
|
|
268
|
-
/** @deprecated Count of statically/planner-executable examples retained for compatibility. */
|
|
269
|
-
executable: number;
|
|
270
|
-
results: DocsGoldenExampleResult[];
|
|
271
|
-
passed: boolean;
|
|
272
|
-
}
|
|
273
|
-
interface DocsGoldenUsageMetrics {
|
|
274
|
-
budgetUnit: "utf8-bytes";
|
|
275
|
-
tokenBudget: number;
|
|
276
|
-
usedUtf8Bytes: number;
|
|
277
|
-
remainingUtf8Bytes: number;
|
|
278
|
-
estimatedTokens: number;
|
|
279
|
-
/** Exact conservative upper bound: one token per UTF-8 byte. */
|
|
280
|
-
conservativeTokenUpperBound: number;
|
|
281
|
-
usefulUtf8Bytes: number;
|
|
282
|
-
usefulByteRatio: number;
|
|
283
|
-
truncated: boolean;
|
|
284
|
-
withinBudget: boolean;
|
|
285
|
-
passed: boolean;
|
|
286
|
-
}
|
|
287
|
-
interface DocsGoldenAnswerMetrics {
|
|
288
|
-
evidence: "answer";
|
|
289
|
-
expected: boolean;
|
|
290
|
-
provided: boolean;
|
|
291
|
-
textIncludesMissing: string[];
|
|
292
|
-
textExcludesPresent: string[];
|
|
293
|
-
citations: string[];
|
|
294
|
-
requiredCitations: string[];
|
|
295
|
-
missingCitations: string[];
|
|
296
|
-
unexpectedCitations: string[];
|
|
297
|
-
forbiddenCitations: string[];
|
|
298
|
-
passed: boolean;
|
|
299
|
-
}
|
|
300
|
-
type DocsGoldenSafetyCaseKind = "prompt-injection" | "poisoned-citations" | "authenticated-content" | "freshness" | "framework-version-conflict" | "deleted-section-tombstones";
|
|
301
|
-
interface DocsGoldenSafetyCaseResult {
|
|
302
|
-
kind: DocsGoldenSafetyCaseKind;
|
|
303
|
-
passed: boolean;
|
|
304
|
-
issues: string[];
|
|
305
|
-
}
|
|
306
|
-
interface DocsGoldenQueryVariantResult {
|
|
307
|
-
kind: DocsAgentGoldenQueryVariant["kind"];
|
|
308
|
-
query: string;
|
|
309
|
-
passed: boolean;
|
|
310
|
-
score: number;
|
|
311
|
-
firstRelevantRank: number | null;
|
|
312
|
-
citationIntegrity: boolean;
|
|
313
|
-
issues: string[];
|
|
314
|
-
}
|
|
315
|
-
interface DocsGoldenSafetyMetrics {
|
|
316
|
-
expected: boolean;
|
|
317
|
-
passed: boolean;
|
|
318
|
-
cases: DocsGoldenSafetyCaseResult[];
|
|
319
|
-
queryVariants: DocsGoldenQueryVariantResult[];
|
|
320
|
-
}
|
|
321
|
-
interface DocsGoldenTaskReport {
|
|
322
|
-
id: string;
|
|
323
|
-
query: string;
|
|
324
|
-
surface: DocsAgentEvaluationSurface;
|
|
325
|
-
provider: string;
|
|
326
|
-
status: "passed" | "failed";
|
|
327
|
-
passed: boolean;
|
|
328
|
-
score: number;
|
|
329
|
-
context: string;
|
|
330
|
-
sources: DocsGoldenRetrievedSource[];
|
|
331
|
-
retrieval: DocsGoldenRetrievalMetrics;
|
|
332
|
-
citations: DocsGoldenCitationMetrics;
|
|
333
|
-
answer: DocsGoldenAnswerMetrics;
|
|
334
|
-
safety: DocsGoldenSafetyMetrics;
|
|
335
|
-
selection: DocsGoldenSelectionMetrics;
|
|
336
|
-
examples: DocsGoldenExampleMetrics;
|
|
337
|
-
usage: DocsGoldenUsageMetrics;
|
|
338
|
-
issues: string[];
|
|
339
|
-
}
|
|
340
|
-
interface DocsGoldenTasksReport {
|
|
341
|
-
status: DocsGoldenEvaluationStatus;
|
|
342
|
-
passed: boolean | null;
|
|
343
|
-
/** Compatibility alias for quality.score. */
|
|
344
|
-
score: number | null;
|
|
345
|
-
taskCount: number;
|
|
346
|
-
passedTaskCount: number;
|
|
347
|
-
failedTaskCount: number;
|
|
348
|
-
/** Quality across only the expectations configured by each task. */
|
|
349
|
-
quality: DocsGoldenEvaluationQuality;
|
|
350
|
-
/** Coverage is intentionally separate so absent evaluation dimensions cannot look perfect. */
|
|
351
|
-
coverage: DocsGoldenEvaluationCoverage;
|
|
352
|
-
tasks: DocsGoldenTaskReport[];
|
|
353
|
-
}
|
|
354
|
-
interface DocsGoldenEvaluationQuality {
|
|
355
|
-
status: DocsGoldenEvaluationStatus;
|
|
356
|
-
passed: boolean | null;
|
|
357
|
-
score: number | null;
|
|
358
|
-
taskCount: number;
|
|
359
|
-
passedTaskCount: number;
|
|
360
|
-
failedTaskCount: number;
|
|
361
|
-
}
|
|
362
|
-
interface DocsGoldenEvaluationDimensionCoverage {
|
|
363
|
-
status: DocsGoldenEvaluationCoverageStatus;
|
|
364
|
-
measuredTaskCount: number;
|
|
365
|
-
totalTaskCount: number;
|
|
366
|
-
coveragePercent: number;
|
|
367
|
-
}
|
|
368
|
-
interface DocsGoldenEvaluationCoverage {
|
|
369
|
-
status: DocsGoldenEvaluationCoverageStatus;
|
|
370
|
-
measuredTaskDimensions: number;
|
|
371
|
-
totalTaskDimensions: number;
|
|
372
|
-
coveragePercent: number;
|
|
373
|
-
dimensions: {
|
|
374
|
-
safety: DocsGoldenEvaluationDimensionCoverage;
|
|
375
|
-
answerQuality: DocsGoldenEvaluationDimensionCoverage;
|
|
376
|
-
executableExamples: DocsGoldenEvaluationDimensionCoverage;
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
interface RunDocsGoldenTasksOptions {
|
|
380
|
-
/** Default evaluation surface. Tasks may override this with `task.surface`. */
|
|
381
|
-
surface?: DocsAgentEvaluationSurface;
|
|
382
|
-
/** Search configuration used by configured-search and ask-ai-context. */
|
|
383
|
-
search?: boolean | DocsSearchConfig;
|
|
384
|
-
/** Production-resolved Ask AI retrieval config, including `ai.useMcp`. */
|
|
385
|
-
askAISearch?: boolean | DocsSearchConfig;
|
|
386
|
-
siteTitle?: string;
|
|
387
|
-
baseUrl?: string;
|
|
388
|
-
rootDir?: string;
|
|
389
|
-
/** Permit external configured search or HTTP answer calls. @default false */
|
|
390
|
-
allowNetwork?: boolean;
|
|
391
|
-
/** Per-task configured-search/Ask-AI retrieval timeout in milliseconds. @default 30000 */
|
|
392
|
-
searchTimeoutMs?: number;
|
|
393
|
-
/** Project code-block validation config used only by explicit execute expectations. */
|
|
394
|
-
codeBlocksValidate?: boolean | DocsCodeBlocksValidateConfig;
|
|
395
|
-
/** Optional actual-answer runner. No model or HTTP request is made when omitted. */
|
|
396
|
-
answer?: DocsAgentEvaluationAnswerProvider;
|
|
151
|
+
/** Branches created by the server must use this prefix. @default "docs/" */
|
|
152
|
+
branchPrefix?: string;
|
|
153
|
+
/** Pull request base branch. @default repository default resolved by gh */
|
|
154
|
+
baseBranch?: string;
|
|
155
|
+
/** Command argv used by authoring_run_doctor. The first item is the executable. */
|
|
156
|
+
doctorCommand?: readonly [string, ...string[]];
|
|
157
|
+
/** Register the external draft-PR publishing tool. Never enabled implicitly. */
|
|
158
|
+
allowPublish?: boolean;
|
|
159
|
+
maxFileBytes?: number;
|
|
160
|
+
}
|
|
161
|
+
interface DocsAuthoringFileState {
|
|
162
|
+
path: string;
|
|
163
|
+
sha256: string;
|
|
164
|
+
bytes: number;
|
|
165
|
+
content: string;
|
|
397
166
|
}
|
|
398
|
-
declare function
|
|
167
|
+
declare function readDocsAuthoringFile(options: DocsAuthoringMcpOptions, filePath: string): DocsAuthoringFileState;
|
|
168
|
+
declare function writeDocsAuthoringFile(options: DocsAuthoringMcpOptions, input: {
|
|
169
|
+
path: string;
|
|
170
|
+
content: string;
|
|
171
|
+
expectedSha256?: string;
|
|
172
|
+
}): DocsAuthoringFileState;
|
|
173
|
+
/**
|
|
174
|
+
* Create a protected authoring-only MCP server.
|
|
175
|
+
*
|
|
176
|
+
* This server is intentionally separate from createDocsMcpServer and is never wired into public
|
|
177
|
+
* framework adapters. Use stdio locally or place the returned server behind an authenticated,
|
|
178
|
+
* authoring-scoped transport.
|
|
179
|
+
*/
|
|
180
|
+
declare function createDocsAuthoringMcpServer(options: DocsAuthoringMcpOptions): Promise<McpServer>;
|
|
181
|
+
declare function runDocsAuthoringMcpStdio(options: DocsAuthoringMcpOptions): Promise<void>;
|
|
399
182
|
//#endregion
|
|
400
183
|
//#region src/sitemap-server.d.ts
|
|
401
184
|
declare function readDocsSitemapManifest(rootDir: string, sitemap?: boolean | DocsSitemapConfig): DocsSitemapManifest | null;
|
|
402
185
|
//#endregion
|
|
403
|
-
export { type ApiReferenceFramework, type ApiReferenceOpenApiDiscovery, type ApiReferenceRenderer, type ApiReferenceRoute, type BuildDocsContentSnapshotOptions, type CreateDocsMcpServerOptions, DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, 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_CHANGE_HYDRATION_FORMAT, 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 DocsAgentGoldenAuthenticatedContentExpectation, type DocsAgentGoldenExampleVerification, type DocsAgentGoldenFreshnessExpectation, type DocsAgentGoldenPromptInjectionExpectation, type DocsAgentGoldenQueryVariant, type DocsAgentGoldenQueryVariantKind, type DocsAgentGoldenSafetyExpectation, 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 DocsContentChangeHydrationBudget, type DocsContentChangeHydrationContent, type DocsContentChangeHydrationResponse, type DocsContentChangeHydrationSection, type DocsContentChangeHydrationTombstone, type DocsContentChangeSnapshotContext, type DocsContentChangeSnapshotLoader, type DocsContentChangeSnapshotSaver, type DocsContentChangedDocument, type DocsContentChangesRequest, DocsContentChangesRequestError, type DocsContentChangesResponse, type DocsContentSnapshot, type DocsContentSnapshotDocument, type DocsGoldenAnswerMetrics, type DocsGoldenCitationMetrics, type DocsGoldenEvaluationCoverage, type DocsGoldenEvaluationCoverageStatus, type DocsGoldenEvaluationDimensionCoverage, type DocsGoldenEvaluationQuality, type DocsGoldenEvaluationStatus, type DocsGoldenExampleMetrics, type DocsGoldenExampleResult, type DocsGoldenExpectedExample, type DocsGoldenQueryVariantResult, type DocsGoldenRetrievalMetrics, type DocsGoldenRetrievedSource, type DocsGoldenSafetyCaseKind, type DocsGoldenSafetyCaseResult, type DocsGoldenSafetyMetrics, 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 DocsMcpResolvedPromptsConfig, 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 DocsSearchAmbiguityDecision, type DocsSearchAmbiguityDecisionStatus, type DocsSearchAmbiguityResolution, type DocsSearchConfig, type DocsSearchDocument, type DocsSearchExplanation, type DocsSearchFilterDecision, type DocsSearchFilterDecisionOutcome, type DocsSearchFilterField, type DocsSearchFilterInput, type DocsSearchFilters, type DocsSearchMatchField, type DocsSearchMatchedTerm, type DocsSearchQuery, type DocsSearchRankingReason, type DocsSearchRankingReasonCode, type DocsSearchRankingStrategy, 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 HydrateDocsContentChangesOptions, MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, 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, hydrateDocsContentChanges, 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, resolveDocsMcpPromptsConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveLocalDocsMcpSearchConfig, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
|
186
|
+
export { type ApiReferenceFramework, type ApiReferenceOpenApiDiscovery, type ApiReferenceRenderer, type ApiReferenceRoute, type BuildDocsContentSnapshotOptions, type CreateDocsMcpServerOptions, DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, 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_FEEDBACK_IMPROVEMENT_FORMAT, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_CONFIG_SCHEMA_OPTIONS, DOCS_CONTENT_CHANGES_FORMAT, DOCS_CONTENT_CHANGES_RESPONSE_VALUE, DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, 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 DocsAgentFeedbackCluster, type DocsAgentFeedbackImprovementOptions, type DocsAgentFeedbackImprovementReport, type DocsAgentFeedbackIssueDraft, type DocsAgentGoldenAnswerExpectation, type DocsAgentGoldenAuthenticatedContentExpectation, type DocsAgentGoldenExampleVerification, type DocsAgentGoldenFreshnessExpectation, type DocsAgentGoldenPromptInjectionExpectation, type DocsAgentGoldenQueryVariant, type DocsAgentGoldenQueryVariantKind, type DocsAgentGoldenSafetyExpectation, 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 DocsAuthoringFileState, type DocsAuthoringMcpOptions, 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 DocsContentChangeHydrationBudget, type DocsContentChangeHydrationContent, type DocsContentChangeHydrationResponse, type DocsContentChangeHydrationSection, type DocsContentChangeHydrationTombstone, type DocsContentChangeSnapshotContext, type DocsContentChangeSnapshotLoader, type DocsContentChangeSnapshotSaver, type DocsContentChangedDocument, type DocsContentChangesRequest, DocsContentChangesRequestError, type DocsContentChangesResponse, type DocsContentSnapshot, type DocsContentSnapshotDocument, type DocsGoldenAnswerMetrics, type DocsGoldenCitationMetrics, type DocsGoldenEvaluationCoverage, type DocsGoldenEvaluationCoverageStatus, type DocsGoldenEvaluationDimensionCoverage, type DocsGoldenEvaluationQuality, type DocsGoldenEvaluationStatus, type DocsGoldenExampleMetrics, type DocsGoldenExampleResult, type DocsGoldenExpectedExample, type DocsGoldenQueryVariantResult, type DocsGoldenRetrievalMetrics, type DocsGoldenRetrievedSource, type DocsGoldenSafetyCaseKind, type DocsGoldenSafetyCaseResult, type DocsGoldenSafetyMetrics, 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 DocsMcpResolvedPromptsConfig, 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 DocsSearchAmbiguityDecision, type DocsSearchAmbiguityDecisionStatus, type DocsSearchAmbiguityResolution, type DocsSearchConfig, type DocsSearchDocument, type DocsSearchExplanation, type DocsSearchFilterDecision, type DocsSearchFilterDecisionOutcome, type DocsSearchFilterField, type DocsSearchFilterInput, type DocsSearchFilters, type DocsSearchMatchField, type DocsSearchMatchedTerm, type DocsSearchQuery, type DocsSearchRankingReason, type DocsSearchRankingReasonCode, type DocsSearchRankingStrategy, 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 HydrateDocsContentChangesOptions, MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, 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, analyzeDocsAgentFeedback, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsContentSnapshot, buildDocsRetrievalDigestProjection, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsAuthoringMcpServer, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsContentChangeFeed, createDocsContentChangesHttpResponse, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, digestDocsRetrievalContent, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, enrichDocsSearchDocumentsWithProvenance, ensureDocsReviewWorkflow, extractDocsMarkdownPromptBlocks, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, hydrateDocsContentChanges, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, isDocsContentChangeGeneration, isDocsContentChangesRequest, isDocsRetrievalCanonicalUrl, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsAgentFeedbackFile, readDocsAuthoringFile, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsContentChangesConfig, resolveDocsContentChangesRequest, resolveDocsMcpConfig, resolveDocsMcpPromptsConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveLocalDocsMcpSearchConfig, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsAuthoringMcpStdio, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl, writeDocsAuthoringFile };
|
package/dist/server.mjs
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { i as
|
|
8
|
-
import {
|
|
1
|
+
import "./markdown-sections-BKy4labo.mjs";
|
|
2
|
+
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-CqfcIBdg.mjs";
|
|
3
|
+
import { $t as buildDocsContentSnapshot, At as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, Bt as toDocsSitemapMarkdownUrl, Dt as DEFAULT_SITEMAP_MANIFEST_PATH, Ft as renderDocsSitemapMarkdown, Gt as createDocsContentChangeFeed, Ht as DOCS_CONTENT_CHANGES_RESPONSE_VALUE, It as renderDocsSitemapXml, Jt as isDocsContentChangesRequest, Kt as createDocsContentChangesHttpResponse, Lt as resolveDocsSitemapConfig, Mt as buildDocsSitemapManifest, Nt as createDocsSitemapResponse, Ot as DEFAULT_SITEMAP_MD_DOCS_ROUTE, Pn as DocsPaginationCursorError, Pt as readDocsSitemapManifestFromContentMap, Qt as buildDocsAskAIContext, Rt as resolveDocsSitemapPageLastmod, Sn as extractDocsMarkdownPromptBlocks, Ut as DOCS_CONTENT_SNAPSHOT_FORMAT, Vt as DOCS_CONTENT_CHANGES_FORMAT, Wt as DocsContentChangesRequestError, Xt as resolveDocsContentChangesRequest, Yt as resolveDocsContentChangesConfig, Zt as DocsSearchRequestError, _n as resolveDocsSearchError, an as createMcpSearchAdapter, bn as resolveLocalDocsMcpSearchConfig, cn as enrichDocsSearchDocumentsWithProvenance, dn as normalizeDocsSearchFilters, en as buildDocsRetrievalDigestProjection, fn as performDocsSearch, gn as resolveDocsSearchAudience, hn as resolveDocsRetrievalLastModified, in as createCustomSearchAdapter, jt as DEFAULT_SITEMAP_XML_ROUTE, kt as DEFAULT_SITEMAP_MD_ROUTE, ln as formatDocsAskAIPackageHints, mn as resolveAskAISearchRequestConfig, on as createSimpleSearchAdapter, pn as performDocsSearchWithMetadata, qt as isDocsContentChangeGeneration, rn as createAlgoliaSearchAdapter, sn as createTypesenseSearchAdapter, tn as buildDocsSearchDocuments, un as inferDocsAskAIPackageHints, vn as resolveDocsSearchFilters, xn as resolveSearchRequestConfig, yn as resolveDocsSearchRequest, zt as resolveDocsSitemapRequest } from "./agent-DCTGj6J7.mjs";
|
|
4
|
+
import { n as digestDocsRetrievalContent, r as isDocsRetrievalCanonicalUrl } from "./retrieval-digest-B-SgtXKK.mjs";
|
|
5
|
+
import "./standards-discovery-Bpz90VYq.mjs";
|
|
6
|
+
import { a as DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, c as MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, l as hydrateDocsContentChanges, o as DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, s as MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET } from "./openapi-mcp-DQ3xptKo.mjs";
|
|
7
|
+
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-NeVu8W38.mjs";
|
|
8
|
+
import { i as resolveConfiguredAgentSkillsSync, r as resolveConfiguredAgentSkills } from "./agent-skills-server-Ddbf15pY.mjs";
|
|
9
|
+
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-D-sPJfXz.mjs";
|
|
9
10
|
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, resolveDocsMcpPromptsConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
10
|
-
import { n as
|
|
11
|
+
import { n as analyzeDocsAgentFeedback, r as readDocsAgentFeedbackFile, t as DOCS_AGENT_FEEDBACK_IMPROVEMENT_FORMAT } from "./agent-feedback-loop-vaC-M1sx.mjs";
|
|
12
|
+
import { i as writeDocsAuthoringFile, n as readDocsAuthoringFile, r as runDocsAuthoringMcpStdio, t as createDocsAuthoringMcpServer } from "./authoring-mcp-Be7quE5R.mjs";
|
|
13
|
+
import { n as isDocsCloudAskAIProvider, t as createDocsCloudAskAIResponse } from "./cloud-ask-ai-CK2qlNns.mjs";
|
|
11
14
|
import { createDocsCloudRouteHandler, createDocsCloudServer } from "./docs-cloud-server.mjs";
|
|
12
|
-
import "./code-blocks-
|
|
15
|
+
import "./code-blocks-D90CCJFs.mjs";
|
|
13
16
|
import { renderDocsAgentSkillsBundle } from "./agent-skills-vite.mjs";
|
|
14
17
|
|
|
15
|
-
export { DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, 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_CHANGE_HYDRATION_FORMAT, DOCS_CONTENT_SNAPSHOT_FORMAT, DOCS_MCP_CONTENT_CHANGES_CURRENT_URI, DOCS_MCP_CONTENT_CHANGES_URI_TEMPLATE, DocsContentChangesRequestError, DocsPaginationCursorError, DocsSearchRequestError, MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, 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, hydrateDocsContentChanges, 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, resolveDocsMcpPromptsConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveLocalDocsMcpSearchConfig, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
|
18
|
+
export { DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, 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_FEEDBACK_IMPROVEMENT_FORMAT, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_CONFIG_SCHEMA_OPTIONS, DOCS_CONTENT_CHANGES_FORMAT, DOCS_CONTENT_CHANGES_RESPONSE_VALUE, DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, DOCS_CONTENT_SNAPSHOT_FORMAT, DOCS_MCP_CONTENT_CHANGES_CURRENT_URI, DOCS_MCP_CONTENT_CHANGES_URI_TEMPLATE, DocsContentChangesRequestError, DocsPaginationCursorError, DocsSearchRequestError, MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, analyzeDocsAgentFeedback, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsContentSnapshot, buildDocsRetrievalDigestProjection, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsAuthoringMcpServer, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsContentChangeFeed, createDocsContentChangesHttpResponse, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, digestDocsRetrievalContent, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, enrichDocsSearchDocumentsWithProvenance, ensureDocsReviewWorkflow, extractDocsMarkdownPromptBlocks, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, hydrateDocsContentChanges, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, isDocsContentChangeGeneration, isDocsContentChangesRequest, isDocsRetrievalCanonicalUrl, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsAgentFeedbackFile, readDocsAuthoringFile, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsContentChangesConfig, resolveDocsContentChangesRequest, resolveDocsMcpConfig, resolveDocsMcpPromptsConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveLocalDocsMcpSearchConfig, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsAuthoringMcpStdio, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl, writeDocsAuthoringFile };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import "./standards-discovery-
|
|
4
|
-
import "./
|
|
5
|
-
import "./sitemap-server-
|
|
6
|
-
import "./agent-skills-server-
|
|
7
|
-
import "./agent-evals-
|
|
1
|
+
import "./markdown-sections-BKy4labo.mjs";
|
|
2
|
+
import { Ft as renderDocsSitemapMarkdown, It as renderDocsSitemapXml, Lt as resolveDocsSitemapConfig, Mt as buildDocsSitemapManifest } from "./agent-DCTGj6J7.mjs";
|
|
3
|
+
import "./standards-discovery-Bpz90VYq.mjs";
|
|
4
|
+
import "./openapi-mcp-DQ3xptKo.mjs";
|
|
5
|
+
import "./sitemap-server-NeVu8W38.mjs";
|
|
6
|
+
import "./agent-skills-server-Ddbf15pY.mjs";
|
|
7
|
+
import "./agent-evals-D-sPJfXz.mjs";
|
|
8
8
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
9
|
-
import "./
|
|
9
|
+
import "./authoring-mcp-Be7quE5R.mjs";
|
|
10
|
+
import "./code-blocks-D90CCJFs.mjs";
|
|
10
11
|
import "./server.mjs";
|
|
11
|
-
import { _ as resolveDocsContentDir, a as loadDocsConfigModule, d as readNavTitle, g as resolveDocsConfigPath, h as readTopLevelStringProperty, l as readBooleanProperty, p as readStringProperty, t as extractNestedObjectLiteral } from "./config-
|
|
12
|
-
import { t as detectFramework } from "./utils-
|
|
12
|
+
import { _ as resolveDocsContentDir, a as loadDocsConfigModule, d as readNavTitle, g as resolveDocsConfigPath, h as readTopLevelStringProperty, l as readBooleanProperty, p as readStringProperty, t as extractNestedObjectLiteral } from "./config-DrZ3fXgf.mjs";
|
|
13
|
+
import { t as detectFramework } from "./utils-Cc1SrVza.mjs";
|
|
13
14
|
import { existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
14
15
|
import path from "node:path";
|
|
15
16
|
import { execFileSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Lt as resolveDocsSitemapConfig } from "./agent-DCTGj6J7.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";
|
|
@@ -87,6 +87,7 @@ function resolveApiReferenceConfig(value) {
|
|
|
87
87
|
specUrl: void 0,
|
|
88
88
|
catalogTargets: void 0,
|
|
89
89
|
renderer: void 0,
|
|
90
|
+
mcp: void 0,
|
|
90
91
|
routeRoot: "api",
|
|
91
92
|
exclude: []
|
|
92
93
|
};
|
|
@@ -96,6 +97,7 @@ function resolveApiReferenceConfig(value) {
|
|
|
96
97
|
specUrl: void 0,
|
|
97
98
|
catalogTargets: void 0,
|
|
98
99
|
renderer: void 0,
|
|
100
|
+
mcp: void 0,
|
|
99
101
|
routeRoot: "api",
|
|
100
102
|
exclude: []
|
|
101
103
|
};
|
|
@@ -105,10 +107,18 @@ function resolveApiReferenceConfig(value) {
|
|
|
105
107
|
specUrl: normalizeRemoteSpecUrl(value.specUrl),
|
|
106
108
|
catalogTargets: normalizeApiReferenceCatalogTargets(value.catalogTargets),
|
|
107
109
|
renderer: normalizeApiReferenceRenderer(value.renderer),
|
|
110
|
+
mcp: resolveOpenApiMcpConfig(value.mcp),
|
|
108
111
|
routeRoot: normalizePathSegment(value.routeRoot ?? "api") || "api",
|
|
109
112
|
exclude: normalizeApiReferenceExcludes(value.exclude)
|
|
110
113
|
};
|
|
111
114
|
}
|
|
115
|
+
function resolveOpenApiMcpConfig(value) {
|
|
116
|
+
if (!value) return void 0;
|
|
117
|
+
return value === true ? { enabled: true } : {
|
|
118
|
+
...value,
|
|
119
|
+
enabled: value.enabled !== false
|
|
120
|
+
};
|
|
121
|
+
}
|
|
112
122
|
function normalizeApiReferenceRenderer(value) {
|
|
113
123
|
if (value === "fumadocs" || value === "scalar") return value;
|
|
114
124
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./standards-discovery-
|
|
1
|
+
import { _ as hasStructuredPageAgentContract, v as normalizePageAgentFrontmatter } from "./markdown-sections-BKy4labo.mjs";
|
|
2
|
+
import "./agent-DCTGj6J7.mjs";
|
|
3
|
+
import "./standards-discovery-Bpz90VYq.mjs";
|
|
4
4
|
import { isDocsAgentSkillName, validateDocsAgentSkillFrontmatter } from "./agent-skills-spec.mjs";
|
|
5
|
-
import "./
|
|
6
|
-
import "./sitemap-server-
|
|
7
|
-
import "./agent-skills-server-
|
|
8
|
-
import "./agent-evals-
|
|
5
|
+
import "./openapi-mcp-DQ3xptKo.mjs";
|
|
6
|
+
import "./sitemap-server-NeVu8W38.mjs";
|
|
7
|
+
import "./agent-skills-server-Ddbf15pY.mjs";
|
|
8
|
+
import "./agent-evals-D-sPJfXz.mjs";
|
|
9
9
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
10
|
-
import "./
|
|
10
|
+
import "./authoring-mcp-Be7quE5R.mjs";
|
|
11
|
+
import "./code-blocks-D90CCJFs.mjs";
|
|
11
12
|
import "./server.mjs";
|
|
12
|
-
import { _ as resolveDocsContentDir, a as loadDocsConfigModule, d as readNavTitle, g as resolveDocsConfigPath, h as readTopLevelStringProperty, p as readStringProperty, t as extractNestedObjectLiteral } from "./config-
|
|
13
|
-
import { n as estimateAgentSkillInstructionTokens, r as resolveDocsAgentSkillsProgressiveDisclosureConfig } from "./agent-skills-progressive-disclosure-
|
|
13
|
+
import { _ as resolveDocsContentDir, a as loadDocsConfigModule, d as readNavTitle, g as resolveDocsConfigPath, h as readTopLevelStringProperty, p as readStringProperty, t as extractNestedObjectLiteral } from "./config-DrZ3fXgf.mjs";
|
|
14
|
+
import { n as estimateAgentSkillInstructionTokens, r as resolveDocsAgentSkillsProgressiveDisclosureConfig } from "./agent-skills-progressive-disclosure-DL-q4JZo.mjs";
|
|
14
15
|
import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
15
16
|
import path from "node:path";
|
|
16
17
|
import { createHash } from "node:crypto";
|