@farming-labs/docs 0.2.82 → 0.2.84
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-Dze2Cy5B.mjs → agent-D68WI6-N.mjs} +308 -51
- package/dist/{agent-Biyd8A98.mjs → agent-DuwSq3C7.mjs} +2 -2
- package/dist/{agent-evals-Burrzyam.mjs → agent-evals-CEvUQb_Z.mjs} +1 -1
- package/dist/{agent-export-whKAZQUI.mjs → agent-export-BMljO4ll.mjs} +5 -5
- package/dist/{agent-WS4GXGh6.d.mts → agent-qJNbZUCZ.d.mts} +14 -2
- package/dist/agent-skills-bundle.d.mts +1 -1
- package/dist/{agent-skills-server-q4B9kRGg.d.mts → agent-skills-server-aKgt9CR9.d.mts} +2 -2
- package/dist/agent-skills-vite.d.mts +3 -3
- package/dist/{agents-B_980VCs.mjs → agents-D1j3fKjv.mjs} +4 -4
- package/dist/cli/index.mjs +14 -14
- package/dist/client/react.d.mts +1 -1
- package/dist/{cloud-ask-ai-BQAeHkpZ.d.mts → cloud-ask-ai-Bx-qtqHL.d.mts} +1 -1
- package/dist/{content-change-hydration-DpQ0KdAD.mjs → content-change-hydration-CiMxs3LF.mjs} +1 -1
- package/dist/docs-cloud-server.d.mts +2 -2
- package/dist/{doctor-WjuyRWYT.mjs → doctor-DaZp33gE.mjs} +8 -8
- package/dist/{golden-evaluations-B2GHnoFa.mjs → golden-evaluations-BKxcJ1qw.mjs} +7 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +4 -4
- package/dist/{mcp-bhIsgqxy.mjs → mcp-CwTbgrZm.mjs} +4 -4
- package/dist/mcp.d.mts +3 -3
- package/dist/mcp.mjs +95 -5
- package/dist/{prompt-references-embiJdYt.mjs → prompt-references-ClTizbsa.mjs} +2 -2
- package/dist/{retrieval-digest-DRRHA1B3.d.mts → retrieval-digest-CG9QWgw-.d.mts} +2 -2
- package/dist/{review-2e4TXoGS.mjs → review-BMO-4X_5.mjs} +4 -4
- package/dist/{robots-BIySk2gE.mjs → robots-CLtbWSEJ.mjs} +2 -2
- package/dist/{robots-D96X6eVX.mjs → robots-HWKsiZQS.mjs} +1 -1
- package/dist/{search-DfB3LQ4s.mjs → search-ZY4rf1fy.mjs} +4 -4
- package/dist/server.d.mts +6 -6
- package/dist/server.mjs +4 -4
- package/dist/{sitemap-AcwP8jIo.mjs → sitemap-CAzZFDic.mjs} +4 -4
- package/dist/{sitemap-server-BefXEox6.mjs → sitemap-server-_AeFxJQB.mjs} +1 -1
- package/dist/{standards-discovery-DPUEcUmb.d.mts → standards-discovery-UdXpOfmN.d.mts} +1 -1
- package/dist/{types-lGEHcx_6.d.mts → types-DQl2dvDl.d.mts} +66 -1
- package/package.json +1 -1
package/dist/mcp.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as emitDocsAnalyticsEvent, i as emitDocsAgentTraceEvent, n as createDocsAgentTraceContext, r as createDocsAgentTraceId } from "./analytics-Bx44lg6d.mjs";
|
|
2
|
-
import { $n as isDocsMcpResourcePath, An as normalizeAgentFramework, Bn as normalizeDocsRelated, E as DOCS_MARKDOWN_SECTION_INDEX_FORMAT, En as resolveDocsAudienceMdxContent, In as paginateDocsItems, Jt as resolveDocsContentChangesConfig, Kt as isDocsContentChangeGeneration, Mn as normalizeAgentScopeValues, On as agentVersionConstraintMatches, P as buildDocsMarkdownSectionIndex, Pn as DocsPaginationCursorError, Ut as DocsContentChangesRequestError, Vn as renderDocsRelatedMarkdownLines, Wt as createDocsContentChangeFeed, Xn as isDocsMcpOAuthScopeToken, Zn as isDocsMcpProtectedResourceMetadataPath, dn as performDocsSearch, er as normalizeDocsMcpAuthorizationServerUrls, fn as performDocsSearchWithMetadata, jn as normalizeAgentLocale, kn as agentVersionConstraintsOverlap, nr as resolveDocsMcpProtectedResourceMetadataLocation, rr as resolveDocsMcpResourceLocation, tn as buildDocsSearchFacets, tr as normalizeDocsMcpEndpointPath, un as normalizeDocsSearchFilters, wt as toDocsMarkdownUrl, yn as resolveLocalDocsMcpSearchConfig, zn as isDocsRetrievalCanonicalUrl } from "./agent-
|
|
2
|
+
import { $n as isDocsMcpResourcePath, An as normalizeAgentFramework, Bn as normalizeDocsRelated, E as DOCS_MARKDOWN_SECTION_INDEX_FORMAT, En as resolveDocsAudienceMdxContent, In as paginateDocsItems, Jt as resolveDocsContentChangesConfig, Kt as isDocsContentChangeGeneration, Mn as normalizeAgentScopeValues, On as agentVersionConstraintMatches, P as buildDocsMarkdownSectionIndex, Pn as DocsPaginationCursorError, Ut as DocsContentChangesRequestError, Vn as renderDocsRelatedMarkdownLines, Wt as createDocsContentChangeFeed, Xn as isDocsMcpOAuthScopeToken, Zn as isDocsMcpProtectedResourceMetadataPath, dn as performDocsSearch, er as normalizeDocsMcpAuthorizationServerUrls, fn as performDocsSearchWithMetadata, jn as normalizeAgentLocale, kn as agentVersionConstraintsOverlap, nr as resolveDocsMcpProtectedResourceMetadataLocation, rr as resolveDocsMcpResourceLocation, tn as buildDocsSearchFacets, tr as normalizeDocsMcpEndpointPath, un as normalizeDocsSearchFilters, wt as toDocsMarkdownUrl, yn as resolveLocalDocsMcpSearchConfig, zn as isDocsRetrievalCanonicalUrl } from "./agent-D68WI6-N.mjs";
|
|
3
3
|
import { S as upsertPageAgentContractMarkdown, _ as hasStructuredPageAgentContract, o as findDocsMarkdownSection, s as parseDocsMarkdownSections, v as normalizePageAgentFrontmatter } from "./markdown-sections-7OoA7ylx.mjs";
|
|
4
4
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
5
|
-
import { _ as emitDocsTelemetryAgentSurfaceEvent, a as hydrateDocsContentChanges, b as emitDocsTelemetryProjectEvent, f as stripGeneratedAgentProvenance, i as MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, m as resolvePageSidebarFolderIndexBehavior, n as DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, r as MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, t as DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, y as emitDocsTelemetryMcpToolEvent } from "./content-change-hydration-
|
|
5
|
+
import { _ as emitDocsTelemetryAgentSurfaceEvent, a as hydrateDocsContentChanges, b as emitDocsTelemetryProjectEvent, f as stripGeneratedAgentProvenance, i as MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, m as resolvePageSidebarFolderIndexBehavior, n as DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, r as MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, t as DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, y as emitDocsTelemetryMcpToolEvent } from "./content-change-hydration-CiMxs3LF.mjs";
|
|
6
6
|
import matter from "gray-matter";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
@@ -1832,6 +1832,7 @@ const searchDocsInputSchema = z.object({
|
|
|
1832
1832
|
query: z.string().trim().min(1),
|
|
1833
1833
|
limit: z.number().int().min(1).max(25).optional(),
|
|
1834
1834
|
cursor: paginationCursorInputSchema,
|
|
1835
|
+
explain: z.boolean().describe("Include matched terms, scope decisions, ambiguity, and ranking reasons.").optional(),
|
|
1835
1836
|
locale: z.string().trim().min(1).max(128).optional(),
|
|
1836
1837
|
audience: z.enum(["human", "agent"]).optional(),
|
|
1837
1838
|
framework: searchFilterValueSchema.optional(),
|
|
@@ -2195,6 +2196,93 @@ const searchWarningOutputSchema = z.object({
|
|
|
2195
2196
|
pageUrls: z.array(z.string()).optional(),
|
|
2196
2197
|
count: z.number().int().nonnegative().optional()
|
|
2197
2198
|
});
|
|
2199
|
+
const searchExplanationOutputSchema = z.object({
|
|
2200
|
+
format: z.literal("docs-search-explanation.v1"),
|
|
2201
|
+
rank: z.number().int().positive(),
|
|
2202
|
+
rankingStrategy: z.enum([
|
|
2203
|
+
"lexical",
|
|
2204
|
+
"exact",
|
|
2205
|
+
"provider"
|
|
2206
|
+
]),
|
|
2207
|
+
matchedTerms: z.array(z.object({
|
|
2208
|
+
term: z.string(),
|
|
2209
|
+
fields: z.array(z.enum([
|
|
2210
|
+
"title",
|
|
2211
|
+
"section",
|
|
2212
|
+
"description",
|
|
2213
|
+
"content",
|
|
2214
|
+
"url"
|
|
2215
|
+
]))
|
|
2216
|
+
})),
|
|
2217
|
+
matchedTermsTruncated: z.boolean(),
|
|
2218
|
+
selectedScope: retrievalSourceScopeOutputSchema.nullable(),
|
|
2219
|
+
filterDecisions: z.array(z.object({
|
|
2220
|
+
field: z.enum([
|
|
2221
|
+
"framework",
|
|
2222
|
+
"version",
|
|
2223
|
+
"package",
|
|
2224
|
+
"tags"
|
|
2225
|
+
]),
|
|
2226
|
+
requestedValues: z.array(z.string()),
|
|
2227
|
+
selectedValues: z.array(z.string()),
|
|
2228
|
+
matchedValues: z.array(z.string()),
|
|
2229
|
+
outcome: z.enum([
|
|
2230
|
+
"not_requested",
|
|
2231
|
+
"matched",
|
|
2232
|
+
"not_verifiable"
|
|
2233
|
+
])
|
|
2234
|
+
})),
|
|
2235
|
+
ambiguityResolution: z.object({
|
|
2236
|
+
status: z.enum([
|
|
2237
|
+
"unambiguous",
|
|
2238
|
+
"resolved",
|
|
2239
|
+
"unresolved",
|
|
2240
|
+
"not_verifiable"
|
|
2241
|
+
]),
|
|
2242
|
+
decisions: z.array(z.object({
|
|
2243
|
+
field: z.enum([
|
|
2244
|
+
"framework",
|
|
2245
|
+
"version",
|
|
2246
|
+
"package"
|
|
2247
|
+
]),
|
|
2248
|
+
status: z.enum([
|
|
2249
|
+
"unambiguous",
|
|
2250
|
+
"resolved_by_filter",
|
|
2251
|
+
"requires_filter",
|
|
2252
|
+
"not_verifiable"
|
|
2253
|
+
]),
|
|
2254
|
+
selectedValues: z.array(z.string()),
|
|
2255
|
+
candidateValues: z.array(z.string()).optional(),
|
|
2256
|
+
reason: z.string()
|
|
2257
|
+
}))
|
|
2258
|
+
}),
|
|
2259
|
+
rankingReasons: z.array(z.object({
|
|
2260
|
+
code: z.enum([
|
|
2261
|
+
"literal_match",
|
|
2262
|
+
"title_phrase",
|
|
2263
|
+
"section_phrase",
|
|
2264
|
+
"title_section_phrase",
|
|
2265
|
+
"url_phrase",
|
|
2266
|
+
"description_phrase",
|
|
2267
|
+
"content_phrase",
|
|
2268
|
+
"title_terms",
|
|
2269
|
+
"section_terms",
|
|
2270
|
+
"description_terms",
|
|
2271
|
+
"content_terms",
|
|
2272
|
+
"all_terms_in_section",
|
|
2273
|
+
"all_terms_in_title",
|
|
2274
|
+
"all_query_terms",
|
|
2275
|
+
"heading_boost",
|
|
2276
|
+
"exact_page_boost",
|
|
2277
|
+
"provider_order",
|
|
2278
|
+
"literal_result_priority",
|
|
2279
|
+
"stable_url_tiebreak"
|
|
2280
|
+
]),
|
|
2281
|
+
description: z.string(),
|
|
2282
|
+
contribution: z.number().optional()
|
|
2283
|
+
}))
|
|
2284
|
+
});
|
|
2285
|
+
const explainedSearchResultOutputSchema = searchResultOutputSchema.extend({ explanation: searchExplanationOutputSchema.optional() });
|
|
2198
2286
|
const searchDocsOutputSchema = z.object({
|
|
2199
2287
|
format: z.literal("docs-search.v1"),
|
|
2200
2288
|
query: z.string(),
|
|
@@ -2202,7 +2290,7 @@ const searchDocsOutputSchema = z.object({
|
|
|
2202
2290
|
filters: searchFiltersOutputSchema,
|
|
2203
2291
|
indexGeneration: retrievalSourceDigestOutputSchema,
|
|
2204
2292
|
...paginationOutputShape,
|
|
2205
|
-
results: z.array(
|
|
2293
|
+
results: z.array(explainedSearchResultOutputSchema),
|
|
2206
2294
|
warnings: z.array(searchWarningOutputSchema)
|
|
2207
2295
|
});
|
|
2208
2296
|
const searchFacetOutputSchema = z.object({
|
|
@@ -3658,7 +3746,7 @@ async function createDocsMcpServer(options) {
|
|
|
3658
3746
|
inputSchema: searchDocsInputSchema,
|
|
3659
3747
|
outputSchema: searchDocsOutputSchema,
|
|
3660
3748
|
annotations: { readOnlyHint: true }
|
|
3661
|
-
}, async ({ query, limit, cursor, locale, audience, framework, version, package: packageName, tags }) => {
|
|
3749
|
+
}, async ({ query, limit, cursor, explain, locale, audience, framework, version, package: packageName, tags }) => {
|
|
3662
3750
|
const startedAt = nowMs();
|
|
3663
3751
|
const resolvedLimit = limit ?? 10;
|
|
3664
3752
|
const resolvedAudience = audience ?? "agent";
|
|
@@ -3684,6 +3772,7 @@ async function createDocsMcpServer(options) {
|
|
|
3684
3772
|
queryLength: query.length,
|
|
3685
3773
|
limit: resolvedLimit,
|
|
3686
3774
|
hasCursor: cursor !== void 0,
|
|
3775
|
+
explain: explain === true,
|
|
3687
3776
|
locale,
|
|
3688
3777
|
audience: resolvedAudience,
|
|
3689
3778
|
filterFields: Object.entries(filters).filter(([, value]) => value !== void 0).map(([field]) => field)
|
|
@@ -3702,7 +3791,8 @@ async function createDocsMcpServer(options) {
|
|
|
3702
3791
|
baseUrl: options.source.baseUrl ?? (options.requestContext?.request ? new URL(options.requestContext.request.url).origin : void 0),
|
|
3703
3792
|
syncBaseUrl: options.source.baseUrl ?? null,
|
|
3704
3793
|
limit: resolvedLimit,
|
|
3705
|
-
cursor
|
|
3794
|
+
cursor,
|
|
3795
|
+
explain
|
|
3706
3796
|
});
|
|
3707
3797
|
const elapsed = durationMs(startedAt);
|
|
3708
3798
|
await emitDocsAnalyticsEvent(options.analytics, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { At as DEFAULT_SITEMAP_XML_ROUTE, Gn as DEFAULT_MCP_WELL_KNOWN_ROUTE, Ot as DEFAULT_SITEMAP_MD_ROUTE, c as DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, f as DEFAULT_DOCS_CONFIG_ROUTE, h as DEFAULT_LLMS_FULL_TXT_ROUTE, i as DEFAULT_AGENT_FEEDBACK_ROUTE, m as DEFAULT_DOCS_DIAGNOSTICS_ROUTE, t as DEFAULT_AGENTS_MD_ROUTE, v as DEFAULT_LLMS_TXT_ROUTE, x as DEFAULT_SKILL_MD_ROUTE } from "./agent-
|
|
1
|
+
import { At as DEFAULT_SITEMAP_XML_ROUTE, Gn as DEFAULT_MCP_WELL_KNOWN_ROUTE, Ot as DEFAULT_SITEMAP_MD_ROUTE, c as DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, f as DEFAULT_DOCS_CONFIG_ROUTE, h as DEFAULT_LLMS_FULL_TXT_ROUTE, i as DEFAULT_AGENT_FEEDBACK_ROUTE, m as DEFAULT_DOCS_DIAGNOSTICS_ROUTE, t as DEFAULT_AGENTS_MD_ROUTE, v as DEFAULT_LLMS_TXT_ROUTE, x as DEFAULT_SKILL_MD_ROUTE } from "./agent-D68WI6-N.mjs";
|
|
2
2
|
import { isDocsAgentSkillName, validateDocsAgentSkillFrontmatter } from "./agent-skills-spec.mjs";
|
|
3
3
|
import { C as DOCS_AGENT_MANIFEST_SCHEMA_MEDIA_TYPE, S as DOCS_AGENT_MANIFEST_FORMAT, T as DOCS_AGENT_MANIFEST_VERSION, f as DEFAULT_AGENT_SKILLS_ROUTE_PREFIX, n as API_CATALOG_MEDIA_TYPE, r as API_CATALOG_PROFILE_URI, t as AGENT_SKILLS_DISCOVERY_SCHEMA_URI, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, v as DEFAULT_API_CATALOG_ROUTE, w as DOCS_AGENT_MANIFEST_SCHEMA_URI } from "./standards-discovery-BKlEnK_H.mjs";
|
|
4
|
-
import { n as DEFAULT_ROBOTS_TXT_ROUTE } from "./robots-
|
|
4
|
+
import { n as DEFAULT_ROBOTS_TXT_ROUTE } from "./robots-HWKsiZQS.mjs";
|
|
5
5
|
import matter from "gray-matter";
|
|
6
6
|
|
|
7
7
|
//#region src/define-docs.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { R as DocsDiscoveryApiRouteOptions } from "./standards-discovery-
|
|
1
|
+
import { Fr as ResolvedDocsRelatedLink, Zn as DocsSitemapConfig, _r as OpenDocsProvider, an as DocsObservabilityEventInput, br as OpenDocsTarget, ct as DocsAnalyticsEventInput, in as DocsObservabilityEvent, ot as DocsAnalyticsConfig, rn as DocsObservabilityConfig, rt as DocsAgentTraceEventInput, st as DocsAnalyticsEvent } from "./types-DQl2dvDl.mjs";
|
|
2
|
+
import { R as DocsDiscoveryApiRouteOptions } from "./standards-discovery-UdXpOfmN.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/analytics.d.ts
|
|
5
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"];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as buildDocsAgentDiscoverySpec, M as buildDocsConfigMap, Sn as findDocsAudienceMdxIssues, T as DOCS_CONFIG_MAP_TOP_LEVEL_KEYS, pn as resolveAskAISearchRequestConfig, qn as getDocsMcpProtectedResourceMetadataRoutes } from "./agent-
|
|
1
|
+
import { A as buildDocsAgentDiscoverySpec, M as buildDocsConfigMap, Sn as findDocsAudienceMdxIssues, T as DOCS_CONFIG_MAP_TOP_LEVEL_KEYS, pn as resolveAskAISearchRequestConfig, qn as getDocsMcpProtectedResourceMetadataRoutes } from "./agent-D68WI6-N.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 "./content-change-hydration-
|
|
4
|
+
import "./content-change-hydration-CiMxs3LF.mjs";
|
|
5
5
|
import { a as resolveDocsMetadataBaseUrl } from "./metadata-N252j5_a.mjs";
|
|
6
6
|
import "./agent-skills-server-D5qYU19g.mjs";
|
|
7
|
-
import { c as resolveDocsReviewConfig, o as ensureDocsReviewWorkflow, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-
|
|
7
|
+
import { c as resolveDocsReviewConfig, o as ensureDocsReviewWorkflow, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-CEvUQb_Z.mjs";
|
|
8
8
|
import { createFilesystemDocsMcpSource, getDocsConfigSchema, resolveDocsMcpConfig } from "./mcp.mjs";
|
|
9
9
|
import "./code-blocks-0wjOsqdJ.mjs";
|
|
10
10
|
import { _ as resolveDocsContentDir, g as resolveDocsConfigPath, h as readTopLevelStringProperty, s as loadDocsConfigModuleResultWithProjectEnv } from "./config-Wcdj-D0a.mjs";
|
|
11
11
|
import { t as detectFramework } from "./utils-DpiIioYb.mjs";
|
|
12
|
-
import { a as createAgentUsefulnessPagesFromMcp, i as analyzeAgentUsefulness, n as analyzeConfiguredAgentSkillsProgressiveDisclosure, o as extractAgentBlocks, r as analyzeAgentSurfaceDrift, t as resolveGoldenEvaluationInput } from "./golden-evaluations-
|
|
12
|
+
import { a as createAgentUsefulnessPagesFromMcp, i as analyzeAgentUsefulness, n as analyzeConfiguredAgentSkillsProgressiveDisclosure, o as extractAgentBlocks, r as analyzeAgentSurfaceDrift, t as resolveGoldenEvaluationInput } from "./golden-evaluations-BKxcJ1qw.mjs";
|
|
13
13
|
import matter from "gray-matter";
|
|
14
14
|
import { existsSync, lstatSync, readFileSync, readdirSync } from "node:fs";
|
|
15
15
|
import path from "node:path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./agent-
|
|
1
|
+
import "./agent-D68WI6-N.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-HWKsiZQS.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,4 +1,4 @@
|
|
|
1
|
-
import { Gn as DEFAULT_MCP_WELL_KNOWN_ROUTE, It as resolveDocsSitemapConfig, S as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, Un 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-
|
|
1
|
+
import { Gn as DEFAULT_MCP_WELL_KNOWN_ROUTE, It as resolveDocsSitemapConfig, S as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, Un 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-D68WI6-N.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,12 +1,12 @@
|
|
|
1
|
-
import { en as buildDocsSearchDocuments, nn as createAlgoliaSearchAdapter, on as createTypesenseSearchAdapter } from "./agent-
|
|
1
|
+
import { en as buildDocsSearchDocuments, nn as createAlgoliaSearchAdapter, on as createTypesenseSearchAdapter } from "./agent-D68WI6-N.mjs";
|
|
2
2
|
import "./markdown-sections-7OoA7ylx.mjs";
|
|
3
3
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
4
|
-
import "./content-change-hydration-
|
|
4
|
+
import "./content-change-hydration-CiMxs3LF.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-
|
|
7
|
+
import "./sitemap-server-_AeFxJQB.mjs";
|
|
8
8
|
import "./agent-skills-server-D5qYU19g.mjs";
|
|
9
|
-
import "./agent-evals-
|
|
9
|
+
import "./agent-evals-CEvUQb_Z.mjs";
|
|
10
10
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
11
11
|
import "./code-blocks-0wjOsqdJ.mjs";
|
|
12
12
|
import "./server.mjs";
|
package/dist/server.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as resolveConfiguredAgentSkills, r as resolveConfiguredAgentSkillsSync, t as ResolveConfiguredAgentSkillsOptions } from "./agent-skills-server-
|
|
1
|
+
import { B as DocsAgentEvaluationAnswerRunner, Bn as DocsSearchQuery, Bt as DocsContentSnapshotDocument, Cn as DocsSearchAmbiguityDecisionStatus, Dn as DocsSearchDocument, En as DocsSearchConfig, Et as DocsCodeBlocksPlannerProvider, F as DocsAgentContentChangesConfig, Fn as DocsSearchFilterField, Ft as DocsContentChangeSnapshotLoader, Gn as DocsSearchResponse, H as DocsAgentEvaluationSurface, Hn as DocsSearchRankingReasonCode, I as DocsAgentEvaluationAnswerInput, In as DocsSearchFilterInput, It as DocsContentChangeSnapshotSaver, J as DocsAgentGoldenExampleVerification, Jn as DocsSearchSourcePage, Kn as DocsSearchResult, L as DocsAgentEvaluationAnswerProvider, Ln as DocsSearchFilters, Lt as DocsContentChangedDocument, Mt as DocsConfig, Nn as DocsSearchFilterDecision, Nt as DocsContentChangeDocument, Pn as DocsSearchFilterDecisionOutcome, Pt as DocsContentChangeSnapshotContext, Q as DocsAgentGoldenTaskFilters, R as DocsAgentEvaluationAnswerRequest, Rn as DocsSearchMatchField, Rt as DocsContentChangesResponse, Sn as DocsSearchAmbiguityDecision, U as DocsAgentEvaluationTaskInput, Un as DocsSearchRankingStrategy, V as DocsAgentEvaluationSourceReference, Vn as DocsSearchRankingReason, Wn as DocsSearchRequest, X as DocsAgentGoldenTask, Xn as DocsSearchWarningCode, Y as DocsAgentGoldenExpectedExample, Yn as DocsSearchWarning, Z as DocsAgentGoldenTaskExpectation, Zn as DocsSitemapConfig, _t as DocsAskAIFeedbackValue, a as ApiReferenceRenderer, an as DocsObservabilityEventInput, at as DocsAgentTraceStatus, bn as DocsSearchAdapterFactory, cn as DocsRetrievalSourceProvenance, ct as DocsAnalyticsEventInput, dn as DocsReviewCiMode, fn as DocsReviewConfig, gt as DocsAskAIFeedbackMessage, ht as DocsAskAIFeedbackData, in as DocsObservabilityEvent, it as DocsAgentTraceEventType, kn as DocsSearchExplanation, kt as DocsCodeBlocksValidateConfig, ln as DocsRetrievalSourceScope, mr as McpDocsSearchConfig, mt as DocsAskAIFeedbackConfig, on as DocsPaginatedSearchResponse, ot as DocsAnalyticsConfig, pn as DocsReviewRulesConfig, q as DocsAgentGoldenAnswerExpectation, rn as DocsObservabilityConfig, rt as DocsAgentTraceEventInput, st as DocsAnalyticsEvent, vn as DocsSearchAdapter, vt as DocsAskAIMcpConfig, wn as DocsSearchAmbiguityResolution, xn as DocsSearchAdapterPage, yn as DocsSearchAdapterContext, z as DocsAgentEvaluationAnswerResult, zn as DocsSearchMatchedTerm, zt as DocsContentSnapshot } from "./types-DQl2dvDl.mjs";
|
|
2
|
+
import { n as resolveConfiguredAgentSkills, r as resolveConfiguredAgentSkillsSync, t as ResolveConfiguredAgentSkillsOptions } from "./agent-skills-server-aKgt9CR9.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-Bx-qtqHL.mjs";
|
|
5
5
|
import { DocsCloudAskAIOptions, DocsCloudPublicConfig, DocsCloudRouteHandlerOptions, DocsCloudRouteHandlers, DocsCloudRuntimeEnv, DocsCloudRuntimeValue, DocsCloudServer, DocsCloudServerOptions, DocsCloudTrackEventOptions, createDocsCloudRouteHandler, createDocsCloudServer } from "./docs-cloud-server.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-
|
|
7
|
-
import { $n as PerformDocsSearchOptions, An as MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, Bn as createDocsContentChangeFeed, Cn as DocsContentChangeHydrationBudget, Cr as resolveSearchRequestConfig, Dn as DocsContentChangeHydrationTombstone, Dr as ExtractedDocsMarkdownPromptBlocks, En as DocsContentChangeHydrationSection, Er as DocsMarkdownPromptBlock, Fn as DocsContentChangeFeed, Gn as resolveDocsContentChangesRequest, Hn as isDocsContentChangeGeneration, In as DocsContentChangesRequest, Jn as DocsLocalMcpSearchRuntimeConfig, Kn as BuildDocsContentSnapshotOptions, Ln as DocsContentChangesRequestError, Mn as DOCS_CONTENT_CHANGES_FORMAT, Nn as DOCS_CONTENT_CHANGES_RESPONSE_VALUE, On as HydrateDocsContentChangesOptions, Or as extractDocsMarkdownPromptBlocks, Pn as DOCS_CONTENT_SNAPSHOT_FORMAT, Qn as EnrichDocsSearchDocumentsWithProvenanceOptions, Rn as DocsResolvedContentChangesConfig, Sn as DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, Sr as resolveLocalDocsMcpSearchConfig, Tn as DocsContentChangeHydrationResponse, Un as isDocsContentChangesRequest, Vn as createDocsContentChangesHttpResponse, Wn as resolveDocsContentChangesConfig, Xn as DocsSearchRequestError, Yn as DocsLocalMcpSearchRuntimeInput, Zn as DocsSearchRequestResolutionOptions, _r as resolveDocsRetrievalLastModified, ar as createAlgoliaSearchAdapter, br as resolveDocsSearchFilters, cr as createSimpleSearchAdapter, dr as formatDocsAskAIPackageHints, er as buildDocsAskAIContext, fr as inferDocsAskAIPackageHints, gr as resolveAskAISearchRequestConfig, hr as performDocsSearchWithMetadata, jn as hydrateDocsContentChanges, kn as MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, lr as createTypesenseSearchAdapter, mr as performDocsSearch, nr as buildDocsRetrievalDigestProjection, or as createCustomSearchAdapter, pr as normalizeDocsSearchFilters, rr as buildDocsSearchDocuments, sr as createMcpSearchAdapter, tr as buildDocsContentSnapshot, ur as enrichDocsSearchDocumentsWithProvenance, vr as resolveDocsSearchAudience, wn as DocsContentChangeHydrationContent, xn as DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, xr as resolveDocsSearchRequest, yr as resolveDocsSearchError, zn as ResolveDocsContentChangesOptions } from "./agent-
|
|
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-CG9QWgw-.mjs";
|
|
7
|
+
import { $n as PerformDocsSearchOptions, An as MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, Bn as createDocsContentChangeFeed, Cn as DocsContentChangeHydrationBudget, Cr as resolveSearchRequestConfig, Dn as DocsContentChangeHydrationTombstone, Dr as ExtractedDocsMarkdownPromptBlocks, En as DocsContentChangeHydrationSection, Er as DocsMarkdownPromptBlock, Fn as DocsContentChangeFeed, Gn as resolveDocsContentChangesRequest, Hn as isDocsContentChangeGeneration, In as DocsContentChangesRequest, Jn as DocsLocalMcpSearchRuntimeConfig, Kn as BuildDocsContentSnapshotOptions, Ln as DocsContentChangesRequestError, Mn as DOCS_CONTENT_CHANGES_FORMAT, Nn as DOCS_CONTENT_CHANGES_RESPONSE_VALUE, On as HydrateDocsContentChangesOptions, Or as extractDocsMarkdownPromptBlocks, Pn as DOCS_CONTENT_SNAPSHOT_FORMAT, Qn as EnrichDocsSearchDocumentsWithProvenanceOptions, Rn as DocsResolvedContentChangesConfig, Sn as DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, Sr as resolveLocalDocsMcpSearchConfig, Tn as DocsContentChangeHydrationResponse, Un as isDocsContentChangesRequest, Vn as createDocsContentChangesHttpResponse, Wn as resolveDocsContentChangesConfig, Xn as DocsSearchRequestError, Yn as DocsLocalMcpSearchRuntimeInput, Zn as DocsSearchRequestResolutionOptions, _r as resolveDocsRetrievalLastModified, ar as createAlgoliaSearchAdapter, br as resolveDocsSearchFilters, cr as createSimpleSearchAdapter, dr as formatDocsAskAIPackageHints, er as buildDocsAskAIContext, fr as inferDocsAskAIPackageHints, gr as resolveAskAISearchRequestConfig, hr as performDocsSearchWithMetadata, jn as hydrateDocsContentChanges, kn as MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, lr as createTypesenseSearchAdapter, mr as performDocsSearch, nr as buildDocsRetrievalDigestProjection, or as createCustomSearchAdapter, pr as normalizeDocsSearchFilters, rr as buildDocsSearchDocuments, sr as createMcpSearchAdapter, tr as buildDocsContentSnapshot, ur as enrichDocsSearchDocumentsWithProvenance, vr as resolveDocsSearchAudience, wn as DocsContentChangeHydrationContent, xn as DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, xr as resolveDocsSearchRequest, yr as resolveDocsSearchError, zn as ResolveDocsContentChangesOptions } from "./agent-qJNbZUCZ.mjs";
|
|
8
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
|
|
@@ -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_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 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 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 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 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, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolveLocalDocsMcpSearchConfig, 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_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 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 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 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 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, 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,11 +1,11 @@
|
|
|
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 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, It as resolveDocsSitemapConfig, Jt as resolveDocsContentChangesConfig, Kt as isDocsContentChangeGeneration, Lt as resolveDocsSitemapPageLastmod, Mt as createDocsSitemapResponse, Nt as readDocsSitemapManifestFromContentMap, Ot as DEFAULT_SITEMAP_MD_ROUTE, Pn as DocsPaginationCursorError, Pt as renderDocsSitemapMarkdown, Qt as buildDocsContentSnapshot, Rn as digestDocsRetrievalContent, 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, zn as isDocsRetrievalCanonicalUrl, zt as toDocsSitemapMarkdownUrl } from "./agent-
|
|
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, It as resolveDocsSitemapConfig, Jt as resolveDocsContentChangesConfig, Kt as isDocsContentChangeGeneration, Lt as resolveDocsSitemapPageLastmod, Mt as createDocsSitemapResponse, Nt as readDocsSitemapManifestFromContentMap, Ot as DEFAULT_SITEMAP_MD_ROUTE, Pn as DocsPaginationCursorError, Pt as renderDocsSitemapMarkdown, Qt as buildDocsContentSnapshot, Rn as digestDocsRetrievalContent, 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, zn as isDocsRetrievalCanonicalUrl, zt as toDocsSitemapMarkdownUrl } from "./agent-D68WI6-N.mjs";
|
|
3
3
|
import "./markdown-sections-7OoA7ylx.mjs";
|
|
4
4
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
5
|
-
import { a as hydrateDocsContentChanges, i as MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, n as DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, r as MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, t as DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET } from "./content-change-hydration-
|
|
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-
|
|
5
|
+
import { a as hydrateDocsContentChanges, i as MIN_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, n as DOCS_CONTENT_CHANGE_HYDRATION_FORMAT, r as MAX_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET, t as DEFAULT_DOCS_CONTENT_CHANGE_HYDRATION_TOKEN_BUDGET } from "./content-change-hydration-CiMxs3LF.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-_AeFxJQB.mjs";
|
|
7
7
|
import { i as resolveConfiguredAgentSkillsSync, r as resolveConfiguredAgentSkills } from "./agent-skills-server-D5qYU19g.mjs";
|
|
8
|
-
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 { 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-CEvUQb_Z.mjs";
|
|
9
9
|
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";
|
|
10
10
|
import { n as isDocsCloudAskAIProvider, t as createDocsCloudAskAIResponse } from "./cloud-ask-ai-BRBK4RBG.mjs";
|
|
11
11
|
import { createDocsCloudRouteHandler, createDocsCloudServer } from "./docs-cloud-server.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
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-D68WI6-N.mjs";
|
|
2
2
|
import "./markdown-sections-7OoA7ylx.mjs";
|
|
3
3
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
4
|
-
import "./content-change-hydration-
|
|
5
|
-
import "./sitemap-server-
|
|
4
|
+
import "./content-change-hydration-CiMxs3LF.mjs";
|
|
5
|
+
import "./sitemap-server-_AeFxJQB.mjs";
|
|
6
6
|
import "./agent-skills-server-D5qYU19g.mjs";
|
|
7
|
-
import "./agent-evals-
|
|
7
|
+
import "./agent-evals-CEvUQb_Z.mjs";
|
|
8
8
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
9
9
|
import "./code-blocks-0wjOsqdJ.mjs";
|
|
10
10
|
import "./server.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as resolveDocsSitemapConfig } from "./agent-
|
|
1
|
+
import { It as resolveDocsSitemapConfig } from "./agent-D68WI6-N.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-DQl2dvDl.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/standards-discovery.d.ts
|
|
4
4
|
declare const DEFAULT_API_CATALOG_ROUTE = "/.well-known/api-catalog";
|
|
@@ -1467,6 +1467,65 @@ interface DocsSearchDocument {
|
|
|
1467
1467
|
/** Source metadata persisted with hosted search records. */
|
|
1468
1468
|
source?: DocsRetrievalSourceProvenance;
|
|
1469
1469
|
}
|
|
1470
|
+
/** Search fields that can contribute lexical evidence for one result. */
|
|
1471
|
+
type DocsSearchMatchField = "title" | "section" | "description" | "content" | "url";
|
|
1472
|
+
/** One normalized query term and the result fields in which it was found. */
|
|
1473
|
+
interface DocsSearchMatchedTerm {
|
|
1474
|
+
term: string;
|
|
1475
|
+
fields: DocsSearchMatchField[];
|
|
1476
|
+
}
|
|
1477
|
+
type DocsSearchFilterDecisionOutcome = "not_requested" | "matched" | "not_verifiable";
|
|
1478
|
+
/** How one scope filter affected an included result. */
|
|
1479
|
+
interface DocsSearchFilterDecision {
|
|
1480
|
+
field: DocsSearchFilterField;
|
|
1481
|
+
requestedValues: string[];
|
|
1482
|
+
selectedValues: string[];
|
|
1483
|
+
matchedValues: string[];
|
|
1484
|
+
outcome: DocsSearchFilterDecisionOutcome;
|
|
1485
|
+
}
|
|
1486
|
+
type DocsSearchAmbiguityDecisionStatus = "unambiguous" | "resolved_by_filter" | "requires_filter" | "not_verifiable";
|
|
1487
|
+
/** How one ambiguity-prone scope field was resolved for the result set. */
|
|
1488
|
+
interface DocsSearchAmbiguityDecision {
|
|
1489
|
+
field: Exclude<DocsSearchFilterField, "tags">;
|
|
1490
|
+
status: DocsSearchAmbiguityDecisionStatus;
|
|
1491
|
+
selectedValues: string[];
|
|
1492
|
+
candidateValues?: string[];
|
|
1493
|
+
reason: string;
|
|
1494
|
+
}
|
|
1495
|
+
/** Summary of scope ambiguity after applying the requested filters. */
|
|
1496
|
+
interface DocsSearchAmbiguityResolution {
|
|
1497
|
+
status: "unambiguous" | "resolved" | "unresolved" | "not_verifiable";
|
|
1498
|
+
decisions: DocsSearchAmbiguityDecision[];
|
|
1499
|
+
}
|
|
1500
|
+
type DocsSearchRankingStrategy = "lexical" | "exact" | "provider";
|
|
1501
|
+
type DocsSearchRankingReasonCode = "literal_match" | "title_phrase" | "section_phrase" | "title_section_phrase" | "url_phrase" | "description_phrase" | "content_phrase" | "title_terms" | "section_terms" | "description_terms" | "content_terms" | "all_terms_in_section" | "all_terms_in_title" | "all_query_terms" | "heading_boost" | "exact_page_boost" | "provider_order" | "literal_result_priority" | "stable_url_tiebreak";
|
|
1502
|
+
/** One deterministic reason that contributed to, or controlled, final result ordering. */
|
|
1503
|
+
interface DocsSearchRankingReason {
|
|
1504
|
+
code: DocsSearchRankingReasonCode;
|
|
1505
|
+
description: string;
|
|
1506
|
+
/** Numeric contribution to the built-in lexical score, when applicable. */
|
|
1507
|
+
contribution?: number;
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Optional, bounded explanation generated after final ranking and provenance validation.
|
|
1511
|
+
*
|
|
1512
|
+
* Explanations describe the result that was actually returned. Provider ordering is
|
|
1513
|
+
* identified explicitly rather than being presented as a framework-computed lexical score.
|
|
1514
|
+
*/
|
|
1515
|
+
interface DocsSearchExplanation {
|
|
1516
|
+
format: "docs-search-explanation.v1";
|
|
1517
|
+
/** One-based rank in the complete cursor-bound result set. */
|
|
1518
|
+
rank: number;
|
|
1519
|
+
rankingStrategy: DocsSearchRankingStrategy;
|
|
1520
|
+
matchedTerms: DocsSearchMatchedTerm[];
|
|
1521
|
+
/** Whether additional terms or term characters were omitted from this bounded payload. */
|
|
1522
|
+
matchedTermsTruncated: boolean;
|
|
1523
|
+
/** Final selected provenance scope, or null when a remote provider did not supply one. */
|
|
1524
|
+
selectedScope: DocsRetrievalSourceScope | null;
|
|
1525
|
+
filterDecisions: DocsSearchFilterDecision[];
|
|
1526
|
+
ambiguityResolution: DocsSearchAmbiguityResolution;
|
|
1527
|
+
rankingReasons: DocsSearchRankingReason[];
|
|
1528
|
+
}
|
|
1470
1529
|
interface DocsSearchResult {
|
|
1471
1530
|
id: string;
|
|
1472
1531
|
url: string;
|
|
@@ -1477,6 +1536,8 @@ interface DocsSearchResult {
|
|
|
1477
1536
|
section?: string;
|
|
1478
1537
|
/** Canonical, scope-aware provenance when supplied or recoverable locally. */
|
|
1479
1538
|
source?: DocsRetrievalSourceProvenance;
|
|
1539
|
+
/** Present only when the caller opts into retrieval explanations. */
|
|
1540
|
+
explanation?: DocsSearchExplanation;
|
|
1480
1541
|
}
|
|
1481
1542
|
type DocsSearchFilterField = "framework" | "version" | "package" | "tags";
|
|
1482
1543
|
interface DocsSearchFilterInput {
|
|
@@ -1576,6 +1637,8 @@ interface DocsPaginatedSearchResponse extends DocsSearchResponse {
|
|
|
1576
1637
|
interface DocsSearchRequest {
|
|
1577
1638
|
filters: DocsSearchFilters;
|
|
1578
1639
|
structured: boolean;
|
|
1640
|
+
/** Whether search results should include bounded retrieval explanations. */
|
|
1641
|
+
explain?: boolean;
|
|
1579
1642
|
/** Whether the caller requested the body-free search facet response. */
|
|
1580
1643
|
facets?: boolean;
|
|
1581
1644
|
/** Facet field selected for cursor continuation. */
|
|
@@ -1598,6 +1661,8 @@ interface DocsSearchQuery {
|
|
|
1598
1661
|
audience?: "human" | "agent";
|
|
1599
1662
|
/** Normalized framework, version, package, and tag constraints. */
|
|
1600
1663
|
filters?: DocsSearchFilters;
|
|
1664
|
+
/** Whether the shared pipeline should explain the final ranked results. */
|
|
1665
|
+
explain?: boolean;
|
|
1601
1666
|
}
|
|
1602
1667
|
interface DocsSearchAdapterContext {
|
|
1603
1668
|
pages: DocsSearchSourcePage[];
|
|
@@ -3851,4 +3916,4 @@ interface DocsConfig {
|
|
|
3851
3916
|
og?: OGConfig;
|
|
3852
3917
|
}
|
|
3853
3918
|
//#endregion
|
|
3854
|
-
export { DocsAgentSkillsCompatibilityPolicy as $,
|
|
3919
|
+
export { DocsAgentSkillsCompatibilityPolicy as $, DocsTelemetryConfig as $n, DocsMcpSecurityConfig as $t, DocsAgentA2ASecurityScheme as A, DocsSearchFacet as An, PageOpenGraph as Ar, DocsCodeBlocksValidationMode as At, DocsAgentEvaluationAnswerRunner as B, DocsSearchQuery as Bn, SidebarNode as Br, DocsContentSnapshotDocument as Bt, DocsAgentA2AOAuthDeviceCodeFlow as C, DocsSearchAmbiguityDecisionStatus as Cn, PageActionsConfig as Cr, DocsCloudPublishConfig as Ct, DocsAgentA2AOpenIdConnectSecurityScheme as D, DocsSearchDocument as Dn, PageAgentFrontmatter as Dr, DocsCodeBlocksRunnerConfig as Dt, DocsAgentA2AOAuthPasswordFlow as E, DocsSearchConfig as En, PageAgentFailureMode as Er, DocsCodeBlocksPlannerProvider as Et, DocsAgentContentChangesConfig as F, DocsSearchFilterField as Fn, ResolvedDocsRelatedLink as Fr, DocsContentChangeSnapshotLoader as Ft, DocsAgentFeedbackContext as G, DocsSearchResponse as Gn, TypesenseDocsSearchConfig as Gr, DocsMcpAuthPrincipal as Gt, DocsAgentEvaluationSurface as H, DocsSearchRankingReasonCode as Hn, SidebarTree as Hr, DocsFeedbackValue as Ht, DocsAgentEvaluationAnswerInput as I, DocsSearchFilterInput as In, SidebarComponentProps as Ir, DocsContentChangeSnapshotSaver as It, DocsAgentGoldenExampleVerification as J, DocsSearchSourcePage as Jn, DocsMcpAuthenticateResult as Jt, DocsAgentFeedbackData as K, DocsSearchResult as Kn, TypographyConfig as Kr, DocsMcpAuthenticate as Kt, DocsAgentEvaluationAnswerProvider as L, DocsSearchFilters as Ln, SidebarConfig as Lr, DocsContentChangedDocument as Lt, DocsAgentA2ASkill as M, DocsSearchFacetsResponse as Mn, PageTwitter as Mr, DocsConfig as Mt, DocsAgentCompactConfig as N, DocsSearchFilterDecision as Nn, ReadingTimeConfig as Nr, DocsContentChangeDocument as Nt, DocsAgentA2AProtocolBinding as O, DocsSearchEmbeddingsConfig as On, PageAgentVerification as Or, DocsCodeBlocksRunnerProvider as Ot, DocsAgentConfig as P, DocsSearchFilterDecisionOutcome as Pn, ReadingTimeFormat as Pr, DocsContentChangeSnapshotContext as Pt, DocsAgentGoldenTaskFilters as Q, DocsTelemetryAgentSurface as Qn, DocsMcpProtectedResourceConfig as Qt, DocsAgentEvaluationAnswerRequest as R, DocsSearchMatchField as Rn, SidebarFolderIndexBehavior as Rr, DocsContentChangesResponse as Rt, DocsAgentA2AOAuthClientCredentialsFlow as S, DocsSearchAmbiguityDecision as Sn, OrderingItem as Sr, DocsCloudPreviewConfig as St, DocsAgentA2AOAuthImplicitFlow as T, DocsSearchChunkingConfig as Tn, PageAgentCommand as Tr, DocsCodeBlocksPlannerConfig as Tt, DocsAgentEvaluationTaskInput as U, DocsSearchRankingStrategy as Un, SimpleDocsSearchConfig as Ur, DocsI18nConfig as Ut, DocsAgentEvaluationSourceReference as V, DocsSearchRankingReason as Vn, SidebarPageNode as Vr, DocsFeedbackData as Vt, DocsAgentEvaluationsConfig as W, DocsSearchRequest as Wn, ThemeToggleConfig as Wr, DocsMcpAllowedOrigins as Wt, DocsAgentGoldenTask as X, DocsSearchWarningCode as Xn, DocsMcpCorsConfig as Xt, DocsAgentGoldenExpectedExample as Y, DocsSearchWarning as Yn, DocsMcpConfig as Yt, DocsAgentGoldenTaskExpectation as Z, DocsSitemapConfig as Zn, DocsMcpOriginContext as Zt, DocsAgentA2AHttpAuthSecurityScheme as _, DocsRobotsRule as _n, OpenDocsProvider as _r, DocsAskAIFeedbackValue as _t, ApiReferenceRenderer as a, DocsObservabilityEventInput as an, DocsTheme as ar, DocsAgentTraceStatus as at, DocsAgentA2AOAuth2SecurityScheme as b, DocsSearchAdapterFactory as bn, OpenDocsTarget as br, DocsCloudConfig as bt, ChangelogFrontmatter as c, DocsRetrievalSourceProvenance as cn, GithubConfig as cr, DocsAnalyticsEventInput as ct, CopyMarkdownFormat as d, DocsReviewCiMode as dn, LlmsTxtMaxCharsConfig as dr, DocsAnalyticsSource as dt, DocsMcpToolsConfig as en, DocsTelemetryEvent as er, DocsAgentSkillsConfig as et, CustomDocsSearchConfig as f, DocsReviewConfig as fn, LlmsTxtMaxCharsMode as fr, DocsAskAIActionData as ft, DocsAgentA2AExtension as g, DocsRobotsConfig as gn, OpenDocsConfig as gr, DocsAskAIFeedbackMessage as gt, DocsAgentA2AConfig as h, DocsReviewSeverity as hn, OGConfig as hr, DocsAskAIFeedbackData as ht, ApiReferenceConfig as i, DocsObservabilityEvent as in, DocsTelemetryFramework as ir, DocsAgentTraceEventType as it, DocsAgentA2ASecurityScopeList as j, DocsSearchFacetValue as jn, PageSidebarFrontmatter as jr, DocsCodeBlocksValidationPolicy as jt, DocsAgentA2ASecurityRequirement as k, DocsSearchExplanation as kn, PageFrontmatter as kr, DocsCodeBlocksValidateConfig as kt, CodeBlockCopyData as l, DocsRetrievalSourceScope as ln, LastUpdatedConfig as lr, DocsAnalyticsEventType as lt, DocsAgentA2ACapabilities as m, DocsReviewScoreConfig as mn, McpDocsSearchConfig as mr, DocsAskAIFeedbackConfig as mt, AgentFeedbackConfig as n, DocsNav as nn, DocsTelemetryEventType as nr, DocsAgentSkillsProgressiveDisclosureConfig as nt, BreadcrumbConfig as o, DocsPaginatedSearchResponse as on, FeedbackConfig as or, DocsAnalyticsConfig as ot, DocsAgentA2AApiKeySecurityScheme as p, DocsReviewRulesConfig as pn, LlmsTxtSectionConfig as pr, DocsAskAIActionType as pt, DocsAgentGoldenAnswerExpectation as q, DocsSearchResultType as qn, UIConfig as qr, DocsMcpAuthenticateContext as qt, AlgoliaDocsSearchConfig as r, DocsObservabilityConfig as rn, DocsTelemetryFeatures as rr, DocsAgentTraceEventInput as rt, ChangelogConfig as s, DocsRelatedItem as sn, FontStyle as sr, DocsAnalyticsEvent as st, AIConfig as t, DocsMetadata as tn, DocsTelemetryEventInput as tr, DocsAgentSkillsInput as tt, CopyMarkdownConfig as u, DocsReviewCiConfig as un, LlmsTxtConfig as ur, DocsAnalyticsInput as ut, DocsAgentA2AInterfaceConfig as v, DocsSearchAdapter as vn, OpenDocsProviderConfig as vr, DocsAskAIMcpConfig as vt, DocsAgentA2AOAuthFlows as w, DocsSearchAmbiguityResolution as wn, PageAgentAppliesTo as wr, DocsCodeBlocksConfig as wt, DocsAgentA2AOAuthAuthorizationCodeFlow as x, DocsSearchAdapterPage as xn, OpenGraphImage as xr, DocsCloudFeatureConfig as xt, DocsAgentA2AMutualTlsSecurityScheme as y, DocsSearchAdapterContext as yn, OpenDocsProviderId as yr, DocsCloudApiKeyConfig as yt, DocsAgentEvaluationAnswerResult as z, DocsSearchMatchedTerm as zn, SidebarFolderNode as zr, DocsContentSnapshot as zt };
|