@farming-labs/docs 0.2.77 → 0.2.78
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-SRIJ-oF8.mjs → agent-Ba94vwM2.mjs} +4282 -334
- package/dist/{agent-DRKj42ht.d.mts → agent-CHgWJcK_.d.mts} +45 -3
- package/dist/{agent-D4hNGatV.mjs → agent-CM-hzhfh.mjs} +2 -2
- package/dist/{agent-evals-DmFoKy_y.mjs → agent-evals-C8dkgJMN.mjs} +1 -1
- package/dist/{agent-export-CM-p9_YD.mjs → agent-export-DdF-IVfg.mjs} +6 -5
- package/dist/agent-provenance-D8UBpnMc.mjs +463 -0
- package/dist/agent-skills-bundle.d.mts +1 -1
- package/dist/{agent-skills-server-CJ4D0G9P.d.mts → agent-skills-server-zvs0Yknt.d.mts} +2 -2
- package/dist/agent-skills-vite.d.mts +3 -3
- package/dist/{agents-BeLDNCnE.mjs → agents-v0Em2KZo.mjs} +4 -4
- package/dist/cli/index.mjs +14 -14
- package/dist/client/react.d.mts +1 -1
- package/dist/{cloud-ask-ai-BCgHPxew.d.mts → cloud-ask-ai-BwsdF7AQ.d.mts} +1 -1
- package/dist/docs-cloud-server.d.mts +2 -2
- package/dist/{doctor-DhMVKHjp.mjs → doctor-BbrN0rdC.mjs} +8 -8
- package/dist/{golden-evaluations-VzE6juQl.mjs → golden-evaluations-Bk9t-HNq.mjs} +7 -2
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +5 -5
- package/dist/{mcp-CZkQJXtA.mjs → mcp-DT-WNsA-.mjs} +4 -4
- package/dist/mcp.d.mts +5 -4
- package/dist/mcp.mjs +193 -3
- package/dist/{prompt-references-B6L3AD98.mjs → prompt-references-CoDorsvS.mjs} +2 -2
- package/dist/{retrieval-digest-rponR4jM.d.mts → retrieval-digest-CO3wqeMk.d.mts} +85 -4
- package/dist/{review-nxoV8jIm.mjs → review-DrCaaT7G.mjs} +4 -4
- package/dist/{robots-CgH6Stqn.mjs → robots-C_v2HK43.mjs} +1 -1
- package/dist/{robots-CiQT8mX2.mjs → robots-izJbM9cv.mjs} +2 -2
- package/dist/{search-BTUIkhnT.mjs → search-YiZMZDfb.mjs} +4 -4
- package/dist/server.d.mts +6 -6
- package/dist/server.mjs +5 -5
- package/dist/{sitemap-e0_GeCWJ.mjs → sitemap-NO8UMO6Y.mjs} +4 -4
- package/dist/{sitemap-server-DHaxyPAd.mjs → sitemap-server-Dgxs9V6S.mjs} +1 -1
- package/dist/{standards-discovery-BbslY4id.d.mts → standards-discovery-BWyNgZSs.d.mts} +1 -1
- package/dist/{types-B-5Kzmkn.d.mts → types-CpLnwHak.d.mts} +125 -4
- package/package.json +1 -1
- package/dist/search-Da2AKaFJ.mjs +0 -3992
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 { E as DOCS_MARKDOWN_SECTION_INDEX_FORMAT,
|
|
2
|
+
import { $n as resolveDocsMcpResourceLocation, An as normalizeAgentScopeValues, Dn as agentVersionConstraintsOverlap, E as DOCS_MARKDOWN_SECTION_INDEX_FORMAT, En as agentVersionConstraintMatches, Fn as isDocsRetrievalCanonicalUrl, In as normalizeDocsRelated, Kn as isDocsMcpOAuthScopeToken, Ln as renderDocsRelatedMarkdownLines, Mn as DocsPaginationCursorError, Nn as paginateDocsItems, On as normalizeAgentFramework, P as buildDocsMarkdownSectionIndex, Qn as resolveDocsMcpProtectedResourceMetadataLocation, Xn as normalizeDocsMcpAuthorizationServerUrls, Yn as isDocsMcpResourcePath, Zn as normalizeDocsMcpEndpointPath, dn as performDocsSearchWithMetadata, en as buildDocsSearchFacets, kn as normalizeAgentLocale, ln as normalizeDocsSearchFilters, qn as isDocsMcpProtectedResourceMetadataPath, un as performDocsSearch, wn as resolveDocsAudienceMdxContent, wt as toDocsMarkdownUrl } from "./agent-Ba94vwM2.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 {
|
|
5
|
+
import { f as emitDocsTelemetryAgentSurfaceEvent, h as emitDocsTelemetryProjectEvent, l as resolvePageSidebarFolderIndexBehavior, m as emitDocsTelemetryMcpToolEvent, s as stripGeneratedAgentProvenance } from "./agent-provenance-D8UBpnMc.mjs";
|
|
6
6
|
import matter from "gray-matter";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
@@ -223,9 +223,44 @@ const DOCS_CONFIG_SCHEMA_OPTIONS_TEMPLATE = [
|
|
|
223
223
|
path: "agent",
|
|
224
224
|
name: "agent",
|
|
225
225
|
type: "DocsAgentConfig",
|
|
226
|
-
description: "Agent compaction defaults and offline-by-default usefulness evaluations.",
|
|
226
|
+
description: "Agent synchronization, reusable skills, compaction defaults, and offline-by-default usefulness evaluations.",
|
|
227
227
|
docs: "/docs/getting-started/agent-ready-docs",
|
|
228
228
|
children: [
|
|
229
|
+
{
|
|
230
|
+
path: "agent.contentChanges",
|
|
231
|
+
name: "contentChanges",
|
|
232
|
+
type: "boolean | DocsAgentContentChangesConfig",
|
|
233
|
+
default: true,
|
|
234
|
+
description: "Body-free runtime document synchronization feed. Disable it with false, or configure bounded and durable snapshot history.",
|
|
235
|
+
children: [
|
|
236
|
+
{
|
|
237
|
+
path: "agent.contentChanges.enabled",
|
|
238
|
+
name: "enabled",
|
|
239
|
+
type: "boolean",
|
|
240
|
+
default: true,
|
|
241
|
+
description: "Whether runtime adapters serve response=changes."
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
path: "agent.contentChanges.maxSnapshots",
|
|
245
|
+
name: "maxSnapshots",
|
|
246
|
+
type: "number",
|
|
247
|
+
default: 8,
|
|
248
|
+
description: "Metadata-only snapshots retained in this server process; accepted range is 1 through 64."
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
path: "agent.contentChanges.loadSnapshot",
|
|
252
|
+
name: "loadSnapshot",
|
|
253
|
+
type: "DocsContentChangeSnapshotLoader",
|
|
254
|
+
description: "Optional callback that loads a prior generation from durable storage for exact cross-deployment deltas."
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
path: "agent.contentChanges.saveSnapshot",
|
|
258
|
+
name: "saveSnapshot",
|
|
259
|
+
type: "DocsContentChangeSnapshotSaver",
|
|
260
|
+
description: "Optional callback that persists each current metadata snapshot to durable storage."
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
229
264
|
{
|
|
230
265
|
path: "agent.skills",
|
|
231
266
|
name: "skills",
|
|
@@ -1526,6 +1561,13 @@ const DOCS_CONFIG_SCHEMA_OPTIONS_TEMPLATE = [
|
|
|
1526
1561
|
default: true,
|
|
1527
1562
|
description: "Expose the search_docs tool."
|
|
1528
1563
|
},
|
|
1564
|
+
{
|
|
1565
|
+
path: "mcp.tools.searchFacets",
|
|
1566
|
+
name: "searchFacets",
|
|
1567
|
+
type: "boolean",
|
|
1568
|
+
default: true,
|
|
1569
|
+
description: "Expose the list_search_facets tool for body-free framework, version, package, and tag discovery."
|
|
1570
|
+
},
|
|
1529
1571
|
{
|
|
1530
1572
|
path: "mcp.tools.readPage",
|
|
1531
1573
|
name: "readPage",
|
|
@@ -1728,6 +1770,22 @@ const searchDocsInputSchema = z.object({
|
|
|
1728
1770
|
package: searchFilterValueSchema.optional(),
|
|
1729
1771
|
tags: searchFilterValueSchema.optional()
|
|
1730
1772
|
});
|
|
1773
|
+
const searchFacetsInputSchema = z.object({
|
|
1774
|
+
locale: z.string().trim().min(1).max(128).optional(),
|
|
1775
|
+
audience: z.enum(["human", "agent"]).optional(),
|
|
1776
|
+
facet: z.enum([
|
|
1777
|
+
"framework",
|
|
1778
|
+
"version",
|
|
1779
|
+
"package",
|
|
1780
|
+
"tags"
|
|
1781
|
+
]).optional(),
|
|
1782
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
1783
|
+
cursor: paginationCursorInputSchema,
|
|
1784
|
+
framework: searchFilterValueSchema.optional(),
|
|
1785
|
+
version: searchFilterValueSchema.optional(),
|
|
1786
|
+
package: searchFilterValueSchema.optional(),
|
|
1787
|
+
tags: searchFilterValueSchema.optional()
|
|
1788
|
+
});
|
|
1731
1789
|
const readPageInputSchema = z.object({
|
|
1732
1790
|
path: z.string().min(1),
|
|
1733
1791
|
locale: z.string().trim().min(1).max(128).optional(),
|
|
@@ -1984,6 +2042,30 @@ const searchDocsOutputSchema = z.object({
|
|
|
1984
2042
|
results: z.array(searchResultOutputSchema),
|
|
1985
2043
|
warnings: z.array(searchWarningOutputSchema)
|
|
1986
2044
|
});
|
|
2045
|
+
const searchFacetOutputSchema = z.object({
|
|
2046
|
+
valueCount: z.number().int().nonnegative(),
|
|
2047
|
+
total: z.number().int().nonnegative(),
|
|
2048
|
+
hasMore: z.boolean(),
|
|
2049
|
+
nextCursor: z.string().optional(),
|
|
2050
|
+
truncated: z.boolean(),
|
|
2051
|
+
values: z.array(z.object({
|
|
2052
|
+
value: z.string(),
|
|
2053
|
+
count: z.number().int().nonnegative()
|
|
2054
|
+
}))
|
|
2055
|
+
});
|
|
2056
|
+
const searchFacetsOutputSchema = z.object({
|
|
2057
|
+
format: z.literal("docs-search-facets.v1"),
|
|
2058
|
+
audience: z.enum(["human", "agent"]),
|
|
2059
|
+
filters: searchFiltersOutputSchema,
|
|
2060
|
+
indexGeneration: retrievalSourceDigestOutputSchema,
|
|
2061
|
+
matchedPageCount: z.number().int().nonnegative(),
|
|
2062
|
+
facets: z.object({
|
|
2063
|
+
framework: searchFacetOutputSchema,
|
|
2064
|
+
version: searchFacetOutputSchema,
|
|
2065
|
+
package: searchFacetOutputSchema,
|
|
2066
|
+
tags: searchFacetOutputSchema
|
|
2067
|
+
})
|
|
2068
|
+
});
|
|
1987
2069
|
const codeExampleOutputSchema = z.object({
|
|
1988
2070
|
id: z.string(),
|
|
1989
2071
|
page: z.object({
|
|
@@ -2145,6 +2227,7 @@ function resolveDocsMcpConfig(mcp, defaults = {}) {
|
|
|
2145
2227
|
listTasks: true,
|
|
2146
2228
|
readTask: true,
|
|
2147
2229
|
searchDocs: true,
|
|
2230
|
+
searchFacets: true,
|
|
2148
2231
|
getNavigation: true,
|
|
2149
2232
|
getCodeExamples: true,
|
|
2150
2233
|
getConfigSchema: true,
|
|
@@ -2166,6 +2249,7 @@ function resolveDocsMcpConfig(mcp, defaults = {}) {
|
|
|
2166
2249
|
listTasks: config.tools?.listTasks ?? true,
|
|
2167
2250
|
readTask: config.tools?.readTask ?? true,
|
|
2168
2251
|
searchDocs: config.tools?.searchDocs ?? true,
|
|
2252
|
+
searchFacets: config.tools?.searchFacets ?? true,
|
|
2169
2253
|
getNavigation: config.tools?.getNavigation ?? true,
|
|
2170
2254
|
getCodeExamples: config.tools?.getCodeExamples ?? true,
|
|
2171
2255
|
getConfigSchema: config.tools?.getConfigSchema ?? true,
|
|
@@ -3115,6 +3199,112 @@ async function createDocsMcpServer(options) {
|
|
|
3115
3199
|
throw error;
|
|
3116
3200
|
}
|
|
3117
3201
|
});
|
|
3202
|
+
if (resolved.tools.searchFacets) registerTool("list_search_facets", {
|
|
3203
|
+
title: "List documentation search facets",
|
|
3204
|
+
description: "List valid framework, version, package, and tag filters with matching page counts before calling search_docs. Use facet, limit, and cursor to continue a large facet without document bodies.",
|
|
3205
|
+
inputSchema: searchFacetsInputSchema,
|
|
3206
|
+
outputSchema: searchFacetsOutputSchema,
|
|
3207
|
+
annotations: { readOnlyHint: true }
|
|
3208
|
+
}, async ({ locale, audience, facet, limit, cursor, framework, version, package: packageName, tags }) => {
|
|
3209
|
+
const startedAt = nowMs();
|
|
3210
|
+
const resolvedAudience = audience ?? "agent";
|
|
3211
|
+
const resolvedLocale = resolveSourceLocale(locale);
|
|
3212
|
+
const filters = {
|
|
3213
|
+
framework,
|
|
3214
|
+
version,
|
|
3215
|
+
package: packageName,
|
|
3216
|
+
tags
|
|
3217
|
+
};
|
|
3218
|
+
const trace = createDocsAgentTraceContext("mcp.tool.list_search_facets");
|
|
3219
|
+
const callSpanId = createDocsAgentTraceId("span");
|
|
3220
|
+
await emitDocsAgentTraceEvent(options.observability, {
|
|
3221
|
+
type: "tool.call",
|
|
3222
|
+
source: "mcp",
|
|
3223
|
+
traceId: trace.traceId,
|
|
3224
|
+
spanId: callSpanId,
|
|
3225
|
+
name: "list_search_facets",
|
|
3226
|
+
startedAt: trace.startedAt,
|
|
3227
|
+
status: "started",
|
|
3228
|
+
locale,
|
|
3229
|
+
inputPreview: {
|
|
3230
|
+
locale,
|
|
3231
|
+
audience: resolvedAudience,
|
|
3232
|
+
facet,
|
|
3233
|
+
limit,
|
|
3234
|
+
hasCursor: cursor !== void 0,
|
|
3235
|
+
filterFields: Object.entries(filters).filter(([, value]) => value !== void 0).map(([field]) => field)
|
|
3236
|
+
},
|
|
3237
|
+
metadata: { tool: "list_search_facets" }
|
|
3238
|
+
});
|
|
3239
|
+
try {
|
|
3240
|
+
const facets = await buildDocsSearchFacets({
|
|
3241
|
+
pages: toSearchSourcePages(dedupePages(await options.source.getPages(resolvedLocale, options.requestContext))),
|
|
3242
|
+
search: toolSearchConfig ?? true,
|
|
3243
|
+
audience: resolvedAudience,
|
|
3244
|
+
filters,
|
|
3245
|
+
facet,
|
|
3246
|
+
limit,
|
|
3247
|
+
cursor,
|
|
3248
|
+
locale: resolvedLocale,
|
|
3249
|
+
baseUrl: options.source.baseUrl ?? (options.requestContext?.request ? new URL(options.requestContext.request.url).origin : void 0)
|
|
3250
|
+
});
|
|
3251
|
+
const elapsed = durationMs(startedAt);
|
|
3252
|
+
await emitDocsAnalyticsEvent(options.analytics, {
|
|
3253
|
+
type: "mcp_tool",
|
|
3254
|
+
source: "mcp",
|
|
3255
|
+
locale,
|
|
3256
|
+
properties: {
|
|
3257
|
+
tool: "list_search_facets",
|
|
3258
|
+
audience: resolvedAudience,
|
|
3259
|
+
matchedPageCount: facets.matchedPageCount,
|
|
3260
|
+
frameworkCount: facets.facets.framework.valueCount,
|
|
3261
|
+
versionCount: facets.facets.version.valueCount,
|
|
3262
|
+
packageCount: facets.facets.package.valueCount,
|
|
3263
|
+
tagCount: facets.facets.tags.valueCount,
|
|
3264
|
+
durationMs: elapsed
|
|
3265
|
+
}
|
|
3266
|
+
});
|
|
3267
|
+
trackMcpTool("list_search_facets", {
|
|
3268
|
+
locale,
|
|
3269
|
+
resultCount: facets.matchedPageCount
|
|
3270
|
+
});
|
|
3271
|
+
await emitDocsAgentTraceEvent(options.observability, {
|
|
3272
|
+
type: "tool.result",
|
|
3273
|
+
source: "mcp",
|
|
3274
|
+
traceId: trace.traceId,
|
|
3275
|
+
parentSpanId: callSpanId,
|
|
3276
|
+
name: "list_search_facets",
|
|
3277
|
+
startedAt: trace.startedAt,
|
|
3278
|
+
endedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3279
|
+
durationMs: elapsed,
|
|
3280
|
+
status: "success",
|
|
3281
|
+
locale,
|
|
3282
|
+
outputPreview: {
|
|
3283
|
+
matchedPageCount: facets.matchedPageCount,
|
|
3284
|
+
facetValueCount: Object.values(facets.facets).reduce((total, facet) => total + facet.valueCount, 0)
|
|
3285
|
+
},
|
|
3286
|
+
metadata: { tool: "list_search_facets" }
|
|
3287
|
+
});
|
|
3288
|
+
return createStructuredTextResult(facets);
|
|
3289
|
+
} catch (error) {
|
|
3290
|
+
const elapsed = durationMs(startedAt);
|
|
3291
|
+
await emitDocsAgentTraceEvent(options.observability, {
|
|
3292
|
+
type: "tool.error",
|
|
3293
|
+
source: "mcp",
|
|
3294
|
+
traceId: trace.traceId,
|
|
3295
|
+
parentSpanId: callSpanId,
|
|
3296
|
+
name: "list_search_facets",
|
|
3297
|
+
startedAt: trace.startedAt,
|
|
3298
|
+
endedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3299
|
+
durationMs: elapsed,
|
|
3300
|
+
status: "error",
|
|
3301
|
+
locale,
|
|
3302
|
+
outputPreview: { message: error instanceof Error ? error.message : "Unknown error" },
|
|
3303
|
+
metadata: { tool: "list_search_facets" }
|
|
3304
|
+
});
|
|
3305
|
+
throw error;
|
|
3306
|
+
}
|
|
3307
|
+
});
|
|
3118
3308
|
if (resolved.tools.searchDocs) registerTool("search_docs", {
|
|
3119
3309
|
title: "Search documentation",
|
|
3120
3310
|
description: "Search the docs by keyword with optional framework, version, package, and tag filters. Returns structured ambiguity and metadata warnings.",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as DEFAULT_SITEMAP_XML_ROUTE, Ot as DEFAULT_SITEMAP_MD_ROUTE, Vn as DEFAULT_MCP_WELL_KNOWN_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-Ba94vwM2.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-C_v2HK43.mjs";
|
|
5
5
|
import matter from "gray-matter";
|
|
6
6
|
|
|
7
7
|
//#region src/define-docs.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { R as DocsDiscoveryApiRouteOptions } from "./standards-discovery-
|
|
3
|
-
import { pn as DocsContentAudience } from "./agent-
|
|
1
|
+
import { Dn as DocsSearchFilterField, En as DocsSearchFacetsResponse, F as DocsAgentContentChangesConfig, Fn as DocsSearchSourcePage, It as DocsContentChangesResponse, Lt as DocsContentSnapshot, Mr as TypesenseDocsSearchConfig, Nn as DocsSearchResult, On as DocsSearchFilterInput, Rn as DocsSitemapConfig, Sn as DocsSearchDocument, Sr as ResolvedDocsRelatedLink, at as DocsAnalyticsEvent, bn as DocsSearchChunkingConfig, f as CustomDocsSearchConfig, gn as DocsSearchAdapter, gt as DocsAskAIMcpConfig, in as DocsPaginatedSearchResponse, ir as OpenDocsProvider, it as DocsAnalyticsConfig, jn as DocsSearchRequest, kn as DocsSearchFilters, nn as DocsObservabilityEvent, ot as DocsAnalyticsEventInput, r as AlgoliaDocsSearchConfig, rn as DocsObservabilityEventInput, sr as OpenDocsTarget, tn as DocsObservabilityConfig, tr as McpDocsSearchConfig, tt as DocsAgentTraceEventInput, vn as DocsSearchAdapterFactory, xn as DocsSearchConfig } from "./types-CpLnwHak.mjs";
|
|
2
|
+
import { R as DocsDiscoveryApiRouteOptions } from "./standards-discovery-BWyNgZSs.mjs";
|
|
3
|
+
import { pn as DocsContentAudience } from "./agent-CHgWJcK_.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/analytics.d.ts
|
|
6
6
|
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"];
|
|
@@ -213,6 +213,22 @@ declare function formatDocsAskAIPackageHints(hints: DocsAskAIPackageHints, packa
|
|
|
213
213
|
*/
|
|
214
214
|
declare function buildDocsRetrievalDigestProjection(page: DocsSearchSourcePage, audience?: DocsContentAudience): string;
|
|
215
215
|
declare function resolveDocsRetrievalLastModified(page: DocsSearchSourcePage, audience: DocsContentAudience): string | undefined;
|
|
216
|
+
interface BuildDocsContentSnapshotOptions {
|
|
217
|
+
pages: readonly DocsSearchSourcePage[];
|
|
218
|
+
search?: boolean | DocsSearchConfig;
|
|
219
|
+
audience?: DocsContentAudience;
|
|
220
|
+
locale?: string;
|
|
221
|
+
baseUrl?: string;
|
|
222
|
+
/** @internal Precomputed complete-corpus generation for composed callers. */
|
|
223
|
+
indexGeneration?: string;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Build a deterministic, body-free inventory for content-change synchronization.
|
|
227
|
+
*
|
|
228
|
+
* Its generation is identical to structured search for the same pages, audience,
|
|
229
|
+
* locale, base URL, and chunking policy.
|
|
230
|
+
*/
|
|
231
|
+
declare function buildDocsContentSnapshot(options: BuildDocsContentSnapshotOptions): Promise<DocsContentSnapshot>;
|
|
216
232
|
interface EnrichDocsSearchDocumentsWithProvenanceOptions {
|
|
217
233
|
documents: readonly DocsSearchDocument[];
|
|
218
234
|
pages: readonly DocsSearchSourcePage[];
|
|
@@ -289,6 +305,30 @@ interface PerformDocsSearchOptions {
|
|
|
289
305
|
signal?: AbortSignal;
|
|
290
306
|
}
|
|
291
307
|
declare function performDocsSearch(options: PerformDocsSearchOptions): Promise<DocsSearchResult[]>;
|
|
308
|
+
interface BuildDocsSearchFacetsOptions {
|
|
309
|
+
pages: DocsSearchSourcePage[];
|
|
310
|
+
search?: boolean | DocsSearchConfig;
|
|
311
|
+
audience?: DocsContentAudience;
|
|
312
|
+
locale?: string;
|
|
313
|
+
baseUrl?: string;
|
|
314
|
+
filters?: DocsSearchFilterInput;
|
|
315
|
+
/** Facet field selected for cursor continuation. */
|
|
316
|
+
facet?: DocsSearchFilterField;
|
|
317
|
+
/** Opaque `nextCursor` returned for the selected facet. */
|
|
318
|
+
cursor?: string;
|
|
319
|
+
/** Maximum facet values returned per page. Defaults to 100. */
|
|
320
|
+
limit?: number;
|
|
321
|
+
/** @internal Precomputed complete-corpus generation for composed callers. */
|
|
322
|
+
indexGeneration?: string;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Build a body-free index of valid search filter values and page counts.
|
|
326
|
+
*
|
|
327
|
+
* Each facet applies filters from the other fields while ignoring its own selected
|
|
328
|
+
* values. This is the conventional faceted-search behavior and lets an agent discover
|
|
329
|
+
* safe alternatives without guessing or fetching document bodies.
|
|
330
|
+
*/
|
|
331
|
+
declare function buildDocsSearchFacets(options: BuildDocsSearchFacetsOptions): Promise<DocsSearchFacetsResponse>;
|
|
292
332
|
declare function performDocsSearchWithMetadata(options: PerformDocsSearchOptions): Promise<DocsPaginatedSearchResponse>;
|
|
293
333
|
declare function buildDocsAskAIContext(options: {
|
|
294
334
|
pages: DocsSearchSourcePage[];
|
|
@@ -317,6 +357,47 @@ declare class DocsPaginationCursorError extends Error {
|
|
|
317
357
|
constructor();
|
|
318
358
|
}
|
|
319
359
|
//#endregion
|
|
360
|
+
//#region src/content-changes.d.ts
|
|
361
|
+
declare const DOCS_CONTENT_CHANGES_FORMAT = "docs-content-changes.v1";
|
|
362
|
+
declare const DOCS_CONTENT_SNAPSHOT_FORMAT = "docs-content-snapshot.v1";
|
|
363
|
+
declare const DOCS_CONTENT_CHANGES_RESPONSE_VALUE = "changes";
|
|
364
|
+
interface DocsContentChangesRequest {
|
|
365
|
+
audience: "human" | "agent";
|
|
366
|
+
since?: string;
|
|
367
|
+
}
|
|
368
|
+
interface DocsResolvedContentChangesConfig {
|
|
369
|
+
enabled: boolean;
|
|
370
|
+
maxSnapshots: number;
|
|
371
|
+
loadSnapshot?: DocsAgentContentChangesConfig["loadSnapshot"];
|
|
372
|
+
saveSnapshot?: DocsAgentContentChangesConfig["saveSnapshot"];
|
|
373
|
+
}
|
|
374
|
+
interface ResolveDocsContentChangesOptions extends Omit<BuildDocsContentSnapshotOptions, "pages"> {
|
|
375
|
+
pages: readonly DocsSearchSourcePage[];
|
|
376
|
+
since?: string;
|
|
377
|
+
request?: Request;
|
|
378
|
+
}
|
|
379
|
+
interface DocsContentChangeFeed {
|
|
380
|
+
resolve(options: ResolveDocsContentChangesOptions): Promise<DocsContentChangesResponse>;
|
|
381
|
+
}
|
|
382
|
+
declare class DocsContentChangesRequestError extends Error {
|
|
383
|
+
readonly code = "invalid_content_changes_request";
|
|
384
|
+
constructor(message: string);
|
|
385
|
+
}
|
|
386
|
+
declare function resolveDocsContentChangesConfig(input?: boolean | DocsAgentContentChangesConfig, options?: {
|
|
387
|
+
staticExport?: boolean;
|
|
388
|
+
}): DocsResolvedContentChangesConfig;
|
|
389
|
+
declare function isDocsContentChangesRequest(url: URL): boolean;
|
|
390
|
+
declare function resolveDocsContentChangesRequest(url: URL): DocsContentChangesRequest;
|
|
391
|
+
declare function createDocsContentChangeFeed(input?: boolean | DocsAgentContentChangesConfig): DocsContentChangeFeed;
|
|
392
|
+
declare function createDocsContentChangesHttpResponse(options: {
|
|
393
|
+
request: Request;
|
|
394
|
+
feed: DocsContentChangeFeed;
|
|
395
|
+
pages: readonly DocsSearchSourcePage[];
|
|
396
|
+
search?: boolean | DocsSearchConfig;
|
|
397
|
+
locale?: string;
|
|
398
|
+
baseUrl?: string;
|
|
399
|
+
}): Promise<Response>;
|
|
400
|
+
//#endregion
|
|
320
401
|
//#region src/retrieval-digest.d.ts
|
|
321
402
|
/** Validate the bounded HTTP(S) URL or root-relative URI reference used by provenance. */
|
|
322
403
|
declare function isDocsRetrievalCanonicalUrl(value: string): boolean;
|
|
@@ -329,4 +410,4 @@ declare function isDocsRetrievalCanonicalUrl(value: string): boolean;
|
|
|
329
410
|
*/
|
|
330
411
|
declare function digestDocsRetrievalContent(value: string): `sha256:${string}`;
|
|
331
412
|
//#endregion
|
|
332
|
-
export {
|
|
413
|
+
export { DocsSitemapPageInput as $, createSimpleSearchAdapter as A, createDocsAgentTraceContext as At, resolveDocsSearchAudience as B, buildDocsContentSnapshot as C, serializeDocsIconRegistry as Ct, createAlgoliaSearchAdapter as D, DocsAgentTraceContext as Dt, buildDocsSearchFacets as E, DOCS_AGENT_TRACE_EVENT_TYPES as Et, normalizeDocsSearchFilters as F, getDocsRequestAnalyticsProperties as Ft, DEFAULT_SITEMAP_MANIFEST_PATH as G, resolveDocsSearchFilters as H, performDocsSearch as I, resolveDocsAnalyticsConfig as It, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE as J, DEFAULT_SITEMAP_MD_DOCS_ROUTE as K, performDocsSearchWithMetadata as L, resolveDocsObservabilityConfig as Lt, enrichDocsSearchDocumentsWithProvenance as M, emitDocsAgentTraceEvent as Mt, formatDocsAskAIPackageHints as N, emitDocsAnalyticsEvent as Nt, createCustomSearchAdapter as O, ResolvedDocsAnalyticsConfig as Ot, inferDocsAskAIPackageHints as P, emitDocsObservabilityEvent as Pt, DocsSitemapManifestPage as Q, resolveAskAISearchRequestConfig as R, buildDocsAskAIContext as S, serializeDocsIcon as St, buildDocsSearchDocuments as T, serializeOpenDocsProviders as Tt, resolveDocsSearchRequest as U, resolveDocsSearchError as V, resolveSearchRequestConfig as W, DocsSitemapFormat as X, DEFAULT_SITEMAP_XML_ROUTE as Y, DocsSitemapManifest as Z, BuildDocsContentSnapshotOptions as _, SerializedOpenDocsProvider as _t, DOCS_CONTENT_SNAPSHOT_FORMAT as a, renderDocsSitemapXml as at, EnrichDocsSearchDocumentsWithProvenanceOptions as b, resolvePromptProviderChoices as bt, DocsContentChangesRequestError as c, resolveDocsSitemapRequest as ct, createDocsContentChangeFeed as d, DEFAULT_OPEN_DOCS_PROVIDER_IDS as dt, DocsSitemapResolvedConfig as et, createDocsContentChangesHttpResponse as f, DEFAULT_OPEN_DOCS_TARGET as ft, DocsPaginationCursorError as g, SerializeOpenDocsProviderOptions as gt, resolveDocsContentChangesRequest as h, PromptProviderChoice as ht, DOCS_CONTENT_CHANGES_RESPONSE_VALUE as i, renderDocsSitemapMarkdown as it, createTypesenseSearchAdapter as j, createDocsAgentTraceId as jt, createMcpSearchAdapter as k, ResolvedDocsObservabilityConfig as kt, DocsResolvedContentChangesConfig as l, toDocsSitemapMarkdownUrl as lt, resolveDocsContentChangesConfig as m, PromptAction as mt, isDocsRetrievalCanonicalUrl as n, createDocsSitemapResponse as nt, DocsContentChangeFeed as o, resolveDocsSitemapConfig as ot, isDocsContentChangesRequest as p, DEFAULT_PROMPT_PROVIDER_TEMPLATES as pt, DEFAULT_SITEMAP_MD_ROUTE as q, DOCS_CONTENT_CHANGES_FORMAT as r, readDocsSitemapManifestFromContentMap as rt, DocsContentChangesRequest as s, resolveDocsSitemapPageLastmod as st, digestDocsRetrievalContent as t, buildDocsSitemapManifest as tt, ResolveDocsContentChangesOptions as u, DEFAULT_OPEN_DOCS_PROMPT as ut, BuildDocsSearchFacetsOptions as v, normalizePromptProviderName as vt, buildDocsRetrievalDigestProjection as w, serializeOpenDocsProvider as wt, PerformDocsSearchOptions as x, sanitizePromptText as xt, DocsSearchRequestError as y, parsePromptStringArray as yt, resolveDocsRetrievalLastModified as z };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as buildDocsAgentDiscoverySpec, M as buildDocsConfigMap, T as DOCS_CONFIG_MAP_TOP_LEVEL_KEYS, Un as getDocsMcpProtectedResourceMetadataRoutes, bn as findDocsAudienceMdxIssues, fn as resolveAskAISearchRequestConfig } from "./agent-Ba94vwM2.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
|
|
4
|
+
import "./agent-provenance-D8UBpnMc.mjs";
|
|
5
5
|
import { a as resolveDocsMetadataBaseUrl } from "./metadata-N252j5_a.mjs";
|
|
6
|
-
import { c as resolveDocsReviewConfig, o as ensureDocsReviewWorkflow, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-
|
|
6
|
+
import { c as resolveDocsReviewConfig, o as ensureDocsReviewWorkflow, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-C8dkgJMN.mjs";
|
|
7
7
|
import { createFilesystemDocsMcpSource, getDocsConfigSchema, resolveDocsMcpConfig } from "./mcp.mjs";
|
|
8
8
|
import "./code-blocks-DnNVNK2M.mjs";
|
|
9
9
|
import { _ as resolveDocsContentDir, g as resolveDocsConfigPath, h as readTopLevelStringProperty, s as loadDocsConfigModuleResultWithProjectEnv } from "./config-Wcdj-D0a.mjs";
|
|
10
10
|
import { t as detectFramework } from "./utils-DpiIioYb.mjs";
|
|
11
|
-
import { a as extractAgentBlocks, i as createAgentUsefulnessPagesFromMcp, n as analyzeAgentSurfaceDrift, r as analyzeAgentUsefulness, t as resolveGoldenEvaluationInput } from "./golden-evaluations-
|
|
11
|
+
import { a as extractAgentBlocks, i as createAgentUsefulnessPagesFromMcp, n as analyzeAgentSurfaceDrift, r as analyzeAgentUsefulness, t as resolveGoldenEvaluationInput } from "./golden-evaluations-Bk9t-HNq.mjs";
|
|
12
12
|
import matter from "gray-matter";
|
|
13
13
|
import { existsSync, lstatSync, readFileSync, readdirSync } from "node:fs";
|
|
14
14
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { It as resolveDocsSitemapConfig, S as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, Vn as DEFAULT_MCP_WELL_KNOWN_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, zn as DEFAULT_MCP_PUBLIC_ROUTE } from "./agent-Ba94vwM2.mjs";
|
|
2
2
|
import { a as DEFAULT_A2A_AGENT_CARD_ROUTE, b as DEFAULT_LEGACY_SKILLS_INDEX_ROUTE, f as DEFAULT_AGENT_SKILLS_ROUTE_PREFIX, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, v as DEFAULT_API_CATALOG_ROUTE, x as DEFAULT_LEGACY_SKILLS_ROUTE_PREFIX } from "./standards-discovery-BKlEnK_H.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/robots.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./agent-
|
|
1
|
+
import "./agent-Ba94vwM2.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-C_v2HK43.mjs";
|
|
5
5
|
import { a as loadDocsConfigModule, g as resolveDocsConfigPath, h as readTopLevelStringProperty, l as readBooleanProperty, m as readTopLevelBooleanProperty, p as readStringProperty, t as extractNestedObjectLiteral } from "./config-Wcdj-D0a.mjs";
|
|
6
6
|
import { t as detectFramework } from "./utils-DpiIioYb.mjs";
|
|
7
7
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./agent-
|
|
1
|
+
import { $t as buildDocsSearchDocuments, an as createTypesenseSearchAdapter, tn as createAlgoliaSearchAdapter } from "./agent-Ba94vwM2.mjs";
|
|
2
2
|
import "./markdown-sections-7OoA7ylx.mjs";
|
|
3
3
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
4
|
-
import
|
|
4
|
+
import "./agent-provenance-D8UBpnMc.mjs";
|
|
5
5
|
import { t as resolveDocsI18n } from "./i18n-hHVWcflJ.mjs";
|
|
6
6
|
import { a as resolveDocsMetadataBaseUrl } from "./metadata-N252j5_a.mjs";
|
|
7
|
-
import "./sitemap-server-
|
|
8
|
-
import "./agent-evals-
|
|
7
|
+
import "./sitemap-server-Dgxs9V6S.mjs";
|
|
8
|
+
import "./agent-evals-C8dkgJMN.mjs";
|
|
9
9
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
10
10
|
import "./code-blocks-DnNVNK2M.mjs";
|
|
11
11
|
import "./agent-skills-server-B2EXn2QD.mjs";
|
package/dist/server.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as resolveConfiguredAgentSkills, r as resolveConfiguredAgentSkillsSync, t as ResolveConfiguredAgentSkillsOptions } from "./agent-skills-server-
|
|
1
|
+
import { An as DocsSearchQuery, At as DocsConfig, B as DocsAgentEvaluationAnswerRunner, Dn as DocsSearchFilterField, Dt as DocsCodeBlocksValidateConfig, F as DocsAgentContentChangesConfig, Fn as DocsSearchSourcePage, Ft as DocsContentChangedDocument, H as DocsAgentEvaluationSurface, I as DocsAgentEvaluationAnswerInput, In as DocsSearchWarning, It as DocsContentChangesResponse, J as DocsAgentGoldenExampleVerification, L as DocsAgentEvaluationAnswerProvider, Ln as DocsSearchWarningCode, Lt as DocsContentSnapshot, Mn as DocsSearchResponse, Mt as DocsContentChangeSnapshotContext, Nn as DocsSearchResult, Nt as DocsContentChangeSnapshotLoader, On as DocsSearchFilterInput, Pt as DocsContentChangeSnapshotSaver, Q as DocsAgentGoldenTaskFilters, R as DocsAgentEvaluationAnswerRequest, Rn as DocsSitemapConfig, Rt as DocsContentSnapshotDocument, Sn as DocsSearchDocument, U as DocsAgentEvaluationTaskInput, V as DocsAgentEvaluationSourceReference, X as DocsAgentGoldenTask, Y as DocsAgentGoldenExpectedExample, Z as DocsAgentGoldenTaskExpectation, _n as DocsSearchAdapterContext, a as ApiReferenceRenderer, at as DocsAnalyticsEvent, dn as DocsReviewRulesConfig, ft as DocsAskAIFeedbackConfig, gn as DocsSearchAdapter, gt as DocsAskAIMcpConfig, ht as DocsAskAIFeedbackValue, in as DocsPaginatedSearchResponse, it as DocsAnalyticsConfig, jn as DocsSearchRequest, jt as DocsContentChangeDocument, kn as DocsSearchFilters, ln as DocsReviewCiMode, mt as DocsAskAIFeedbackMessage, nn as DocsObservabilityEvent, nt as DocsAgentTraceEventType, on as DocsRetrievalSourceProvenance, ot as DocsAnalyticsEventInput, pt as DocsAskAIFeedbackData, q as DocsAgentGoldenAnswerExpectation, rn as DocsObservabilityEventInput, rt as DocsAgentTraceStatus, sn as DocsRetrievalSourceScope, tn as DocsObservabilityConfig, tr as McpDocsSearchConfig, tt as DocsAgentTraceEventInput, un as DocsReviewConfig, vn as DocsSearchAdapterFactory, wt as DocsCodeBlocksPlannerProvider, xn as DocsSearchConfig, yn as DocsSearchAdapterPage, z as DocsAgentEvaluationAnswerResult } from "./types-CpLnwHak.mjs";
|
|
2
|
+
import { n as resolveConfiguredAgentSkills, r as resolveConfiguredAgentSkillsSync, t as ResolveConfiguredAgentSkillsOptions } from "./agent-skills-server-zvs0Yknt.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-BwsdF7AQ.mjs";
|
|
5
5
|
import { DocsCloudAskAIOptions, DocsCloudPublicConfig, DocsCloudRouteHandlerOptions, DocsCloudRouteHandlers, DocsCloudRuntimeEnv, DocsCloudRuntimeValue, DocsCloudServer, DocsCloudServerOptions, DocsCloudTrackEventOptions, createDocsCloudRouteHandler, createDocsCloudServer } from "./docs-cloud-server.mjs";
|
|
6
|
-
import { $ as
|
|
7
|
-
import { gn as extractDocsMarkdownPromptBlocks, hn as ExtractedDocsMarkdownPromptBlocks, mn as DocsMarkdownPromptBlock } from "./agent-
|
|
6
|
+
import { $ as DocsSitemapPageInput, A as createSimpleSearchAdapter, At as createDocsAgentTraceContext, B as resolveDocsSearchAudience, C as buildDocsContentSnapshot, Ct as serializeDocsIconRegistry, D as createAlgoliaSearchAdapter, Dt as DocsAgentTraceContext, Et as DOCS_AGENT_TRACE_EVENT_TYPES, F as normalizeDocsSearchFilters, Ft as getDocsRequestAnalyticsProperties, G as DEFAULT_SITEMAP_MANIFEST_PATH, H as resolveDocsSearchFilters, I as performDocsSearch, It as resolveDocsAnalyticsConfig, J as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, K as DEFAULT_SITEMAP_MD_DOCS_ROUTE, L as performDocsSearchWithMetadata, Lt as resolveDocsObservabilityConfig, M as enrichDocsSearchDocumentsWithProvenance, Mt as emitDocsAgentTraceEvent, N as formatDocsAskAIPackageHints, Nt as emitDocsAnalyticsEvent, O as createCustomSearchAdapter, Ot as ResolvedDocsAnalyticsConfig, P as inferDocsAskAIPackageHints, Pt as emitDocsObservabilityEvent, Q as DocsSitemapManifestPage, R as resolveAskAISearchRequestConfig, S as buildDocsAskAIContext, St as serializeDocsIcon, T as buildDocsSearchDocuments, Tt as serializeOpenDocsProviders, U as resolveDocsSearchRequest, V as resolveDocsSearchError, W as resolveSearchRequestConfig, X as DocsSitemapFormat, Y as DEFAULT_SITEMAP_XML_ROUTE, Z as DocsSitemapManifest, _ as BuildDocsContentSnapshotOptions, _t as SerializedOpenDocsProvider, a as DOCS_CONTENT_SNAPSHOT_FORMAT, at as renderDocsSitemapXml, b as EnrichDocsSearchDocumentsWithProvenanceOptions, bt as resolvePromptProviderChoices, c as DocsContentChangesRequestError, ct as resolveDocsSitemapRequest, d as createDocsContentChangeFeed, dt as DEFAULT_OPEN_DOCS_PROVIDER_IDS, et as DocsSitemapResolvedConfig, f as createDocsContentChangesHttpResponse, ft as DEFAULT_OPEN_DOCS_TARGET, g as DocsPaginationCursorError, gt as SerializeOpenDocsProviderOptions, h as resolveDocsContentChangesRequest, ht as PromptProviderChoice, i as DOCS_CONTENT_CHANGES_RESPONSE_VALUE, it as renderDocsSitemapMarkdown, j as createTypesenseSearchAdapter, jt as createDocsAgentTraceId, k as createMcpSearchAdapter, kt as ResolvedDocsObservabilityConfig, l as DocsResolvedContentChangesConfig, lt as toDocsSitemapMarkdownUrl, m as resolveDocsContentChangesConfig, mt as PromptAction, n as isDocsRetrievalCanonicalUrl, nt as createDocsSitemapResponse, o as DocsContentChangeFeed, ot as resolveDocsSitemapConfig, p as isDocsContentChangesRequest, pt as DEFAULT_PROMPT_PROVIDER_TEMPLATES, q as DEFAULT_SITEMAP_MD_ROUTE, r as DOCS_CONTENT_CHANGES_FORMAT, rt as readDocsSitemapManifestFromContentMap, s as DocsContentChangesRequest, st as resolveDocsSitemapPageLastmod, t as digestDocsRetrievalContent, tt as buildDocsSitemapManifest, u as ResolveDocsContentChangesOptions, ut as DEFAULT_OPEN_DOCS_PROMPT, vt as normalizePromptProviderName, w as buildDocsRetrievalDigestProjection, wt as serializeOpenDocsProvider, x as PerformDocsSearchOptions, xt as sanitizePromptText, y as DocsSearchRequestError, yt as parsePromptStringArray, z as resolveDocsRetrievalLastModified } from "./retrieval-digest-CO3wqeMk.mjs";
|
|
7
|
+
import { gn as extractDocsMarkdownPromptBlocks, hn as ExtractedDocsMarkdownPromptBlocks, mn as DocsMarkdownPromptBlock } from "./agent-CHgWJcK_.mjs";
|
|
8
8
|
import { CreateDocsMcpServerOptions, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DOCS_CONFIG_SCHEMA_OPTIONS, DocsMcpAgentContractSummary, DocsMcpCodeExample, DocsMcpConfigSchema, DocsMcpConfigSchemaOption, DocsMcpContextResult, DocsMcpContextSource, DocsMcpDocsList, DocsMcpDocsPageSummary, DocsMcpDocsSection, DocsMcpHttpHandlers, DocsMcpNavigationNode, DocsMcpNavigationTree, DocsMcpPage, DocsMcpPageSectionIndex, DocsMcpPageSectionList, DocsMcpPaginatedDocsList, DocsMcpPagination, DocsMcpRequestContext, DocsMcpResolvedConfig, DocsMcpResolvedCorsConfig, DocsMcpResolvedProtectedResourceConfig, DocsMcpResolvedSecurityConfig, DocsMcpSource, DocsMcpTaskSummary, createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, getDocsConfigSchema, normalizeDocsMcpRoute, resolveDocsMcpConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
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 CreateDocsMcpServerOptions, DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, DEFAULT_OPEN_DOCS_PROMPT, DEFAULT_OPEN_DOCS_PROVIDER_IDS, DEFAULT_OPEN_DOCS_TARGET, DEFAULT_PROMPT_PROVIDER_TEMPLATES, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_CONFIG_SCHEMA_OPTIONS, 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 DocsGoldenAnswerMetrics, type DocsGoldenCitationMetrics, type DocsGoldenEvaluationStatus, type DocsGoldenExampleMetrics, type DocsGoldenExampleResult, type DocsGoldenExpectedExample, type DocsGoldenRetrievalMetrics, type DocsGoldenRetrievedSource, type DocsGoldenSelectionMetrics, type DocsGoldenTask, type DocsGoldenTaskExpectation, type DocsGoldenTaskFilters, type DocsGoldenTaskReport, type DocsGoldenTasksReport, type DocsGoldenUsageMetrics, type DocsMarkdownPromptBlock, type DocsMcpAgentContractSummary, type DocsMcpCodeExample, type DocsMcpConfigSchema, type DocsMcpConfigSchemaOption, type DocsMcpContextResult, type DocsMcpContextSource, type DocsMcpDocsList, type DocsMcpDocsPageSummary, type DocsMcpDocsSection, type DocsMcpHttpHandlers, type DocsMcpNavigationNode, type DocsMcpNavigationTree, type DocsMcpPage, type DocsMcpPageSectionIndex, type DocsMcpPageSectionList, type DocsMcpPaginatedDocsList, type DocsMcpPagination, type DocsMcpRequestContext, type DocsMcpResolvedConfig, type DocsMcpResolvedCorsConfig, type DocsMcpResolvedProtectedResourceConfig, type DocsMcpResolvedSecurityConfig, type DocsMcpSource, type DocsMcpTaskSummary, type DocsObservabilityConfig, type DocsObservabilityEvent, type DocsObservabilityEventInput, type DocsPaginatedSearchResponse, DocsPaginationCursorError, type DocsRetrievalSourceProvenance, type DocsRetrievalSourceScope, type DocsSearchAdapter, type DocsSearchAdapterContext, type DocsSearchAdapterFactory, type DocsSearchAdapterPage, type DocsSearchConfig, type DocsSearchDocument, type DocsSearchFilterField, type DocsSearchFilterInput, type DocsSearchFilters, type DocsSearchQuery, type DocsSearchRequest, DocsSearchRequestError, type DocsSearchResponse, type DocsSearchResult, type DocsSearchSourcePage, type DocsSearchWarning, type DocsSearchWarningCode, type DocsSitemapFormat, type DocsSitemapManifest, type DocsSitemapManifestPage, type DocsSitemapPageInput, type DocsSitemapResolvedConfig, type EnrichDocsSearchDocumentsWithProvenanceOptions, type ExtractedDocsMarkdownPromptBlocks, type McpDocsSearchConfig, type PerformDocsSearchOptions, type PromptAction, type PromptProviderChoice, type ResolveConfiguredAgentSkillsOptions, type ResolvedApiReferenceConfig, type ResolvedDocsAnalyticsConfig, type ResolvedDocsObservabilityConfig, type ResolvedDocsReviewConfig, type RunDocsGoldenTasksOptions, type SerializeOpenDocsProviderOptions, type SerializedOpenDocsProvider, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsRetrievalDigestProjection, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, digestDocsRetrievalContent, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, enrichDocsSearchDocumentsWithProvenance, ensureDocsReviewWorkflow, extractDocsMarkdownPromptBlocks, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, isDocsRetrievalCanonicalUrl, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
|
354
|
+
export { type ApiReferenceFramework, type ApiReferenceOpenApiDiscovery, type ApiReferenceRenderer, type ApiReferenceRoute, type BuildDocsContentSnapshotOptions, type CreateDocsMcpServerOptions, DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, DEFAULT_OPEN_DOCS_PROMPT, DEFAULT_OPEN_DOCS_PROVIDER_IDS, DEFAULT_OPEN_DOCS_TARGET, DEFAULT_PROMPT_PROVIDER_TEMPLATES, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_CONFIG_SCHEMA_OPTIONS, DOCS_CONTENT_CHANGES_FORMAT, DOCS_CONTENT_CHANGES_RESPONSE_VALUE, DOCS_CONTENT_SNAPSHOT_FORMAT, type DocsAgentContentChangesConfig, type DocsAgentEvaluationAnswerInput, type DocsAgentEvaluationAnswerProvider, type DocsAgentEvaluationAnswerRequest, type DocsAgentEvaluationAnswerResult, type DocsAgentEvaluationAnswerRunner, type DocsAgentEvaluationSourceReference, type DocsAgentEvaluationSurface, type DocsAgentEvaluationTaskInput, type DocsAgentGoldenAnswerExpectation, type DocsAgentGoldenExampleVerification, type DocsAgentTraceContext, type DocsAgentTraceEventInput, type DocsAgentTraceEventType, type DocsAgentTraceStatus, type DocsAnalyticsConfig, type DocsAnalyticsEvent, type DocsAnalyticsEventInput, type DocsAskAIFeedbackConfig, type DocsAskAIFeedbackData, type DocsAskAIFeedbackMessage, type DocsAskAIFeedbackValue, type DocsAskAIMcpConfig, type DocsCloudAskAIConfig, type DocsCloudAskAIOptions, type DocsCloudAskAIResponseOptions, type DocsCloudPublicConfig, type DocsCloudRouteHandlerOptions, type DocsCloudRouteHandlers, type DocsCloudRuntimeEnv, type DocsCloudRuntimeValue, type DocsCloudServer, type DocsCloudServerOptions, type DocsCloudTrackEventOptions, type DocsContentChangeDocument, type DocsContentChangeFeed, type DocsContentChangeSnapshotContext, type DocsContentChangeSnapshotLoader, type DocsContentChangeSnapshotSaver, type DocsContentChangedDocument, type DocsContentChangesRequest, DocsContentChangesRequestError, type DocsContentChangesResponse, type DocsContentSnapshot, type DocsContentSnapshotDocument, type DocsGoldenAnswerMetrics, type DocsGoldenCitationMetrics, type DocsGoldenEvaluationStatus, type DocsGoldenExampleMetrics, type DocsGoldenExampleResult, type DocsGoldenExpectedExample, type DocsGoldenRetrievalMetrics, type DocsGoldenRetrievedSource, type DocsGoldenSelectionMetrics, type DocsGoldenTask, type DocsGoldenTaskExpectation, type DocsGoldenTaskFilters, type DocsGoldenTaskReport, type DocsGoldenTasksReport, type DocsGoldenUsageMetrics, type DocsMarkdownPromptBlock, type DocsMcpAgentContractSummary, type DocsMcpCodeExample, type DocsMcpConfigSchema, type DocsMcpConfigSchemaOption, type DocsMcpContextResult, type DocsMcpContextSource, type DocsMcpDocsList, type DocsMcpDocsPageSummary, type DocsMcpDocsSection, type DocsMcpHttpHandlers, type DocsMcpNavigationNode, type DocsMcpNavigationTree, type DocsMcpPage, type DocsMcpPageSectionIndex, type DocsMcpPageSectionList, type DocsMcpPaginatedDocsList, type DocsMcpPagination, type DocsMcpRequestContext, type DocsMcpResolvedConfig, type DocsMcpResolvedCorsConfig, type DocsMcpResolvedProtectedResourceConfig, type DocsMcpResolvedSecurityConfig, type DocsMcpSource, type DocsMcpTaskSummary, type DocsObservabilityConfig, type DocsObservabilityEvent, type DocsObservabilityEventInput, type DocsPaginatedSearchResponse, DocsPaginationCursorError, type DocsResolvedContentChangesConfig, type DocsRetrievalSourceProvenance, type DocsRetrievalSourceScope, type DocsSearchAdapter, type DocsSearchAdapterContext, type DocsSearchAdapterFactory, type DocsSearchAdapterPage, type DocsSearchConfig, type DocsSearchDocument, type DocsSearchFilterField, type DocsSearchFilterInput, type DocsSearchFilters, type DocsSearchQuery, type DocsSearchRequest, DocsSearchRequestError, type DocsSearchResponse, type DocsSearchResult, type DocsSearchSourcePage, type DocsSearchWarning, type DocsSearchWarningCode, type DocsSitemapFormat, type DocsSitemapManifest, type DocsSitemapManifestPage, type DocsSitemapPageInput, type DocsSitemapResolvedConfig, type EnrichDocsSearchDocumentsWithProvenanceOptions, type ExtractedDocsMarkdownPromptBlocks, type McpDocsSearchConfig, type PerformDocsSearchOptions, type PromptAction, type PromptProviderChoice, type ResolveConfiguredAgentSkillsOptions, type ResolveDocsContentChangesOptions, type ResolvedApiReferenceConfig, type ResolvedDocsAnalyticsConfig, type ResolvedDocsObservabilityConfig, type ResolvedDocsReviewConfig, type RunDocsGoldenTasksOptions, type SerializeOpenDocsProviderOptions, type SerializedOpenDocsProvider, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsContentSnapshot, buildDocsRetrievalDigestProjection, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsContentChangeFeed, createDocsContentChangesHttpResponse, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, digestDocsRetrievalContent, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, enrichDocsSearchDocumentsWithProvenance, ensureDocsReviewWorkflow, extractDocsMarkdownPromptBlocks, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, isDocsContentChangesRequest, isDocsRetrievalCanonicalUrl, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsContentChangesConfig, resolveDocsContentChangesRequest, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
package/dist/server.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 { Bt as
|
|
2
|
+
import { $t as buildDocsSearchDocuments, 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, Fn as isDocsRetrievalCanonicalUrl, Ft as renderDocsSitemapXml, Gt as createDocsContentChangesHttpResponse, Ht as DOCS_CONTENT_SNAPSHOT_FORMAT, It as resolveDocsSitemapConfig, Jt as resolveDocsContentChangesRequest, Kt as isDocsContentChangesRequest, Lt as resolveDocsSitemapPageLastmod, Mn as DocsPaginationCursorError, Mt as createDocsSitemapResponse, Nt as readDocsSitemapManifestFromContentMap, Ot as DEFAULT_SITEMAP_MD_ROUTE, Pn as digestDocsRetrievalContent, Pt as renderDocsSitemapMarkdown, Qt as buildDocsRetrievalDigestProjection, Rt as resolveDocsSitemapRequest, Ut as DocsContentChangesRequestError, Vt as DOCS_CONTENT_CHANGES_RESPONSE_VALUE, Wt as createDocsContentChangeFeed, Xt as buildDocsAskAIContext, Yt as DocsSearchRequestError, Zt as buildDocsContentSnapshot, _n as resolveDocsSearchRequest, an as createTypesenseSearchAdapter, cn as inferDocsAskAIPackageHints, dn as performDocsSearchWithMetadata, fn as resolveAskAISearchRequestConfig, gn as resolveDocsSearchFilters, hn as resolveDocsSearchError, in as createSimpleSearchAdapter, jt as buildDocsSitemapManifest, kt as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, ln as normalizeDocsSearchFilters, mn as resolveDocsSearchAudience, nn as createCustomSearchAdapter, on as enrichDocsSearchDocumentsWithProvenance, pn as resolveDocsRetrievalLastModified, qt as resolveDocsContentChangesConfig, rn as createMcpSearchAdapter, sn as formatDocsAskAIPackageHints, tn as createAlgoliaSearchAdapter, un as performDocsSearch, vn as resolveSearchRequestConfig, yn as extractDocsMarkdownPromptBlocks, zt as toDocsSitemapMarkdownUrl } from "./agent-Ba94vwM2.mjs";
|
|
3
3
|
import "./markdown-sections-7OoA7ylx.mjs";
|
|
4
4
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
5
|
-
import
|
|
6
|
-
import { C as resolveApiReferenceOpenApiDiscovery, S as resolveApiReferenceConfig, T as remarkCodeGroup, _ as buildApiReferenceOpenApiDocument, a as DEFAULT_PROMPT_PROVIDER_TEMPLATES, b as buildApiReferenceScalarCss, c as resolvePromptProviderChoices, d as serializeDocsIconRegistry, f as serializeOpenDocsProvider, g as buildApiReferenceHtmlDocumentAsync, h as buildApiReferenceHtmlDocument, i as DEFAULT_OPEN_DOCS_TARGET, l as sanitizePromptText, m as DEFAULT_API_REFERENCE_OPENAPI_ROUTE, n as DEFAULT_OPEN_DOCS_PROMPT, o as normalizePromptProviderName, p as serializeOpenDocsProviders, r as DEFAULT_OPEN_DOCS_PROVIDER_IDS, s as parsePromptStringArray, t as readDocsSitemapManifest, u as serializeDocsIcon, v as buildApiReferenceOpenApiDocumentAsync, w as resolveApiReferenceRenderer, x as isApiReferenceOpenApiRequest, y as buildApiReferencePageTitle } from "./sitemap-server-
|
|
7
|
-
import { a as buildDocsReviewWorkflowPathFilters, c as resolveDocsReviewConfig, i as buildDocsReviewWorkflow, n as DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, o as ensureDocsReviewWorkflow, r as DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-
|
|
5
|
+
import "./agent-provenance-D8UBpnMc.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-Dgxs9V6S.mjs";
|
|
7
|
+
import { a as buildDocsReviewWorkflowPathFilters, c as resolveDocsReviewConfig, i as buildDocsReviewWorkflow, n as DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, o as ensureDocsReviewWorkflow, r as DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, s as readDocsReviewConfigFromSource, t as runDocsGoldenTasks } from "./agent-evals-C8dkgJMN.mjs";
|
|
8
8
|
import { DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DOCS_CONFIG_SCHEMA_OPTIONS, createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, getDocsConfigSchema, normalizeDocsMcpRoute, resolveDocsMcpConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
9
9
|
import { n as isDocsCloudAskAIProvider, t as createDocsCloudAskAIResponse } from "./cloud-ask-ai-sbpjOR2K.mjs";
|
|
10
10
|
import { createDocsCloudRouteHandler, createDocsCloudServer } from "./docs-cloud-server.mjs";
|
|
@@ -12,4 +12,4 @@ import "./code-blocks-DnNVNK2M.mjs";
|
|
|
12
12
|
import { n as resolveConfiguredAgentSkillsSync, t as resolveConfiguredAgentSkills } from "./agent-skills-server-B2EXn2QD.mjs";
|
|
13
13
|
import { renderDocsAgentSkillsBundle } from "./agent-skills-vite.mjs";
|
|
14
14
|
|
|
15
|
-
export { DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, DEFAULT_OPEN_DOCS_PROMPT, DEFAULT_OPEN_DOCS_PROVIDER_IDS, DEFAULT_OPEN_DOCS_TARGET, DEFAULT_PROMPT_PROVIDER_TEMPLATES, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_CONFIG_SCHEMA_OPTIONS, DocsPaginationCursorError, DocsSearchRequestError, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsRetrievalDigestProjection, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, digestDocsRetrievalContent, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, enrichDocsSearchDocumentsWithProvenance, ensureDocsReviewWorkflow, extractDocsMarkdownPromptBlocks, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, isDocsRetrievalCanonicalUrl, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
|
15
|
+
export { DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_DOCS_MCP_CORS_ALLOWED_HEADERS, DEFAULT_DOCS_MCP_CORS_EXPOSED_HEADERS, DEFAULT_DOCS_MCP_CORS_MAX_AGE_SECONDS, DEFAULT_DOCS_MCP_MAX_BODY_BYTES, DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD, DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, DEFAULT_OPEN_DOCS_PROMPT, DEFAULT_OPEN_DOCS_PROVIDER_IDS, DEFAULT_OPEN_DOCS_TARGET, DEFAULT_PROMPT_PROVIDER_TEMPLATES, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, DOCS_CONFIG_SCHEMA_OPTIONS, DOCS_CONTENT_CHANGES_FORMAT, DOCS_CONTENT_CHANGES_RESPONSE_VALUE, DOCS_CONTENT_SNAPSHOT_FORMAT, DocsContentChangesRequestError, DocsPaginationCursorError, DocsSearchRequestError, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsContentSnapshot, buildDocsRetrievalDigestProjection, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsContentChangeFeed, createDocsContentChangesHttpResponse, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, digestDocsRetrievalContent, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, enrichDocsSearchDocumentsWithProvenance, ensureDocsReviewWorkflow, extractDocsMarkdownPromptBlocks, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, isDocsContentChangesRequest, isDocsRetrievalCanonicalUrl, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsContentChangesConfig, resolveDocsContentChangesRequest, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsRetrievalLastModified, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ft as renderDocsSitemapXml, It as resolveDocsSitemapConfig, Pt as renderDocsSitemapMarkdown, jt as buildDocsSitemapManifest } from "./agent-Ba94vwM2.mjs";
|
|
2
2
|
import "./markdown-sections-7OoA7ylx.mjs";
|
|
3
3
|
import "./standards-discovery-BKlEnK_H.mjs";
|
|
4
|
-
import "./
|
|
5
|
-
import "./sitemap-server-
|
|
6
|
-
import "./agent-evals-
|
|
4
|
+
import "./agent-provenance-D8UBpnMc.mjs";
|
|
5
|
+
import "./sitemap-server-Dgxs9V6S.mjs";
|
|
6
|
+
import "./agent-evals-C8dkgJMN.mjs";
|
|
7
7
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
8
8
|
import "./code-blocks-DnNVNK2M.mjs";
|
|
9
9
|
import "./agent-skills-server-B2EXn2QD.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { It as resolveDocsSitemapConfig } from "./agent-Ba94vwM2.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-CpLnwHak.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/standards-discovery.d.ts
|
|
4
4
|
declare const DEFAULT_API_CATALOG_ROUTE = "/.well-known/api-catalog";
|