@farming-labs/docs 0.2.74 → 0.2.77

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.
Files changed (38) hide show
  1. package/dist/{agent-D0LEY2Vy.mjs → agent-D4hNGatV.mjs} +2 -2
  2. package/dist/agent-DRKj42ht.d.mts +938 -0
  3. package/dist/{agent-BJ0KXN-A.mjs → agent-SRIJ-oF8.mjs} +28 -6
  4. package/dist/{agent-evals-LIScgQVm.mjs → agent-evals-DmFoKy_y.mjs} +1 -1
  5. package/dist/{agent-export-B92pNe6g.mjs → agent-export-CM-p9_YD.mjs} +7 -7
  6. package/dist/agent-skills-bundle.d.mts +1 -1
  7. package/dist/{agent-skills-server-noFn1l_p.mjs → agent-skills-server-B2EXn2QD.mjs} +1 -1
  8. package/dist/{agent-skills-server-BqvIGQb1.d.mts → agent-skills-server-CJ4D0G9P.d.mts} +2 -2
  9. package/dist/agent-skills-vite.d.mts +3 -3
  10. package/dist/agent-skills-vite.mjs +2 -2
  11. package/dist/{agents-C228QGbp.mjs → agents-BeLDNCnE.mjs} +7 -16
  12. package/dist/cli/index.mjs +15 -15
  13. package/dist/client/react.d.mts +1 -1
  14. package/dist/{cloud-ask-ai-6X9pVjIY.d.mts → cloud-ask-ai-BCgHPxew.d.mts} +1 -1
  15. package/dist/{dev-Cc1cFFj-.mjs → dev-kjaxOOla.mjs} +8 -2
  16. package/dist/docs-cloud-server.d.mts +2 -2
  17. package/dist/{doctor-CgrUZ3tY.mjs → doctor-DhMVKHjp.mjs} +57 -24
  18. package/dist/{golden-evaluations-DTEPZeb0.mjs → golden-evaluations-VzE6juQl.mjs} +7 -3
  19. package/dist/index.d.mts +5 -876
  20. package/dist/index.mjs +6 -6
  21. package/dist/{mcp-YD37HlPY.mjs → mcp-CZkQJXtA.mjs} +7 -6
  22. package/dist/mcp.d.mts +30 -5
  23. package/dist/mcp.mjs +594 -69
  24. package/dist/{prompt-references-BIS1eXt4.mjs → prompt-references-B6L3AD98.mjs} +3 -3
  25. package/dist/{retrieval-digest-9Kp3uSaZ.d.mts → retrieval-digest-rponR4jM.d.mts} +24 -50
  26. package/dist/{review-Dbzkdl6K.mjs → review-nxoV8jIm.mjs} +5 -5
  27. package/dist/{robots-RbgmSvPH.mjs → robots-CgH6Stqn.mjs} +2 -2
  28. package/dist/{robots-DUO0r4UI.mjs → robots-CiQT8mX2.mjs} +3 -3
  29. package/dist/{search-hcqaEZVN.mjs → search-BTUIkhnT.mjs} +6 -6
  30. package/dist/{search-DIyIl-tE.mjs → search-Da2AKaFJ.mjs} +624 -122
  31. package/dist/server.d.mts +9 -6
  32. package/dist/server.mjs +7 -7
  33. package/dist/{sitemap-jhkS_jYx.mjs → sitemap-e0_GeCWJ.mjs} +6 -6
  34. package/dist/{sitemap-server-BfyBM7_V.mjs → sitemap-server-DHaxyPAd.mjs} +12 -3
  35. package/dist/{standards-discovery-BwL5ffGx.mjs → standards-discovery-BKlEnK_H.mjs} +32 -4
  36. package/dist/{standards-discovery-CdrOE-05.d.mts → standards-discovery-BbslY4id.d.mts} +34 -7
  37. package/dist/{types-clg5J1R4.d.mts → types-B-5Kzmkn.d.mts} +73 -1
  38. package/package.json +1 -1
@@ -0,0 +1,938 @@
1
+ import { Bn as LlmsTxtMaxCharsConfig, Cn as DocsSearchSourcePage, En as DocsSitemapConfig, Fn as FeedbackConfig, G as DocsAgentFeedbackData, Hn as LlmsTxtSectionConfig, Mt as DocsI18nConfig, Rt as DocsMcpConfig, Vn as LlmsTxtMaxCharsMode, an as DocsRobotsConfig, fn as DocsSearchConfig, kt as DocsConfig, nr as PageAgentFrontmatter, ur as ResolvedDocsRelatedLink, zn as LlmsTxtConfig } from "./types-B-5Kzmkn.mjs";
2
+ import { O as DocsA2AAgentCardOptions, R as DocsDiscoveryApiRouteOptions, z as DocsPublishedAgentSkill } from "./standards-discovery-BbslY4id.mjs";
3
+ import { DocsMcpPage, DocsMcpResolvedConfig } from "./mcp.mjs";
4
+
5
+ //#region src/i18n.d.ts
6
+ interface ResolvedDocsI18n {
7
+ locales: string[];
8
+ defaultLocale: string;
9
+ }
10
+ interface DocsPathMatch {
11
+ /** Slug path relative to the docs root (no leading slash). */
12
+ slug: string;
13
+ /** Entry path used for URLs (no locale segment). */
14
+ entryPath: string;
15
+ }
16
+ declare function resolveDocsI18n(config?: DocsI18nConfig | null): ResolvedDocsI18n | null;
17
+ declare function resolveDocsLocale(searchParams: URLSearchParams, i18n?: ResolvedDocsI18n | null): string | undefined;
18
+ declare function resolveDocsPath(pathname: string, entry: string): DocsPathMatch;
19
+ //#endregion
20
+ //#region src/mcp-auth.d.ts
21
+ declare const DEFAULT_MCP_ROUTE = "/api/docs/mcp";
22
+ declare const DEFAULT_MCP_PUBLIC_ROUTE = "/mcp";
23
+ declare const DEFAULT_MCP_WELL_KNOWN_ROUTE = "/.well-known/mcp";
24
+ declare const DEFAULT_MCP_PROTECTED_RESOURCE_METADATA_ROUTE = "/.well-known/oauth-protected-resource";
25
+ declare function getDocsMcpResourcePaths(route?: string): string[];
26
+ declare function buildDocsMcpProtectedResourceMetadataRoute(resourcePath: string): string;
27
+ declare function getDocsMcpProtectedResourceMetadataRoutes(route?: string): string[];
28
+ declare function hasDocsMcpProtectedResourceConfig(mcp?: boolean | DocsMcpConfig): boolean;
29
+ declare function isDocsMcpRequest(url: URL, mcp?: boolean | DocsMcpConfig): boolean;
30
+ //#endregion
31
+ //#region src/audience.d.ts
32
+ /** The two content projections emitted by the docs framework. */
33
+ type DocsContentAudience = "human" | "agent";
34
+ /** Resolve whether content with an optional audience restriction is visible. */
35
+ declare function resolveDocsAudienceExposure(only: unknown, audience: DocsContentAudience): boolean;
36
+ interface DocsMarkdownPromptBlock {
37
+ /** Raw JSX attributes between the Prompt name and opening bracket. */
38
+ attributes: string;
39
+ /** Literal source between the Prompt tags, with enclosing Markdown container prefixes removed. */
40
+ children: string;
41
+ /** Collision-safe placeholder carried through document-level rendering. */
42
+ token: string;
43
+ }
44
+ interface ExtractedDocsMarkdownPromptBlocks {
45
+ blocks: DocsMarkdownPromptBlock[];
46
+ markdown: string;
47
+ }
48
+ interface DocsAudienceMdxIssue {
49
+ code: "missing-only" | "invalid-only" | "dynamic-only" | "ignored-agent-only" | "ignored-human-only";
50
+ index: number;
51
+ message: string;
52
+ }
53
+ /**
54
+ * Extract live MDX Prompt blocks while leaving Markdown literals untouched.
55
+ *
56
+ * Prompt bodies are copyable source, so callers can safely run audience,
57
+ * reference-definition, and heading passes over `markdown`, then restore each
58
+ * block from its token. Fences (including container fences), inline code, links,
59
+ * comments, raw elements, and other literal contexts are never extracted.
60
+ */
61
+ declare function extractDocsMarkdownPromptBlocks(content: string): ExtractedDocsMarkdownPromptBlocks;
62
+ /** Find audience declarations that cannot be projected consistently at build time. */
63
+ declare function findDocsAudienceMdxIssues(content: string): DocsAudienceMdxIssue[];
64
+ /**
65
+ * Resolve MDX into its human or agent projection.
66
+ *
67
+ * `<Agent>` is shorthand for `<Audience only="agent">`, while `<Human>` is
68
+ * shorthand for `<Audience only="human">`. Unknown `Audience.only` values are
69
+ * treated as shared content so an authoring typo never silently deletes content.
70
+ * These primitives shape content for each surface; they are not an access-control boundary.
71
+ */
72
+ declare function resolveDocsAudienceMdxContent(content: string, audience: DocsContentAudience): string;
73
+ /** Backwards-compatible name retained for existing integrations. */
74
+ declare function resolveDocsAgentMdxContent(content: string, audience: DocsContentAudience): string;
75
+ //#endregion
76
+ //#region src/agent.d.ts
77
+ declare const DEFAULT_DOCS_API_ROUTE = "/api/docs";
78
+ declare const DEFAULT_DOCS_CONFIG_FORMAT = "docs-config-map.v1";
79
+ declare const DEFAULT_DOCS_CONFIG_ROUTE = "/api/docs?format=config";
80
+ declare const DEFAULT_DOCS_DIAGNOSTICS_FORMAT = "docs-diagnostics.v1";
81
+ declare const DEFAULT_DOCS_DIAGNOSTICS_ROUTE = "/api/docs?format=diagnostics";
82
+ declare const DEFAULT_OPENAPI_SCHEMA_ROUTE = "/api/docs?format=openapi";
83
+ declare const DEFAULT_AGENT_SPEC_ROUTE = "/api/docs/agent/spec";
84
+ declare const DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE = "/.well-known/agent";
85
+ declare const DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE = "/.well-known/agent.json";
86
+ declare const DEFAULT_LLMS_TXT_ROUTE = "/llms.txt";
87
+ declare const DEFAULT_LLMS_FULL_TXT_ROUTE = "/llms-full.txt";
88
+ declare const DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE = "/.well-known/llms.txt";
89
+ declare const DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE = "/.well-known/llms-full.txt";
90
+ declare const DEFAULT_LLMS_TXT_MAX_CHARS = 50000;
91
+ declare const DEFAULT_SKILL_MD_ROUTE = "/skill.md";
92
+ declare const DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE = "/.well-known/skill.md";
93
+ declare const DEFAULT_AGENTS_MD_ROUTE = "/AGENTS.md";
94
+ declare const DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE = "/.well-known/AGENTS.md";
95
+ declare const DEFAULT_AGENT_MD_ROUTE = "/AGENT.md";
96
+ declare const DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE = "/.well-known/AGENT.md";
97
+ declare const DEFAULT_AGENT_FEEDBACK_ROUTE = "/api/docs/agent/feedback";
98
+ declare const DEFAULT_AGENT_FEEDBACK_PAYLOAD_SCHEMA: Record<string, unknown>;
99
+ declare const DOCS_MARKDOWN_SIGNATURE_AGENT_HEADER = "Signature-Agent";
100
+ declare const DOCS_MARKDOWN_SECTION_INDEX_FORMAT = "docs-markdown-sections.v2";
101
+ declare const DOCS_AI_AGENT_USER_AGENT_HEADER_PATTERN: string;
102
+ declare const DOCS_TRADITIONAL_BOT_USER_AGENT_HEADER_PATTERN: string;
103
+ declare const DOCS_BOT_LIKE_USER_AGENT_HEADER_PATTERN: string;
104
+ interface DocsMcpEndpointCandidate {
105
+ baseUrl: string;
106
+ route: string;
107
+ url: string;
108
+ label: string;
109
+ }
110
+ interface DocsMcpEndpointCandidateOptions {
111
+ includeOriginFallback?: boolean;
112
+ includeRootDomainFallback?: boolean;
113
+ includeMcpSubdomainFallback?: boolean;
114
+ }
115
+ interface DocsAgentFeedbackResolvedConfig {
116
+ enabled: boolean;
117
+ route: string;
118
+ schemaRoute: string;
119
+ payloadSchema: Record<string, unknown>;
120
+ schema: Record<string, unknown>;
121
+ onFeedback?: (data: DocsAgentFeedbackData) => void | Promise<void>;
122
+ }
123
+ interface DocsAgentFeedbackRequest {
124
+ kind: "schema" | "submit";
125
+ }
126
+ interface DocsAgentFeedbackDiscoveryConfig {
127
+ enabled?: boolean;
128
+ route?: string;
129
+ schemaRoute?: string;
130
+ }
131
+ interface DocsLlmsDiscoveryConfig extends DocsDiscoveryApiRouteOptions {
132
+ enabled?: boolean;
133
+ /** Whether this deployment actually serves the RFC 9727 API catalog. Defaults to true. */
134
+ apiCatalog?: boolean;
135
+ baseUrl?: string;
136
+ siteTitle?: string;
137
+ siteDescription?: string;
138
+ maxChars?: LlmsTxtMaxCharsConfig;
139
+ sections?: LlmsTxtSectionConfig[];
140
+ openapi?: boolean | DocsOpenApiDiscoveryConfig;
141
+ }
142
+ interface DocsOpenApiDiscoveryConfig {
143
+ enabled?: boolean;
144
+ url?: string;
145
+ /** Whether `url` came from the framework default or explicit configuration. */
146
+ urlSource?: "default" | "configured";
147
+ source?: "generated" | "configured";
148
+ specUrl?: string;
149
+ apiReferencePath?: string;
150
+ /** Product API targets described by this OpenAPI document. */
151
+ catalogTargets?: readonly string[];
152
+ }
153
+ interface DocsOpenApiResolvedDiscoveryConfig {
154
+ enabled: boolean;
155
+ url?: string;
156
+ /** Whether `url` came from the framework default or explicit configuration. */
157
+ urlSource?: "default" | "configured";
158
+ source?: "generated" | "configured";
159
+ specUrl?: string;
160
+ apiReferencePath?: string;
161
+ /** Product API targets described by this OpenAPI document. */
162
+ catalogTargets?: readonly string[];
163
+ }
164
+ type DocsConfigMapJsonPrimitive = string | number | boolean | null;
165
+ type DocsConfigMapJsonValue = DocsConfigMapJsonPrimitive | DocsConfigMapJsonValue[] | {
166
+ [key: string]: DocsConfigMapJsonValue;
167
+ };
168
+ interface DocsConfigMapPointer {
169
+ /** Dot-path form for humans and TypeScript users, e.g. `mcp.tools.readPage`. */
170
+ path: string;
171
+ /** Coarse value kind at this pointer. */
172
+ kind: string;
173
+ }
174
+ interface DocsConfigMap {
175
+ schemaVersion: 1;
176
+ format: typeof DEFAULT_DOCS_CONFIG_FORMAT;
177
+ source: {
178
+ /** Best-effort source label; adapters only receive the runtime config object. */file: string; /** Best-effort language hint based on serializing the runtime config object. */
179
+ language: "ts" | "tsx";
180
+ };
181
+ serialization: {
182
+ mode: "json-safe";
183
+ redacted: string;
184
+ nonSerializable: "described";
185
+ };
186
+ values: {
187
+ [key: string]: DocsConfigMapJsonValue;
188
+ };
189
+ /** RFC 6901 JSON Pointer index for mapping response values back to docs.config paths. */
190
+ pointers: Record<string, DocsConfigMapPointer>;
191
+ }
192
+ type DocsDiagnosticsStatus = "enabled" | "disabled";
193
+ type DocsDiagnosticsIssueSeverity = "warning" | "error";
194
+ interface DocsDiagnosticsIssue {
195
+ severity: DocsDiagnosticsIssueSeverity;
196
+ code: string;
197
+ path?: string;
198
+ message: string;
199
+ }
200
+ interface DocsDiagnosticsFeature {
201
+ status: DocsDiagnosticsStatus;
202
+ reason?: string;
203
+ route?: string | null;
204
+ routes?: Record<string, string | null>;
205
+ agentEndpoint?: string | null;
206
+ structuredAgentEndpoint?: string | null;
207
+ audienceParam?: string;
208
+ defaultAudience?: "human" | "agent";
209
+ supportedAudiences?: Array<"human" | "agent">;
210
+ filterParams?: {
211
+ framework: "framework";
212
+ version: "version";
213
+ package: "package";
214
+ tags: "tags";
215
+ };
216
+ responseFormat?: "docs-search.v1";
217
+ warningsField?: "warnings";
218
+ /** Opaque continuation token accepted by structured search. */
219
+ cursorParam?: "cursor";
220
+ /** Optional continuation token returned when another result page is available. */
221
+ nextCursorField?: "nextCursor";
222
+ /** Boolean structured-response field indicating whether another page is available. */
223
+ hasMoreField?: "hasMore";
224
+ /** Structured-response field containing the total matches across all pages. */
225
+ totalField?: "total";
226
+ provider?: string;
227
+ mode?: string;
228
+ transport?: "GET" | "POST" | "GET/HEAD" | "GET/POST";
229
+ tools?: Record<string, boolean>;
230
+ human?: boolean;
231
+ agent?: boolean;
232
+ }
233
+ interface DocsDiagnostics {
234
+ schemaVersion: 1;
235
+ format: typeof DEFAULT_DOCS_DIAGNOSTICS_FORMAT;
236
+ ok: boolean;
237
+ adapter: string | null;
238
+ routes: {
239
+ docs: string;
240
+ api: string;
241
+ config: string;
242
+ diagnostics: string;
243
+ agentSpec: string;
244
+ apiCatalog: string | null;
245
+ agentSkillsIndex: string;
246
+ agentSkillsArtifact: string;
247
+ agents: string;
248
+ skill: string;
249
+ search: string | null;
250
+ agentSearch: string | null;
251
+ askAi: string | null;
252
+ mcp: string | null;
253
+ llmsTxt: string | null;
254
+ llmsFullTxt: string | null;
255
+ sitemapXml: string | null;
256
+ sitemapMarkdown: string | null;
257
+ robots: string | null;
258
+ openapi: string | null;
259
+ apiReference: string | null;
260
+ };
261
+ features: {
262
+ staticExport: DocsDiagnosticsFeature;
263
+ config: DocsDiagnosticsFeature;
264
+ diagnostics: DocsDiagnosticsFeature;
265
+ apiCatalog: DocsDiagnosticsFeature;
266
+ search: DocsDiagnosticsFeature;
267
+ ai: DocsDiagnosticsFeature;
268
+ mcp: DocsDiagnosticsFeature;
269
+ feedback: DocsDiagnosticsFeature;
270
+ llmsTxt: DocsDiagnosticsFeature;
271
+ sitemap: DocsDiagnosticsFeature;
272
+ robots: DocsDiagnosticsFeature;
273
+ apiReference: DocsDiagnosticsFeature;
274
+ agents: DocsDiagnosticsFeature;
275
+ skills: DocsDiagnosticsFeature;
276
+ locales: DocsDiagnosticsFeature;
277
+ };
278
+ warnings: DocsDiagnosticsIssue[];
279
+ errors: DocsDiagnosticsIssue[];
280
+ }
281
+ interface DocsDiagnosticsOptions extends DocsDiscoveryApiRouteOptions {
282
+ adapter?: string;
283
+ /** Effective RFC 9727 catalog availability after runtime overrides are applied. */
284
+ apiCatalog?: boolean;
285
+ entry?: string;
286
+ i18n?: ResolvedDocsI18n | null;
287
+ mcp?: DocsMcpResolvedConfig;
288
+ feedback?: DocsAgentFeedbackDiscoveryConfig;
289
+ openapi?: boolean | DocsOpenApiDiscoveryConfig;
290
+ }
291
+ interface DocsLlmsTxtResolvedMaxChars {
292
+ mode: LlmsTxtMaxCharsMode;
293
+ chars: number;
294
+ }
295
+ interface DocsLlmsTxtResolvedSection {
296
+ title: string;
297
+ description?: string;
298
+ match: string[];
299
+ route: string;
300
+ fullRoute: string;
301
+ maxChars: DocsLlmsTxtResolvedMaxChars;
302
+ }
303
+ interface DocsLlmsTxtRequest {
304
+ format: "llms" | "llms-full";
305
+ section?: DocsLlmsTxtResolvedSection;
306
+ }
307
+ interface DocsLlmsTxtPageInput {
308
+ url: string;
309
+ /** Override the Markdown link emitted in llms.txt. */
310
+ markdownUrl?: string;
311
+ title: string;
312
+ description?: string;
313
+ content: string;
314
+ rawContent?: string;
315
+ agentContent?: string;
316
+ agentRawContent?: string;
317
+ agentFallbackContent?: string;
318
+ agentFallbackRawContent?: string;
319
+ }
320
+ interface DocsLlmsTxtGeneratedSection extends DocsLlmsTxtResolvedSection {
321
+ llmsTxt: string;
322
+ llmsFullTxt: string;
323
+ }
324
+ interface DocsLlmsTxtGeneratedContent {
325
+ llmsTxt: string;
326
+ llmsFullTxt: string;
327
+ maxChars: DocsLlmsTxtResolvedMaxChars;
328
+ sections: DocsLlmsTxtGeneratedSection[];
329
+ }
330
+ interface DocsLlmsTxtSelectedContent {
331
+ content: string;
332
+ label: string;
333
+ maxChars: DocsLlmsTxtResolvedMaxChars;
334
+ }
335
+ interface DocsLlmsTxtMaxCharsIssue {
336
+ mode: Exclude<LlmsTxtMaxCharsMode, "off">;
337
+ chars: number;
338
+ actual: number;
339
+ label: string;
340
+ message: string;
341
+ }
342
+ interface DocsAgentDiscoverySpecOptions extends DocsDiscoveryApiRouteOptions {
343
+ origin: string;
344
+ entry?: string;
345
+ /** Public rendered docs path when it differs from `entry`. */
346
+ docsPath?: string;
347
+ /** Whether this deployment actually serves the RFC 9727 API catalog. Defaults to true. */
348
+ apiCatalog?: boolean;
349
+ i18n?: ResolvedDocsI18n | null;
350
+ search?: boolean | DocsSearchConfig;
351
+ mcp: DocsMcpResolvedConfig;
352
+ feedback?: DocsAgentFeedbackDiscoveryConfig;
353
+ llms?: DocsLlmsDiscoveryConfig;
354
+ sitemap?: boolean | DocsSitemapConfig;
355
+ robots?: boolean | DocsRobotsConfig;
356
+ openapi?: boolean | DocsOpenApiDiscoveryConfig;
357
+ markdown?: {
358
+ acceptHeader?: boolean;
359
+ signatureAgentHeader?: boolean; /** Whether runtime Markdown routes support `?sections` metadata discovery. Defaults to true. */
360
+ sectionDiscovery?: boolean;
361
+ };
362
+ /** Additional validated project skills to cross-list in custom discovery. */
363
+ publishedSkills?: readonly DocsPublishedAgentSkill[];
364
+ /** Explicit metadata for a real A2A service; omitted sites do not publish an Agent Card. */
365
+ agentCard?: DocsA2AAgentCardOptions;
366
+ }
367
+ interface DocsSkillDocumentOptions extends DocsDiscoveryApiRouteOptions {
368
+ origin: string;
369
+ entry?: string;
370
+ /** Public rendered docs path when it differs from `entry`. */
371
+ docsPath?: string;
372
+ /** Whether this deployment actually serves the RFC 9727 API catalog. Defaults to true. */
373
+ apiCatalog?: boolean;
374
+ search?: boolean | DocsSearchConfig;
375
+ mcp: DocsMcpResolvedConfig;
376
+ feedback?: DocsAgentFeedbackDiscoveryConfig;
377
+ llms?: DocsLlmsDiscoveryConfig;
378
+ sitemap?: boolean | DocsSitemapConfig;
379
+ robots?: boolean | DocsRobotsConfig;
380
+ openapi?: boolean | DocsOpenApiDiscoveryConfig;
381
+ markdown?: {
382
+ acceptHeader?: boolean;
383
+ signatureAgentHeader?: boolean; /** Whether runtime Markdown routes support `?sections` metadata discovery. Defaults to true. */
384
+ sectionDiscovery?: boolean;
385
+ };
386
+ }
387
+ interface DocsAgentsDocumentOptions extends DocsSkillDocumentOptions {}
388
+ interface DocsStandardsDiscoveryResponseOptions extends DocsAgentDiscoverySpecOptions {
389
+ request: Request;
390
+ preferredSkillDocument?: string | null;
391
+ fallbackSkillDocument: string;
392
+ }
393
+ interface DocsAgentContractMcpTools {
394
+ list?: "list_tasks";
395
+ read?: "read_task";
396
+ }
397
+ interface DocsMarkdownPage {
398
+ slug?: string;
399
+ url: string;
400
+ title: string;
401
+ description?: string;
402
+ /** Override the public Markdown representation URL when it differs from `${url}.md`. */
403
+ markdownUrl?: string;
404
+ lastModified?: string;
405
+ lastmod?: string;
406
+ related?: ResolvedDocsRelatedLink[];
407
+ agent?: PageAgentFrontmatter;
408
+ content: string;
409
+ rawContent?: string;
410
+ agentContent?: string;
411
+ agentRawContent?: string;
412
+ agentFallbackContent?: string;
413
+ agentFallbackRawContent?: string;
414
+ }
415
+ interface DocsMarkdownDocumentOptions {
416
+ llms?: boolean | DocsLlmsDiscoveryConfig | LlmsTxtConfig;
417
+ origin?: string;
418
+ sitemap?: boolean | DocsSitemapConfig;
419
+ }
420
+ interface DocsMarkdownSection {
421
+ id: string;
422
+ heading: string;
423
+ level: number;
424
+ content: string;
425
+ startLine: number;
426
+ endLine: number;
427
+ }
428
+ interface DocsMarkdownSectionMetadata {
429
+ id: string;
430
+ heading: string;
431
+ level: number;
432
+ parentId?: string;
433
+ startLine: number;
434
+ endLine: number;
435
+ estimatedTokens: number;
436
+ utf8Bytes: number;
437
+ canonicalUrl: string;
438
+ markdownUrl: string;
439
+ }
440
+ interface DocsMarkdownSectionIndex {
441
+ schemaVersion: 2;
442
+ format: typeof DOCS_MARKDOWN_SECTION_INDEX_FORMAT;
443
+ canonicalUrl: string;
444
+ markdownUrl: string;
445
+ sectionIndexUrl: string;
446
+ lineNumbering: "body";
447
+ sectionCount: number;
448
+ estimatedTokens: number;
449
+ utf8Bytes: number;
450
+ fetchBudget?: {
451
+ tokenBudget?: number;
452
+ byteBudget?: number;
453
+ };
454
+ sections: DocsMarkdownSectionMetadata[];
455
+ }
456
+ interface DocsMarkdownSectionIndexOptions {
457
+ canonicalUrl: string;
458
+ markdownUrl: string;
459
+ sectionIndexUrl?: string;
460
+ tokenBudget?: number | null;
461
+ byteBudget?: number | null;
462
+ }
463
+ interface DocsMarkdownSectionRequest {
464
+ section?: string | null;
465
+ tokenBudget?: number | null;
466
+ byteBudget?: number | null;
467
+ }
468
+ interface DocsMarkdownSectionResult {
469
+ found: boolean;
470
+ requestedSection?: string;
471
+ section?: DocsMarkdownSection;
472
+ document: string;
473
+ truncated: boolean;
474
+ tokenBudget?: number;
475
+ byteBudget?: number;
476
+ estimatedTokens: number;
477
+ utf8Bytes: number;
478
+ availableSections: DocsMarkdownSection[];
479
+ }
480
+ interface DocsMarkdownNotFoundOptions extends DocsDiscoveryApiRouteOptions {
481
+ entry?: string;
482
+ requestedPath: string;
483
+ origin?: string;
484
+ pages?: DocsMarkdownPage[];
485
+ sitemap?: boolean | DocsSitemapConfig;
486
+ }
487
+ interface DocsMarkdownRecoveryMatch {
488
+ title: string;
489
+ url: string;
490
+ markdownUrl: string;
491
+ description?: string;
492
+ confidence: number;
493
+ }
494
+ interface DocsMarkdownRecoveryResult {
495
+ matches: DocsMarkdownRecoveryMatch[];
496
+ redirect?: DocsMarkdownRecoveryMatch;
497
+ }
498
+ interface DocsMarkdownCanonicalUrlOptions {
499
+ origin: string;
500
+ entry?: string;
501
+ requestedPath: string;
502
+ locale?: string | null;
503
+ }
504
+ interface DocsMarkdownResponseOptions extends DocsMarkdownNotFoundOptions {
505
+ request: Request;
506
+ document: string | null;
507
+ /** Override the human-readable canonical URL, for example when docsPath differs from entry. */
508
+ canonicalUrl?: string;
509
+ /** Override the selected Markdown representation URL. */
510
+ contentLocation?: string;
511
+ locale?: string | null;
512
+ /** Exact source modification timestamp. Date-only values are intentionally ignored. */
513
+ lastModified?: string | Date | null;
514
+ cacheControl?: string;
515
+ }
516
+ declare function normalizeDocsPathSegment(value: string): string;
517
+ declare function normalizeDocsUrlPath(value: string): string;
518
+ declare function isDocsConfigRequest(url: URL): boolean;
519
+ declare function isDocsDiagnosticsRequest(url: URL): boolean;
520
+ /** Prefer an explicitly configured API route; otherwise infer a query-form route from the request. */
521
+ declare function resolveDocsRequestApiRoute(url: URL, configuredApiRoute?: string): string;
522
+ declare function buildDocsConfigMap(config: DocsConfig | Record<string, unknown>, options?: {
523
+ file?: string;
524
+ }): DocsConfigMap;
525
+ declare function buildDocsDiagnostics(config: DocsConfig | Record<string, unknown>, options?: DocsDiagnosticsOptions): DocsDiagnostics;
526
+ declare function buildDocsAgentFeedbackSchema(payloadSchema: Record<string, unknown>): Record<string, unknown>;
527
+ declare function resolveDocsAgentFeedbackConfig(feedback?: boolean | FeedbackConfig): DocsAgentFeedbackResolvedConfig;
528
+ declare function resolveDocsAgentFeedbackRequest(url: URL, feedback: DocsAgentFeedbackResolvedConfig): DocsAgentFeedbackRequest | null;
529
+ declare function parseDocsAgentFeedbackData(request: Request): Promise<{
530
+ ok: true;
531
+ data: DocsAgentFeedbackData;
532
+ } | {
533
+ ok: false;
534
+ response: Response;
535
+ }>;
536
+ declare function validateDocsAgentFeedbackPayload(value: unknown, schema: Record<string, unknown>, valuePath?: string): string | undefined;
537
+ declare function toDocsMarkdownUrl(url: string, options?: {
538
+ locale?: string;
539
+ }): string;
540
+ declare function resolveDocsMarkdownCanonicalUrl({
541
+ origin,
542
+ entry,
543
+ requestedPath,
544
+ locale
545
+ }: DocsMarkdownCanonicalUrlOptions): string;
546
+ declare function getDocsMarkdownCanonicalLinkHeader(options: DocsMarkdownCanonicalUrlOptions): string;
547
+ declare function resolveDocsLlmsTxtSections(llms?: boolean | DocsLlmsDiscoveryConfig | LlmsTxtConfig): DocsLlmsTxtResolvedSection[];
548
+ declare function matchesDocsLlmsTxtSection(pageUrl: string, section: DocsLlmsTxtResolvedSection): boolean;
549
+ declare function resolveDocsLlmsTxtRequest(url: URL, llms?: boolean | DocsLlmsDiscoveryConfig | LlmsTxtConfig, basePath?: string, options?: DocsDiscoveryApiRouteOptions): DocsLlmsTxtRequest | null;
550
+ declare function renderDocsLlmsTxt(pages: DocsLlmsTxtPageInput[], options?: DocsLlmsDiscoveryConfig): DocsLlmsTxtGeneratedContent;
551
+ declare function selectDocsLlmsTxtContent(content: DocsLlmsTxtGeneratedContent, request: DocsLlmsTxtRequest): DocsLlmsTxtSelectedContent | null;
552
+ declare function getDocsLlmsTxtMaxCharsIssue(label: string, content: string, maxChars: DocsLlmsTxtResolvedMaxChars): DocsLlmsTxtMaxCharsIssue | null;
553
+ /** Build and serve standards-based discovery without replacing the custom agent manifest. */
554
+ declare function createDocsStandardsDiscoveryResponse({
555
+ request,
556
+ preferredSkillDocument,
557
+ fallbackSkillDocument,
558
+ origin,
559
+ entry,
560
+ docsPath,
561
+ apiCatalog: explicitApiCatalog,
562
+ apiRoute,
563
+ i18n: _i18n,
564
+ search: _search,
565
+ mcp,
566
+ feedback,
567
+ llms,
568
+ sitemap,
569
+ robots,
570
+ openapi,
571
+ markdown: _markdown,
572
+ publishedSkills,
573
+ agentCard
574
+ }: DocsStandardsDiscoveryResponseOptions): Promise<Response | null>;
575
+ declare function isDocsAgentDiscoveryRequest(url: URL, options?: DocsDiscoveryApiRouteOptions): boolean;
576
+ declare function buildDocsMcpEndpointCandidates(baseUrl: string, routes?: readonly string[], options?: DocsMcpEndpointCandidateOptions): DocsMcpEndpointCandidate[];
577
+ declare function isDocsSkillRequest(url: URL, options?: DocsDiscoveryApiRouteOptions): boolean;
578
+ declare function resolveDocsSkillFormat(url: URL): "skill" | null;
579
+ declare function isDocsAgentsRequest(url: URL, options?: DocsDiscoveryApiRouteOptions): boolean;
580
+ declare function resolveDocsAgentsFormat(url: URL): "agents" | null;
581
+ declare function isDocsPublicGetRequest(entry: string, url: URL, request: Request, options?: DocsDiscoveryApiRouteOptions & {
582
+ sitemap?: boolean | DocsSitemapConfig;
583
+ llms?: boolean | DocsLlmsDiscoveryConfig | LlmsTxtConfig;
584
+ robots?: boolean | DocsRobotsConfig;
585
+ }): boolean;
586
+ declare function isDocsLlmsTxtPublicRequest(url: URL, llms?: boolean | DocsLlmsDiscoveryConfig | LlmsTxtConfig, basePath?: string, options?: DocsDiscoveryApiRouteOptions): boolean;
587
+ declare function resolveDocsLlmsTxtFormat(url: URL, basePath?: string, options?: DocsDiscoveryApiRouteOptions): "llms" | "llms-full" | null;
588
+ declare function resolveDocsMarkdownRequest(entry: string, url: URL, request: Request, options?: DocsDiscoveryApiRouteOptions): {
589
+ requestedPath: string;
590
+ } | null;
591
+ declare function hasDocsMarkdownSignatureAgent(request: Request): boolean;
592
+ type DocsMarkdownAgentDetection = {
593
+ detected: true;
594
+ method: "signature_agent" | "user_agent" | "heuristic";
595
+ } | {
596
+ detected: false;
597
+ method: null;
598
+ };
599
+ declare function detectDocsMarkdownAgentRequest(request: Request): DocsMarkdownAgentDetection;
600
+ declare function getDocsMarkdownVaryHeader(request: Request): string | null;
601
+ declare function resolveDocsMarkdownRecovery({
602
+ entry,
603
+ requestedPath,
604
+ pages
605
+ }: DocsMarkdownNotFoundOptions): DocsMarkdownRecoveryResult;
606
+ declare function resolveDocsMarkdownSectionRequest(url: URL): DocsMarkdownSectionRequest | null;
607
+ declare function isDocsMarkdownSectionIndexRequest(url: URL): boolean;
608
+ declare function collectDocsMarkdownSections(document: string): DocsMarkdownSection[];
609
+ declare function buildDocsMarkdownSectionIndex(document: string, options: DocsMarkdownSectionIndexOptions): DocsMarkdownSectionIndex;
610
+ declare function selectDocsMarkdownSection(document: string, request: DocsMarkdownSectionRequest): DocsMarkdownSectionResult;
611
+ declare function renderDocsMarkdownNotFound({
612
+ entry,
613
+ apiRoute,
614
+ requestedPath,
615
+ origin,
616
+ pages,
617
+ sitemap
618
+ }: DocsMarkdownNotFoundOptions): string;
619
+ /** Build one standards-aware Markdown response for every framework adapter. */
620
+ declare function createDocsMarkdownResponse(options: DocsMarkdownResponseOptions): Response;
621
+ declare function findDocsMarkdownPage<T extends DocsMarkdownPage>(entry: string, pages: T[], requestedPath: string): T | null;
622
+ declare function renderDocsMarkdownDocument(page: DocsMcpPage | DocsSearchSourcePage, options?: DocsMarkdownDocumentOptions): string;
623
+ declare function renderDocsMarkdownDocument(page: DocsMarkdownPage, options?: DocsMarkdownDocumentOptions): string;
624
+ declare function renderDocsSkillDocument(options: DocsSkillDocumentOptions): string;
625
+ declare function renderDocsAgentsDocument(options: DocsAgentsDocumentOptions): string;
626
+ /** Resolve only the task tools that the advertised MCP endpoint actually exposes. */
627
+ declare function resolveDocsAgentContractMcpTools(mcp: DocsMcpResolvedConfig): DocsAgentContractMcpTools | undefined;
628
+ declare function buildDocsAgentDiscoverySpec({
629
+ origin,
630
+ entry,
631
+ apiRoute,
632
+ apiCatalog: explicitApiCatalog,
633
+ i18n,
634
+ search,
635
+ mcp,
636
+ feedback,
637
+ llms,
638
+ sitemap,
639
+ robots,
640
+ openapi,
641
+ markdown,
642
+ publishedSkills,
643
+ agentCard
644
+ }: DocsAgentDiscoverySpecOptions): {
645
+ $schema: string;
646
+ format: string;
647
+ version: string;
648
+ name: string;
649
+ baseUrl: string;
650
+ site: {
651
+ title: string;
652
+ description: string | undefined;
653
+ entry: string;
654
+ baseUrl: string;
655
+ };
656
+ locales: {
657
+ enabled: boolean;
658
+ available: string[];
659
+ default: string | null;
660
+ queryParam: string;
661
+ fallbackQueryParam: string;
662
+ };
663
+ capabilities: {
664
+ markdownRoutes: boolean;
665
+ markdownSectionDiscovery: boolean;
666
+ agentMdOverrides: boolean;
667
+ agentBlocks: boolean;
668
+ structuredAgentContracts: boolean;
669
+ agents: boolean;
670
+ llms: boolean;
671
+ skills: boolean;
672
+ apiCatalog: boolean;
673
+ agentSkillsDiscovery: boolean;
674
+ mcp: boolean;
675
+ search: boolean;
676
+ sitemap: boolean;
677
+ robots: boolean;
678
+ structuredData: boolean;
679
+ apiReference: boolean;
680
+ openapi: boolean;
681
+ agentFeedback: boolean;
682
+ locales: boolean;
683
+ };
684
+ api: {
685
+ openapi: string;
686
+ agentCard?: string | undefined;
687
+ agentSkillsIndex: string;
688
+ legacySkillsIndex: string;
689
+ apiCatalog?: string | undefined;
690
+ apiCatalogQuery?: string | undefined;
691
+ docs: string;
692
+ config: string;
693
+ diagnostics: string;
694
+ agentSpec: string;
695
+ agentSpecDefault: string;
696
+ agentSpecFallback: string;
697
+ agentSpecWellKnown: string;
698
+ agentSpecWellKnownJson: string;
699
+ agentSpecQuery: string;
700
+ agents: string;
701
+ };
702
+ apiCatalog: {
703
+ enabled: boolean;
704
+ route: string | null;
705
+ api: string | null;
706
+ mediaType: string;
707
+ profile: string;
708
+ };
709
+ config: {
710
+ format: string;
711
+ endpoint: string;
712
+ };
713
+ markdown: {
714
+ enabled: boolean;
715
+ acceptHeader: string | null;
716
+ signatureAgentHeader: string | null;
717
+ pagePattern: string;
718
+ rootPage: string;
719
+ apiPattern: string;
720
+ sectionDiscovery: {
721
+ format?: string | undefined;
722
+ indexParam?: string | undefined;
723
+ sectionParam?: string | undefined;
724
+ tokenBudgetParam?: string | undefined;
725
+ byteBudgetParam?: string | undefined;
726
+ enabled: boolean;
727
+ };
728
+ resolutionOrder: string[];
729
+ };
730
+ agentContract: {
731
+ usefulContractFields: string[];
732
+ fields: {
733
+ readonly tokenBudget: "number";
734
+ readonly task: "string";
735
+ readonly outcome: "string";
736
+ readonly appliesTo: {
737
+ readonly framework: "string|string[]";
738
+ readonly version: "string|string[]";
739
+ readonly package: "string|string[]";
740
+ };
741
+ readonly prerequisites: "string[]";
742
+ readonly files: "string[]";
743
+ readonly commands: "Array<string|{run,cwd?,description?}>";
744
+ readonly sideEffects: "string[]";
745
+ readonly verification: "Array<string|{description?,run?,expect?}>";
746
+ readonly rollback: "string[]";
747
+ readonly failureModes: "Array<string|{symptom,resolution?}>";
748
+ };
749
+ mcpTools?: DocsAgentContractMcpTools | undefined;
750
+ enabled: boolean;
751
+ schemaVersion: string;
752
+ source: string;
753
+ frontmatterPath: string;
754
+ markdownSection: string;
755
+ mcpField: string;
756
+ };
757
+ llms: {
758
+ sections?: {
759
+ title: string;
760
+ description: string | undefined;
761
+ match: string[];
762
+ txt: string;
763
+ full: string;
764
+ }[] | undefined;
765
+ enabled: boolean;
766
+ defaultTxt: string;
767
+ defaultFull: string;
768
+ txt: string;
769
+ full: string;
770
+ publicTxt: string;
771
+ publicFull: string;
772
+ wellKnownTxt: string;
773
+ wellKnownFull: string;
774
+ };
775
+ sitemap: {
776
+ enabled: boolean;
777
+ xml: {
778
+ enabled: boolean;
779
+ route: string;
780
+ api: string;
781
+ defaultRoute: string;
782
+ };
783
+ markdown: {
784
+ enabled: boolean;
785
+ route: string;
786
+ docsRoute: string | undefined;
787
+ wellKnownRoute: string;
788
+ api: string;
789
+ defaultRoute: string;
790
+ defaultDocsRoute: string;
791
+ defaultWellKnownRoute: string;
792
+ };
793
+ };
794
+ robots: {
795
+ enabled: boolean;
796
+ route: string;
797
+ defaultRoute: string;
798
+ };
799
+ structuredData: {
800
+ enabled: boolean;
801
+ format: string;
802
+ schema: string;
803
+ fields: string[];
804
+ canonicalUrlField: string;
805
+ breadcrumbType: string;
806
+ agentContractType: string;
807
+ };
808
+ openapi: {
809
+ enabled: boolean;
810
+ url: string | null;
811
+ source: "generated" | "configured" | null;
812
+ specUrl: string | null;
813
+ apiReferencePath: string | null;
814
+ format: string;
815
+ };
816
+ search: {
817
+ enabled: boolean;
818
+ endpoint: string;
819
+ agentEndpoint: string;
820
+ structuredAgentEndpoint: string;
821
+ method: string;
822
+ queryParam: string;
823
+ localeParam: string;
824
+ audienceParam: string;
825
+ defaultAudience: string;
826
+ supportedAudiences: string[];
827
+ responseParam: string;
828
+ structuredResponseValue: string;
829
+ responseFormat: string;
830
+ filterParams: {
831
+ framework: string;
832
+ version: string;
833
+ package: string;
834
+ tags: string;
835
+ };
836
+ repeatedFilterParams: string[];
837
+ warningsField: string;
838
+ cursorParam: string;
839
+ nextCursorField: string;
840
+ hasMoreField: string;
841
+ totalField: string;
842
+ };
843
+ agents: {
844
+ enabled: boolean;
845
+ file: string;
846
+ route: string;
847
+ wellKnown: string;
848
+ api: string;
849
+ generatedFallback: boolean;
850
+ aliases: string[];
851
+ };
852
+ skills: {
853
+ enabled: boolean;
854
+ file: string;
855
+ route: string;
856
+ wellKnown: string;
857
+ api: string;
858
+ generatedFallback: boolean;
859
+ registry: string;
860
+ install: string;
861
+ discovery: {
862
+ schema: string;
863
+ index: string;
864
+ artifact: string;
865
+ archive: string;
866
+ file: string;
867
+ legacyIndex: string;
868
+ apiIndex: string;
869
+ apiArtifact: string;
870
+ apiFile: string;
871
+ digest: string;
872
+ };
873
+ published: {
874
+ name: string;
875
+ description: string;
876
+ type: "skill-md" | "archive";
877
+ url: string;
878
+ digest: `sha256:${string}`;
879
+ files: {
880
+ path: string;
881
+ url: string;
882
+ digest: `sha256:${string}`;
883
+ }[];
884
+ }[];
885
+ recommended: {
886
+ name: string;
887
+ description: string;
888
+ }[];
889
+ };
890
+ mcp: {
891
+ protectedResource?: {
892
+ metadataEndpoints: string[];
893
+ authorizationServers: string[];
894
+ scopesSupported: string[];
895
+ requiredScopes: string[];
896
+ } | undefined;
897
+ enabled: boolean;
898
+ endpoint: string;
899
+ defaultEndpoint: string;
900
+ publicEndpoint: string;
901
+ wellKnownEndpoint: string;
902
+ publicEndpoints: string[];
903
+ canonicalEndpoint: string;
904
+ name: string;
905
+ version: string;
906
+ tools: {
907
+ listDocs: boolean;
908
+ listPages: boolean;
909
+ listPageSections?: boolean;
910
+ readPage: boolean;
911
+ listTasks?: boolean;
912
+ readTask?: boolean;
913
+ searchDocs: boolean;
914
+ getNavigation: boolean;
915
+ getCodeExamples: boolean;
916
+ getConfigSchema: boolean;
917
+ getContext: boolean;
918
+ };
919
+ };
920
+ feedback: {
921
+ enabled: boolean;
922
+ schema: string;
923
+ submit: string;
924
+ schemaQuery: string;
925
+ submitQuery: string;
926
+ };
927
+ instructions: {
928
+ preferMarkdownRoutes: boolean;
929
+ useMcpWhenAvailable: boolean;
930
+ useOpenApiWhenAvailable: boolean;
931
+ readFeedbackSchemaBeforeSubmitting: boolean;
932
+ doNotAssumeFeedbackPayloadShape: boolean;
933
+ };
934
+ };
935
+ declare function acceptsDocsMarkdown(request: Request): boolean;
936
+ declare function resolveDocsOpenApiDiscoveryConfig(openapi?: boolean | DocsOpenApiDiscoveryConfig): DocsOpenApiResolvedDiscoveryConfig;
937
+ //#endregion
938
+ export { DocsMarkdownPage as $, resolveDocsLlmsTxtRequest as $t, DocsAgentFeedbackDiscoveryConfig as A, DocsPathMatch as An, hasDocsMarkdownSignatureAgent as At, DocsDiagnosticsIssueSeverity as B, normalizeDocsPathSegment as Bt, DOCS_AI_AGENT_USER_AGENT_HEADER_PATTERN as C, DEFAULT_MCP_ROUTE as Cn, createDocsMarkdownResponse as Ct, DOCS_TRADITIONAL_BOT_USER_AGENT_HEADER_PATTERN as D, getDocsMcpResourcePaths as Dn, getDocsLlmsTxtMaxCharsIssue as Dt, DOCS_MARKDOWN_SIGNATURE_AGENT_HEADER as E, getDocsMcpProtectedResourceMetadataRoutes as En, findDocsMarkdownPage as Et, DocsConfigMapJsonValue as F, isDocsLlmsTxtPublicRequest as Ft, DocsLlmsTxtGeneratedSection as G, renderDocsMarkdownDocument as Gt, DocsDiagnosticsStatus as H, parseDocsAgentFeedbackData as Ht, DocsConfigMapPointer as I, isDocsMarkdownSectionIndexRequest as It, DocsLlmsTxtRequest as J, resolveDocsAgentContractMcpTools as Jt, DocsLlmsTxtMaxCharsIssue as K, renderDocsMarkdownNotFound as Kt, DocsDiagnostics as L, isDocsPublicGetRequest as Lt, DocsAgentFeedbackResolvedConfig as M, resolveDocsI18n as Mn, isDocsAgentsRequest as Mt, DocsAgentsDocumentOptions as N, resolveDocsLocale as Nn, isDocsConfigRequest as Nt, DocsAgentContractMcpTools as O, hasDocsMcpProtectedResourceConfig as On, getDocsMarkdownCanonicalLinkHeader as Ot, DocsConfigMap as P, resolveDocsPath as Pn, isDocsDiagnosticsRequest as Pt, DocsMarkdownAgentDetection as Q, resolveDocsLlmsTxtFormat as Qt, DocsDiagnosticsFeature as R, isDocsSkillRequest as Rt, DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE as S, DEFAULT_MCP_PUBLIC_ROUTE as Sn, collectDocsMarkdownSections as St, DOCS_MARKDOWN_SECTION_INDEX_FORMAT as T, buildDocsMcpProtectedResourceMetadataRoute as Tn, detectDocsMarkdownAgentRequest as Tt, DocsLlmsDiscoveryConfig as U, renderDocsAgentsDocument as Ut, DocsDiagnosticsOptions as V, normalizeDocsUrlPath as Vt, DocsLlmsTxtGeneratedContent as W, renderDocsLlmsTxt as Wt, DocsLlmsTxtResolvedSection as X, resolveDocsAgentFeedbackRequest as Xt, DocsLlmsTxtResolvedMaxChars as Y, resolveDocsAgentFeedbackConfig as Yt, DocsLlmsTxtSelectedContent as Z, resolveDocsAgentsFormat as Zt, DEFAULT_LLMS_TXT_MAX_CHARS as _, findDocsAudienceMdxIssues as _n, buildDocsAgentFeedbackSchema as _t, DEFAULT_AGENT_MD_ROUTE as a, resolveDocsOpenApiDiscoveryConfig as an, DocsMarkdownSectionIndexOptions as at, DEFAULT_OPENAPI_SCHEMA_ROUTE as b, resolveDocsAudienceMdxContent as bn, buildDocsMarkdownSectionIndex as bt, DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE as c, selectDocsLlmsTxtContent as cn, DocsMarkdownSectionResult as ct, DEFAULT_DOCS_CONFIG_FORMAT as d, validateDocsAgentFeedbackPayload as dn, DocsOpenApiDiscoveryConfig as dt, resolveDocsLlmsTxtSections as en, DocsMarkdownRecoveryMatch as et, DEFAULT_DOCS_CONFIG_ROUTE as f, DocsAudienceMdxIssue as fn, DocsOpenApiResolvedDiscoveryConfig as ft, DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE as g, extractDocsMarkdownPromptBlocks as gn, buildDocsAgentDiscoverySpec as gt, DEFAULT_LLMS_FULL_TXT_ROUTE as h, ExtractedDocsMarkdownPromptBlocks as hn, acceptsDocsMarkdown as ht, DEFAULT_AGENT_FEEDBACK_ROUTE as i, resolveDocsMarkdownSectionRequest as in, DocsMarkdownSectionIndex as it, DocsAgentFeedbackRequest as j, ResolvedDocsI18n as jn, isDocsAgentDiscoveryRequest as jt, DocsAgentDiscoverySpecOptions as k, isDocsMcpRequest as kn, getDocsMarkdownVaryHeader as kt, DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE as l, selectDocsMarkdownSection as ln, DocsMcpEndpointCandidate as lt, DEFAULT_DOCS_DIAGNOSTICS_ROUTE as m, DocsMarkdownPromptBlock as mn, DocsStandardsDiscoveryResponseOptions as mt, DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE as n, resolveDocsMarkdownRecovery as nn, DocsMarkdownResponseOptions as nt, DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE as o, resolveDocsRequestApiRoute as on, DocsMarkdownSectionMetadata as ot, DEFAULT_DOCS_DIAGNOSTICS_FORMAT as p, DocsContentAudience as pn, DocsSkillDocumentOptions as pt, DocsLlmsTxtPageInput as q, renderDocsSkillDocument as qt, DEFAULT_AGENT_FEEDBACK_PAYLOAD_SCHEMA as r, resolveDocsMarkdownRequest as rn, DocsMarkdownSection as rt, DEFAULT_AGENT_SPEC_ROUTE as s, resolveDocsSkillFormat as sn, DocsMarkdownSectionRequest as st, DEFAULT_AGENTS_MD_ROUTE as t, resolveDocsMarkdownCanonicalUrl as tn, DocsMarkdownRecoveryResult as tt, DEFAULT_DOCS_API_ROUTE as u, toDocsMarkdownUrl as un, DocsMcpEndpointCandidateOptions as ut, DEFAULT_LLMS_TXT_ROUTE as v, resolveDocsAgentMdxContent as vn, buildDocsConfigMap as vt, DOCS_BOT_LIKE_USER_AGENT_HEADER_PATTERN as w, DEFAULT_MCP_WELL_KNOWN_ROUTE as wn, createDocsStandardsDiscoveryResponse as wt, DEFAULT_SKILL_MD_ROUTE as x, DEFAULT_MCP_PROTECTED_RESOURCE_METADATA_ROUTE as xn, buildDocsMcpEndpointCandidates as xt, DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE as y, resolveDocsAudienceExposure as yn, buildDocsDiagnostics as yt, DocsDiagnosticsIssue as z, matchesDocsLlmsTxtSection as zt };