@farming-labs/docs 0.2.71 → 0.2.72

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 (51) hide show
  1. package/dist/{agent-bof3qzKZ.mjs → agent-DbDfIqhe.mjs} +3 -3
  2. package/dist/{agent-evals-Cr9TAkmB.mjs → agent-evals-CjYzCQMZ.mjs} +90 -11
  3. package/dist/{agent-export-7Ws4KqDE.mjs → agent-export-CpQhD8eA.mjs} +9 -9
  4. package/dist/{agent-FIyl4-Oa.mjs → agent-pS2nNQS3.mjs} +31 -4
  5. package/dist/agent-skills-bundle.d.mts +1 -1
  6. package/dist/{agent-skills-server-DTwblsLu.d.mts → agent-skills-server-DZnNB4_S.d.mts} +2 -2
  7. package/dist/agent-skills-vite.d.mts +3 -3
  8. package/dist/agent-skills-vite.mjs +1 -1
  9. package/dist/{agents-Be2ntaFr.mjs → agents-B-1h9Jlm.mjs} +8 -8
  10. package/dist/cli/index.mjs +29 -29
  11. package/dist/client/react.d.mts +1 -1
  12. package/dist/{cloud-pdNC-tyj.mjs → cloud-CyysfDny.mjs} +3 -3
  13. package/dist/{cloud-ask-ai-BfnX18rI.d.mts → cloud-ask-ai-D9gIN4Vr.d.mts} +1 -1
  14. package/dist/{codeblocks-CFuurVIH.mjs → codeblocks-DAj7EAwt.mjs} +2 -2
  15. package/dist/{dev-Cc1cFFj-.mjs → dev-qE7MYEh9.mjs} +2 -2
  16. package/dist/docs-cloud-server.d.mts +2 -2
  17. package/dist/docs-cloud-server.mjs +1 -1
  18. package/dist/{doctor-DoPAofVP.mjs → doctor-CBy8-tPu.mjs} +13 -13
  19. package/dist/{downgrade-w7e6Se0L.mjs → downgrade-DCxezPZI.mjs} +2 -2
  20. package/dist/{golden-evaluations-CPGGnXOV.mjs → golden-evaluations-DGg_eHIY.mjs} +23 -3
  21. package/dist/index.d.mts +25 -4
  22. package/dist/index.mjs +6 -6
  23. package/dist/{init-DAkI0Lkf.mjs → init-p1MHf06G.mjs} +3 -3
  24. package/dist/{mcp-BLynUzE7.mjs → mcp-BNK45dzD.mjs} +7 -7
  25. package/dist/mcp.d.mts +7 -2
  26. package/dist/mcp.mjs +122 -18
  27. package/dist/{metadata-bw8k-9x-.mjs → metadata-D6qlWDu-.mjs} +1 -1
  28. package/dist/{package-version-n5AFur8a.mjs → package-version-BXHcIm1T.mjs} +1 -1
  29. package/dist/{reading-time-DtNegNiq.mjs → reading-time-DvTuW2Iy.mjs} +2 -2
  30. package/dist/{review-NFnYbMRI.mjs → review-Cace7A2c.mjs} +8 -8
  31. package/dist/{robots-DOqBwQw8.mjs → robots-C2SindI5.mjs} +1 -1
  32. package/dist/{robots-B3e-aWPy.mjs → robots-DmE_wXvG.mjs} +4 -4
  33. package/dist/{search-CozHzW7v.d.mts → search-1aftosa5.d.mts} +24 -9
  34. package/dist/{search-x5O0-9X3.mjs → search-BbArHODP.mjs} +691 -26
  35. package/dist/{search-DOGUUZvs.mjs → search-DB3svkNQ.mjs} +7 -7
  36. package/dist/server.d.mts +13 -5
  37. package/dist/server.mjs +8 -8
  38. package/dist/{sitemap-BpMKdDUd.mjs → sitemap-DPTLh_26.mjs} +8 -8
  39. package/dist/{sitemap-server-D_hayOp6.mjs → sitemap-server-PUoOhplO.mjs} +1 -1
  40. package/dist/{standards-discovery-C0CIC4QI.d.mts → standards-discovery-DRJ10g7B.d.mts} +1 -1
  41. package/dist/{types-BQC05SQm.d.mts → types-B9DNNAdT.d.mts} +49 -1
  42. package/dist/{upgrade-oz-GChgt.mjs → upgrade-DDJQ5l6n.mjs} +2 -2
  43. package/package.json +1 -1
  44. package/dist/agent-scope-C_U--OZ7.mjs +0 -283
  45. /package/dist/{agent-skills-server-B4u3qy-1.mjs → agent-skills-server-BPVv4gMg.mjs} +0 -0
  46. /package/dist/{cloud-ask-ai-sbpjOR2K.mjs → cloud-ask-ai-hnJfj8-X.mjs} +0 -0
  47. /package/dist/{code-blocks-DnNVNK2M.mjs → code-blocks-qe0T8-xe.mjs} +0 -0
  48. /package/dist/{config-Wcdj-D0a.mjs → config-z7_R0f86.mjs} +0 -0
  49. /package/dist/{errors-DbOhkE1h.mjs → errors-Cc_qplZU.mjs} +0 -0
  50. /package/dist/{templates-C6avM0U3.mjs → templates-BJnf6B8l.mjs} +0 -0
  51. /package/dist/{utils-DpiIioYb.mjs → utils-C4RC8Zq_.mjs} +0 -0
@@ -1,13 +1,13 @@
1
- import "./agent-FIyl4-Oa.mjs";
1
+ import "./agent-pS2nNQS3.mjs";
2
2
  import "./standards-discovery-CYfiQE13.mjs";
3
- import { n as buildDocsSearchDocuments, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter } from "./search-x5O0-9X3.mjs";
4
- import "./sitemap-server-D_hayOp6.mjs";
5
- import "./agent-evals-Cr9TAkmB.mjs";
3
+ import { n as buildDocsSearchDocuments, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter } from "./search-BbArHODP.mjs";
4
+ import "./sitemap-server-PUoOhplO.mjs";
5
+ import "./agent-evals-CjYzCQMZ.mjs";
6
6
  import { createFilesystemDocsMcpSource } from "./mcp.mjs";
7
- import "./code-blocks-DnNVNK2M.mjs";
8
- import "./agent-skills-server-B4u3qy-1.mjs";
7
+ import "./code-blocks-qe0T8-xe.mjs";
8
+ import "./agent-skills-server-BPVv4gMg.mjs";
9
9
  import "./server.mjs";
10
- import { _ as resolveDocsContentDir, c as loadProjectEnv, g as resolveDocsConfigPath, h as readTopLevelStringProperty } from "./config-Wcdj-D0a.mjs";
10
+ import { _ as resolveDocsContentDir, c as loadProjectEnv, g as resolveDocsConfigPath, h as readTopLevelStringProperty } from "./config-z7_R0f86.mjs";
11
11
  import { readFileSync } from "node:fs";
12
12
  import pc from "picocolors";
13
13
 
package/dist/server.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { $t as DocsReviewRulesConfig, B as DocsAgentEvaluationSourceReference, Ct as DocsCodeBlocksPlannerProvider, Et as DocsCodeBlocksValidateConfig, F as DocsAgentEvaluationAnswerInput, H as DocsAgentEvaluationTaskInput, I as DocsAgentEvaluationAnswerProvider, J as DocsAgentGoldenExpectedExample, Jt as DocsObservabilityEventInput, K as DocsAgentGoldenAnswerExpectation, Kt as DocsObservabilityConfig, L as DocsAgentEvaluationAnswerRequest, Mn as McpDocsSearchConfig, Qt as DocsReviewConfig, R as DocsAgentEvaluationAnswerResult, V as DocsAgentEvaluationSurface, X as DocsAgentGoldenTaskExpectation, Y as DocsAgentGoldenTask, Z as DocsAgentGoldenTaskFilters, Zt as DocsReviewCiMode, a as ApiReferenceRenderer, an as DocsSearchAdapterContext, at as DocsAnalyticsEventInput, cn as DocsSearchConfig, dn as DocsSearchQuery, dt as DocsAskAIFeedbackConfig, et as DocsAgentTraceEventInput, fn as DocsSearchResult, ft as DocsAskAIFeedbackData, hn as DocsSitemapConfig, ht as DocsAskAIMcpConfig, in as DocsSearchAdapter, it as DocsAnalyticsEvent, kt as DocsConfig, ln as DocsSearchDocument, mn as DocsSearchSourcePage, mt as DocsAskAIFeedbackValue, nt as DocsAgentTraceStatus, on as DocsSearchAdapterFactory, pt as DocsAskAIFeedbackMessage, q as DocsAgentGoldenExampleVerification, qt as DocsObservabilityEvent, rt as DocsAnalyticsConfig, tt as DocsAgentTraceEventType, z as DocsAgentEvaluationAnswerRunner } from "./types-BQC05SQm.mjs";
2
- import { n as resolveConfiguredAgentSkills, r as resolveConfiguredAgentSkillsSync, t as ResolveConfiguredAgentSkillsOptions } from "./agent-skills-server-DTwblsLu.mjs";
1
+ import { $t as DocsReviewRulesConfig, B as DocsAgentEvaluationSourceReference, Ct as DocsCodeBlocksPlannerProvider, Et as DocsCodeBlocksValidateConfig, F as DocsAgentEvaluationAnswerInput, H as DocsAgentEvaluationTaskInput, I as DocsAgentEvaluationAnswerProvider, J as DocsAgentGoldenExpectedExample, Jt as DocsObservabilityEventInput, K as DocsAgentGoldenAnswerExpectation, Kt as DocsObservabilityConfig, L as DocsAgentEvaluationAnswerRequest, Qt as DocsReviewConfig, R as DocsAgentEvaluationAnswerResult, Sn as DocsSitemapConfig, V as DocsAgentEvaluationSurface, X as DocsAgentGoldenTaskExpectation, Y as DocsAgentGoldenTask, Z as DocsAgentGoldenTaskFilters, Zt as DocsReviewCiMode, _n as DocsSearchResult, a as ApiReferenceRenderer, an as DocsSearchAdapterContext, at as DocsAnalyticsEventInput, bn as DocsSearchWarning, cn as DocsSearchConfig, dn as DocsSearchFilterField, dt as DocsAskAIFeedbackConfig, et as DocsAgentTraceEventInput, fn as DocsSearchFilterInput, ft as DocsAskAIFeedbackData, gn as DocsSearchResponse, hn as DocsSearchRequest, ht as DocsAskAIMcpConfig, in as DocsSearchAdapter, it as DocsAnalyticsEvent, kt as DocsConfig, ln as DocsSearchDocument, mn as DocsSearchQuery, mt as DocsAskAIFeedbackValue, nt as DocsAgentTraceStatus, on as DocsSearchAdapterFactory, pn as DocsSearchFilters, pt as DocsAskAIFeedbackMessage, q as DocsAgentGoldenExampleVerification, qt as DocsObservabilityEvent, rt as DocsAnalyticsConfig, tt as DocsAgentTraceEventType, xn as DocsSearchWarningCode, yn as DocsSearchSourcePage, z as DocsAgentEvaluationAnswerRunner, zn as McpDocsSearchConfig } from "./types-B9DNNAdT.mjs";
2
+ import { n as resolveConfiguredAgentSkills, r as resolveConfiguredAgentSkillsSync, t as ResolveConfiguredAgentSkillsOptions } from "./agent-skills-server-DZnNB4_S.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-BfnX18rI.mjs";
4
+ import { i as isDocsCloudAskAIProvider, n as DocsCloudAskAIResponseOptions, r as createDocsCloudAskAIResponse, t as DocsCloudAskAIConfig } from "./cloud-ask-ai-D9gIN4Vr.mjs";
5
5
  import { DocsCloudAskAIOptions, DocsCloudPublicConfig, DocsCloudRouteHandlerOptions, DocsCloudRouteHandlers, DocsCloudRuntimeEnv, DocsCloudRuntimeValue, DocsCloudServer, DocsCloudServerOptions, DocsCloudTrackEventOptions, createDocsCloudRouteHandler, createDocsCloudServer } from "./docs-cloud-server.mjs";
6
- import { A as resolveDocsSitemapPageLastmod, B as SerializedOpenDocsProvider, C as DocsSitemapResolvedConfig, D as renderDocsSitemapMarkdown, E as readDocsSitemapManifestFromContentMap, F as DEFAULT_OPEN_DOCS_TARGET, G as serializeDocsIcon, H as parsePromptStringArray, I as DEFAULT_PROMPT_PROVIDER_TEMPLATES, J as serializeOpenDocsProviders, K as serializeDocsIconRegistry, L as PromptAction, M as toDocsSitemapMarkdownUrl, N as DEFAULT_OPEN_DOCS_PROMPT, O as renderDocsSitemapXml, P as DEFAULT_OPEN_DOCS_PROVIDER_IDS, R as PromptProviderChoice, S as DocsSitemapPageInput, T as createDocsSitemapResponse, U as resolvePromptProviderChoices, V as normalizePromptProviderName, W as sanitizePromptText, _ as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, a as createMcpSearchAdapter, at as createDocsAgentTraceContext, b as DocsSitemapManifest, c as formatDocsAskAIPackageHints, ct as emitDocsAnalyticsEvent, d as resolveAskAISearchRequestConfig, dt as resolveDocsAnalyticsConfig, f as resolveDocsSearchAudience, ft as resolveDocsObservabilityConfig, g as DEFAULT_SITEMAP_MD_ROUTE, h as DEFAULT_SITEMAP_MD_DOCS_ROUTE, i as createCustomSearchAdapter, it as ResolvedDocsObservabilityConfig, j as resolveDocsSitemapRequest, k as resolveDocsSitemapConfig, l as inferDocsAskAIPackageHints, lt as emitDocsObservabilityEvent, m as DEFAULT_SITEMAP_MANIFEST_PATH, n as buildDocsSearchDocuments, nt as DocsAgentTraceContext, o as createSimpleSearchAdapter, ot as createDocsAgentTraceId, p as resolveSearchRequestConfig, q as serializeOpenDocsProvider, r as createAlgoliaSearchAdapter, rt as ResolvedDocsAnalyticsConfig, s as createTypesenseSearchAdapter, st as emitDocsAgentTraceEvent, t as buildDocsAskAIContext, tt as DOCS_AGENT_TRACE_EVENT_TYPES, u as performDocsSearch, ut as getDocsRequestAnalyticsProperties, v as DEFAULT_SITEMAP_XML_ROUTE, w as buildDocsSitemapManifest, x as DocsSitemapManifestPage, y as DocsSitemapFormat, z as SerializeOpenDocsProviderOptions } from "./search-CozHzW7v.mjs";
6
+ import { $ as serializeOpenDocsProviders, A as createDocsSitemapResponse, B as DEFAULT_OPEN_DOCS_TARGET, C as DEFAULT_SITEMAP_XML_ROUTE, D as DocsSitemapPageInput, E as DocsSitemapManifestPage, F as resolveDocsSitemapPageLastmod, G as SerializedOpenDocsProvider, H as PromptAction, I as resolveDocsSitemapRequest, J as resolvePromptProviderChoices, K as normalizePromptProviderName, L as toDocsSitemapMarkdownUrl, M as renderDocsSitemapMarkdown, N as renderDocsSitemapXml, O as DocsSitemapResolvedConfig, P as resolveDocsSitemapConfig, Q as serializeOpenDocsProvider, R as DEFAULT_OPEN_DOCS_PROMPT, S as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, T as DocsSitemapManifest, U as PromptProviderChoice, V as DEFAULT_PROMPT_PROVIDER_TEMPLATES, W as SerializeOpenDocsProviderOptions, X as serializeDocsIcon, Y as sanitizePromptText, Z as serializeDocsIconRegistry, _ as resolveDocsSearchRequest, _t as resolveDocsObservabilityConfig, a as createCustomSearchAdapter, b as DEFAULT_SITEMAP_MD_DOCS_ROUTE, c as createTypesenseSearchAdapter, ct as ResolvedDocsAnalyticsConfig, d as normalizeDocsSearchFilters, dt as createDocsAgentTraceId, f as performDocsSearch, ft as emitDocsAgentTraceEvent, g as resolveDocsSearchFilters, gt as resolveDocsAnalyticsConfig, h as resolveDocsSearchAudience, ht as getDocsRequestAnalyticsProperties, i as createAlgoliaSearchAdapter, j as readDocsSitemapManifestFromContentMap, k as buildDocsSitemapManifest, l as formatDocsAskAIPackageHints, lt as ResolvedDocsObservabilityConfig, m as resolveAskAISearchRequestConfig, mt as emitDocsObservabilityEvent, n as buildDocsAskAIContext, o as createMcpSearchAdapter, ot as DOCS_AGENT_TRACE_EVENT_TYPES, p as performDocsSearchWithMetadata, pt as emitDocsAnalyticsEvent, q as parsePromptStringArray, r as buildDocsSearchDocuments, s as createSimpleSearchAdapter, st as DocsAgentTraceContext, t as PerformDocsSearchOptions, u as inferDocsAskAIPackageHints, ut as createDocsAgentTraceContext, v as resolveSearchRequestConfig, w as DocsSitemapFormat, x as DEFAULT_SITEMAP_MD_ROUTE, y as DEFAULT_SITEMAP_MANIFEST_PATH, z as DEFAULT_OPEN_DOCS_PROVIDER_IDS } from "./search-1aftosa5.mjs";
7
7
  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, DocsMcpRequestContext, DocsMcpResolvedConfig, DocsMcpResolvedCorsConfig, DocsMcpResolvedProtectedResourceConfig, DocsMcpResolvedSecurityConfig, DocsMcpSource, DocsMcpTaskSummary, createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, getDocsConfigSchema, normalizeDocsMcpRoute, resolveDocsMcpConfig, runDocsMcpStdio } from "./mcp.mjs";
8
8
 
9
9
  //#region src/code-group-mdx.d.ts
@@ -193,6 +193,8 @@ interface DocsGoldenRetrievedSource {
193
193
  title: string;
194
194
  framework?: string;
195
195
  version?: string;
196
+ package?: string[];
197
+ tags?: string[];
196
198
  utf8Bytes: number;
197
199
  relevant: boolean;
198
200
  truncated: boolean;
@@ -222,12 +224,18 @@ interface DocsGoldenCitationMetrics {
222
224
  interface DocsGoldenSelectionMetrics {
223
225
  requestedFramework?: string;
224
226
  requestedVersion?: string;
227
+ requestedPackage?: string | readonly string[];
228
+ requestedTags?: string | readonly string[];
225
229
  requestedLocale?: string;
226
230
  expectedFramework?: string;
227
231
  expectedVersion?: string;
232
+ expectedPackage?: string | readonly string[];
233
+ expectedTags?: string | readonly string[];
228
234
  expectedLocale?: string;
229
235
  firstFrameworkMatchRank: number | null;
230
236
  firstVersionMatchRank: number | null;
237
+ firstPackageMatchRank?: number | null;
238
+ firstTagsMatchRank?: number | null;
231
239
  firstLocaleMatchRank: number | null;
232
240
  conflictingSources: string[];
233
241
  ambiguousSources: string[];
@@ -340,4 +348,4 @@ declare function runDocsGoldenTasks(pages: readonly DocsMcpPage[], tasks: readon
340
348
  //#region src/sitemap-server.d.ts
341
349
  declare function readDocsSitemapManifest(rootDir: string, sitemap?: boolean | DocsSitemapConfig): DocsSitemapManifest | null;
342
350
  //#endregion
343
- 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 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 DocsMcpRequestContext, type DocsMcpResolvedConfig, type DocsMcpResolvedCorsConfig, type DocsMcpResolvedProtectedResourceConfig, type DocsMcpResolvedSecurityConfig, type DocsMcpSource, type DocsMcpTaskSummary, type DocsObservabilityConfig, type DocsObservabilityEvent, type DocsObservabilityEventInput, type DocsSearchAdapter, type DocsSearchAdapterContext, type DocsSearchAdapterFactory, type DocsSearchConfig, type DocsSearchDocument, type DocsSearchQuery, type DocsSearchResult, type DocsSearchSourcePage, type DocsSitemapFormat, type DocsSitemapManifest, type DocsSitemapManifestPage, type DocsSitemapPageInput, type DocsSitemapResolvedConfig, type McpDocsSearchConfig, 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, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, ensureDocsReviewWorkflow, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, normalizeDocsMcpRoute, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
351
+ 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 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 DocsMcpRequestContext, type DocsMcpResolvedConfig, type DocsMcpResolvedCorsConfig, type DocsMcpResolvedProtectedResourceConfig, type DocsMcpResolvedSecurityConfig, type DocsMcpSource, type DocsMcpTaskSummary, type DocsObservabilityConfig, type DocsObservabilityEvent, type DocsObservabilityEventInput, type DocsSearchAdapter, type DocsSearchAdapterContext, type DocsSearchAdapterFactory, type DocsSearchConfig, type DocsSearchDocument, type DocsSearchFilterField, type DocsSearchFilterInput, type DocsSearchFilters, type DocsSearchQuery, type DocsSearchRequest, type DocsSearchResponse, type DocsSearchResult, type DocsSearchSourcePage, type DocsSearchWarning, type DocsSearchWarningCode, type DocsSitemapFormat, type DocsSitemapManifest, type DocsSitemapManifestPage, type DocsSitemapPageInput, type DocsSitemapResolvedConfig, 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, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, ensureDocsReviewWorkflow, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
package/dist/server.mjs CHANGED
@@ -1,14 +1,14 @@
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 renderDocsSitemapXml, Ft as DEFAULT_SITEMAP_XML_ROUTE, Ht as resolveDocsSitemapPageLastmod, It as buildDocsSitemapManifest, Lt as createDocsSitemapResponse, Mt as DEFAULT_SITEMAP_MD_DOCS_ROUTE, Nt as DEFAULT_SITEMAP_MD_ROUTE, Pt as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, Rt as readDocsSitemapManifestFromContentMap, Ut as resolveDocsSitemapRequest, Vt as resolveDocsSitemapConfig, Wt as toDocsSitemapMarkdownUrl, jt as DEFAULT_SITEMAP_MANIFEST_PATH, zt as renderDocsSitemapMarkdown } from "./agent-FIyl4-Oa.mjs";
2
+ import { Bt as renderDocsSitemapXml, Ft as DEFAULT_SITEMAP_XML_ROUTE, Ht as resolveDocsSitemapPageLastmod, It as buildDocsSitemapManifest, Lt as createDocsSitemapResponse, Mt as DEFAULT_SITEMAP_MD_DOCS_ROUTE, Nt as DEFAULT_SITEMAP_MD_ROUTE, Pt as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, Rt as readDocsSitemapManifestFromContentMap, Ut as resolveDocsSitemapRequest, Vt as resolveDocsSitemapConfig, Wt as toDocsSitemapMarkdownUrl, jt as DEFAULT_SITEMAP_MANIFEST_PATH, zt as renderDocsSitemapMarkdown } from "./agent-pS2nNQS3.mjs";
3
3
  import "./standards-discovery-CYfiQE13.mjs";
4
- import { a as createMcpSearchAdapter, c as formatDocsAskAIPackageHints, d as resolveAskAISearchRequestConfig, f as resolveDocsSearchAudience, i as createCustomSearchAdapter, l as inferDocsAskAIPackageHints, n as buildDocsSearchDocuments, o as createSimpleSearchAdapter, p as resolveSearchRequestConfig, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter, t as buildDocsAskAIContext, u as performDocsSearch } from "./search-x5O0-9X3.mjs";
5
- 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-D_hayOp6.mjs";
6
- 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-Cr9TAkmB.mjs";
4
+ import { _ as resolveSearchRequestConfig, a as createMcpSearchAdapter, c as formatDocsAskAIPackageHints, d as performDocsSearch, f as performDocsSearchWithMetadata, g as resolveDocsSearchRequest, h as resolveDocsSearchFilters, i as createCustomSearchAdapter, l as inferDocsAskAIPackageHints, m as resolveDocsSearchAudience, n as buildDocsSearchDocuments, o as createSimpleSearchAdapter, p as resolveAskAISearchRequestConfig, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter, t as buildDocsAskAIContext, u as normalizeDocsSearchFilters } from "./search-BbArHODP.mjs";
5
+ 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-PUoOhplO.mjs";
6
+ 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-CjYzCQMZ.mjs";
7
7
  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";
8
- import { n as isDocsCloudAskAIProvider, t as createDocsCloudAskAIResponse } from "./cloud-ask-ai-sbpjOR2K.mjs";
8
+ import { n as isDocsCloudAskAIProvider, t as createDocsCloudAskAIResponse } from "./cloud-ask-ai-hnJfj8-X.mjs";
9
9
  import { createDocsCloudRouteHandler, createDocsCloudServer } from "./docs-cloud-server.mjs";
10
- import "./code-blocks-DnNVNK2M.mjs";
11
- import { n as resolveConfiguredAgentSkillsSync, t as resolveConfiguredAgentSkills } from "./agent-skills-server-B4u3qy-1.mjs";
10
+ import "./code-blocks-qe0T8-xe.mjs";
11
+ import { n as resolveConfiguredAgentSkillsSync, t as resolveConfiguredAgentSkills } from "./agent-skills-server-BPVv4gMg.mjs";
12
12
  import { renderDocsAgentSkillsBundle } from "./agent-skills-vite.mjs";
13
13
 
14
- 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, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, ensureDocsReviewWorkflow, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, normalizeDocsMcpRoute, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
14
+ 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, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAskAIResponse, createDocsCloudRouteHandler, createDocsCloudServer, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, ensureDocsReviewWorkflow, formatDocsAskAIPackageHints, getDocsConfigSchema, getDocsRequestAnalyticsProperties, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, isDocsCloudAskAIProvider, normalizeDocsMcpRoute, normalizeDocsSearchFilters, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, performDocsSearchWithMetadata, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, remarkCodeGroup, renderDocsAgentSkillsBundle, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveConfiguredAgentSkills, resolveConfiguredAgentSkillsSync, resolveDocsAnalyticsConfig, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsReviewConfig, resolveDocsSearchAudience, resolveDocsSearchFilters, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsGoldenTasks, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
@@ -1,14 +1,14 @@
1
- import { Bt as renderDocsSitemapXml, It as buildDocsSitemapManifest, Vt as resolveDocsSitemapConfig, zt as renderDocsSitemapMarkdown } from "./agent-FIyl4-Oa.mjs";
1
+ import { Bt as renderDocsSitemapXml, It as buildDocsSitemapManifest, Vt as resolveDocsSitemapConfig, zt as renderDocsSitemapMarkdown } from "./agent-pS2nNQS3.mjs";
2
2
  import "./standards-discovery-CYfiQE13.mjs";
3
- import "./search-x5O0-9X3.mjs";
4
- import "./sitemap-server-D_hayOp6.mjs";
5
- import "./agent-evals-Cr9TAkmB.mjs";
3
+ import "./search-BbArHODP.mjs";
4
+ import "./sitemap-server-PUoOhplO.mjs";
5
+ import "./agent-evals-CjYzCQMZ.mjs";
6
6
  import { createFilesystemDocsMcpSource } from "./mcp.mjs";
7
- import "./code-blocks-DnNVNK2M.mjs";
8
- import "./agent-skills-server-B4u3qy-1.mjs";
7
+ import "./code-blocks-qe0T8-xe.mjs";
8
+ import "./agent-skills-server-BPVv4gMg.mjs";
9
9
  import "./server.mjs";
10
- import { _ as resolveDocsContentDir, a as loadDocsConfigModule, d as readNavTitle, g as resolveDocsConfigPath, h as readTopLevelStringProperty, l as readBooleanProperty, p as readStringProperty, t as extractNestedObjectLiteral } from "./config-Wcdj-D0a.mjs";
11
- import { t as detectFramework } from "./utils-DpiIioYb.mjs";
10
+ import { _ as resolveDocsContentDir, a as loadDocsConfigModule, d as readNavTitle, g as resolveDocsConfigPath, h as readTopLevelStringProperty, l as readBooleanProperty, p as readStringProperty, t as extractNestedObjectLiteral } from "./config-z7_R0f86.mjs";
11
+ import { t as detectFramework } from "./utils-C4RC8Zq_.mjs";
12
12
  import { existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
13
13
  import path from "node:path";
14
14
  import { execFileSync } from "node:child_process";
@@ -1,4 +1,4 @@
1
- import { Vt as resolveDocsSitemapConfig } from "./agent-FIyl4-Oa.mjs";
1
+ import { Vt as resolveDocsSitemapConfig } from "./agent-pS2nNQS3.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-BQC05SQm.mjs";
1
+ import { A as DocsAgentA2ASecurityScheme, M as DocsAgentA2ASkill, O as DocsAgentA2AProtocolBinding, h as DocsAgentA2AConfig, k as DocsAgentA2ASecurityRequirement, m as DocsAgentA2ACapabilities } from "./types-B9DNNAdT.mjs";
2
2
 
3
3
  //#region src/standards-discovery.d.ts
4
4
  declare const DEFAULT_API_CATALOG_ROUTE = "/.well-known/api-catalog";
@@ -1348,6 +1348,7 @@ interface DocsSearchDocument {
1348
1348
  locale?: string;
1349
1349
  framework?: string;
1350
1350
  version?: string;
1351
+ package?: string[];
1351
1352
  tags?: string[];
1352
1353
  }
1353
1354
  interface DocsSearchResult {
@@ -1359,6 +1360,45 @@ interface DocsSearchResult {
1359
1360
  score?: number;
1360
1361
  section?: string;
1361
1362
  }
1363
+ type DocsSearchFilterField = "framework" | "version" | "package" | "tags";
1364
+ interface DocsSearchFilterInput {
1365
+ framework?: string | readonly string[];
1366
+ version?: string | readonly string[];
1367
+ package?: string | readonly string[];
1368
+ tags?: string | readonly string[];
1369
+ }
1370
+ /** Normalized search scope. Values are ORed within a field and fields are ANDed together. */
1371
+ interface DocsSearchFilters {
1372
+ framework?: string[];
1373
+ version?: string[];
1374
+ package?: string[];
1375
+ tags?: string[];
1376
+ }
1377
+ type DocsSearchWarningCode = "ambiguous_scope" | "unknown_filter_value" | "missing_scope_metadata" | "conflicting_scope_metadata";
1378
+ interface DocsSearchWarning {
1379
+ code: DocsSearchWarningCode;
1380
+ field: DocsSearchFilterField;
1381
+ message: string;
1382
+ /** Bounded, normalized values relevant to this warning. */
1383
+ values?: string[];
1384
+ /** Bounded, deterministic sample of affected canonical page URLs. */
1385
+ pageUrls?: string[];
1386
+ /** Total number of affected values or pages before samples were bounded. */
1387
+ count?: number;
1388
+ }
1389
+ interface DocsSearchResponse {
1390
+ format: "docs-search.v1";
1391
+ query: string;
1392
+ audience: "human" | "agent";
1393
+ filters: DocsSearchFilters;
1394
+ resultCount: number;
1395
+ results: DocsSearchResult[];
1396
+ warnings: DocsSearchWarning[];
1397
+ }
1398
+ interface DocsSearchRequest {
1399
+ filters: DocsSearchFilters;
1400
+ structured: boolean;
1401
+ }
1362
1402
  interface DocsSearchQuery {
1363
1403
  query: string;
1364
1404
  limit?: number;
@@ -1366,6 +1406,8 @@ interface DocsSearchQuery {
1366
1406
  pathname?: string;
1367
1407
  /** Requested content projection. Omitted callers retain the human-search default. */
1368
1408
  audience?: "human" | "agent";
1409
+ /** Normalized framework, version, package, and tag constraints. */
1410
+ filters?: DocsSearchFilters;
1369
1411
  }
1370
1412
  interface DocsSearchAdapterContext {
1371
1413
  pages: DocsSearchSourcePage[];
@@ -2401,6 +2443,10 @@ interface DocsAgentGoldenTaskFilters {
2401
2443
  framework?: string;
2402
2444
  /** Limit retrieval to an exact documented version. */
2403
2445
  version?: string;
2446
+ /** Limit retrieval to one or more documented package names. */
2447
+ package?: string | readonly string[];
2448
+ /** Limit retrieval to pages with one or more matching tags. */
2449
+ tags?: string | readonly string[];
2404
2450
  /** Limit retrieval to a locale. */
2405
2451
  locale?: string;
2406
2452
  }
@@ -2482,6 +2528,8 @@ interface DocsAgentEvaluationSourceReference {
2482
2528
  title?: string;
2483
2529
  framework?: string;
2484
2530
  version?: string;
2531
+ package?: readonly string[];
2532
+ tags?: readonly string[];
2485
2533
  locale?: string;
2486
2534
  }
2487
2535
  /** Blind task input sent to answer providers. Golden expectations stay evaluator-only. */
@@ -3506,4 +3554,4 @@ interface DocsConfig {
3506
3554
  og?: OGConfig;
3507
3555
  }
3508
3556
  //#endregion
3509
- export { DocsAgentSkillsInput as $, ResolvedDocsRelatedLink as $n, DocsReviewRulesConfig as $t, DocsAgentA2ASecurityScheme as A, LlmsTxtMaxCharsMode as An, DocsFeedbackData as At, DocsAgentEvaluationSourceReference as B, OrderingItem as Bn, DocsMcpOriginContext as Bt, DocsAgentA2AOAuthDeviceCodeFlow as C, DocsTheme as Cn, DocsCodeBlocksPlannerProvider as Ct, DocsAgentA2AOpenIdConnectSecurityScheme as D, LastUpdatedConfig as Dn, DocsCodeBlocksValidationMode as Dt, DocsAgentA2AOAuthPasswordFlow as E, GithubConfig as En, DocsCodeBlocksValidateConfig as Et, DocsAgentEvaluationAnswerInput as F, OpenDocsProvider as Fn, DocsMcpAuthenticate as Ft, DocsAgentFeedbackData as G, PageAgentFrontmatter as Gn, DocsNav as Gt, DocsAgentEvaluationTaskInput as H, PageAgentAppliesTo as Hn, DocsMcpSecurityConfig as Ht, DocsAgentEvaluationAnswerProvider as I, OpenDocsProviderConfig as In, DocsMcpAuthenticateContext as It, DocsAgentGoldenExpectedExample as J, PageOpenGraph as Jn, DocsObservabilityEventInput as Jt, DocsAgentGoldenAnswerExpectation as K, PageAgentVerification as Kn, DocsObservabilityConfig as Kt, DocsAgentEvaluationAnswerRequest as L, OpenDocsProviderId as Ln, DocsMcpAuthenticateResult as Lt, DocsAgentA2ASkill as M, McpDocsSearchConfig as Mn, DocsI18nConfig as Mt, DocsAgentCompactConfig as N, OGConfig as Nn, DocsMcpAllowedOrigins as Nt, DocsAgentA2AProtocolBinding as O, LlmsTxtConfig as On, DocsCodeBlocksValidationPolicy as Ot, DocsAgentConfig as P, OpenDocsConfig as Pn, DocsMcpAuthPrincipal as Pt, DocsAgentSkillsConfig as Q, ReadingTimeFormat as Qn, DocsReviewConfig as Qt, DocsAgentEvaluationAnswerResult as R, OpenDocsTarget as Rn, DocsMcpConfig as Rt, DocsAgentA2AOAuthClientCredentialsFlow as S, DocsTelemetryFramework as Sn, DocsCodeBlocksPlannerConfig as St, DocsAgentA2AOAuthImplicitFlow as T, FontStyle as Tn, DocsCodeBlocksRunnerProvider as Tt, DocsAgentEvaluationsConfig as U, PageAgentCommand as Un, DocsMcpToolsConfig as Ut, DocsAgentEvaluationSurface as V, PageActionsConfig as Vn, DocsMcpProtectedResourceConfig as Vt, DocsAgentFeedbackContext as W, PageAgentFailureMode as Wn, DocsMetadata as Wt, DocsAgentGoldenTaskExpectation as X, PageTwitter as Xn, DocsReviewCiConfig as Xt, DocsAgentGoldenTask as Y, PageSidebarFrontmatter as Yn, DocsRelatedItem as Yt, DocsAgentGoldenTaskFilters as Z, ReadingTimeConfig as Zn, DocsReviewCiMode as Zt, DocsAgentA2AHttpAuthSecurityScheme as _, DocsTelemetryConfig as _n, DocsCloudConfig as _t, ApiReferenceRenderer as a, DocsSearchAdapterContext as an, SidebarPageNode as ar, DocsAnalyticsEventInput as at, DocsAgentA2AOAuth2SecurityScheme as b, DocsTelemetryEventType as bn, DocsCloudPublishConfig as bt, ChangelogFrontmatter as c, DocsSearchConfig as cn, ThemeToggleConfig as cr, DocsAnalyticsSource as ct, CopyMarkdownFormat as d, DocsSearchQuery as dn, UIConfig as dr, DocsAskAIFeedbackConfig as dt, DocsReviewScoreConfig as en, SidebarComponentProps as er, DocsAgentTraceEventInput as et, CustomDocsSearchConfig as f, DocsSearchResult as fn, DocsAskAIFeedbackData as ft, DocsAgentA2AExtension as g, DocsTelemetryAgentSurface as gn, DocsCloudApiKeyConfig as gt, DocsAgentA2AConfig as h, DocsSitemapConfig as hn, DocsAskAIMcpConfig as ht, ApiReferenceConfig as i, DocsSearchAdapter as in, SidebarNode as ir, DocsAnalyticsEvent as it, DocsAgentA2ASecurityScopeList as j, LlmsTxtSectionConfig as jn, DocsFeedbackValue as jt, DocsAgentA2ASecurityRequirement as k, LlmsTxtMaxCharsConfig as kn, DocsConfig as kt, CodeBlockCopyData as l, DocsSearchDocument as ln, TypesenseDocsSearchConfig as lr, DocsAskAIActionData as lt, DocsAgentA2ACapabilities as m, DocsSearchSourcePage as mn, DocsAskAIFeedbackValue as mt, AgentFeedbackConfig as n, DocsRobotsConfig as nn, SidebarFolderIndexBehavior as nr, DocsAgentTraceStatus as nt, BreadcrumbConfig as o, DocsSearchAdapterFactory as on, SidebarTree as or, DocsAnalyticsEventType as ot, DocsAgentA2AApiKeySecurityScheme as p, DocsSearchResultType as pn, DocsAskAIFeedbackMessage as pt, DocsAgentGoldenExampleVerification as q, PageFrontmatter as qn, DocsObservabilityEvent as qt, AlgoliaDocsSearchConfig as r, DocsRobotsRule as rn, SidebarFolderNode as rr, DocsAnalyticsConfig as rt, ChangelogConfig as s, DocsSearchChunkingConfig as sn, SimpleDocsSearchConfig as sr, DocsAnalyticsInput as st, AIConfig as t, DocsReviewSeverity as tn, SidebarConfig as tr, DocsAgentTraceEventType as tt, CopyMarkdownConfig as u, DocsSearchEmbeddingsConfig as un, TypographyConfig as ur, DocsAskAIActionType as ut, DocsAgentA2AInterfaceConfig as v, DocsTelemetryEvent as vn, DocsCloudFeatureConfig as vt, DocsAgentA2AOAuthFlows as w, FeedbackConfig as wn, DocsCodeBlocksRunnerConfig as wt, DocsAgentA2AOAuthAuthorizationCodeFlow as x, DocsTelemetryFeatures as xn, DocsCodeBlocksConfig as xt, DocsAgentA2AMutualTlsSecurityScheme as y, DocsTelemetryEventInput as yn, DocsCloudPreviewConfig as yt, DocsAgentEvaluationAnswerRunner as z, OpenGraphImage as zn, DocsMcpCorsConfig as zt };
3557
+ export { DocsAgentSkillsInput as $, PageAgentVerification as $n, DocsReviewRulesConfig as $t, DocsAgentA2ASecurityScheme as A, DocsTheme as An, DocsFeedbackData as At, DocsAgentEvaluationSourceReference as B, OGConfig as Bn, DocsMcpOriginContext as Bt, DocsAgentA2AOAuthDeviceCodeFlow as C, DocsTelemetryAgentSurface as Cn, DocsCodeBlocksPlannerProvider as Ct, DocsAgentA2AOpenIdConnectSecurityScheme as D, DocsTelemetryEventType as Dn, DocsCodeBlocksValidationMode as Dt, DocsAgentA2AOAuthPasswordFlow as E, DocsTelemetryEventInput as En, DocsCodeBlocksValidateConfig as Et, DocsAgentEvaluationAnswerInput as F, LlmsTxtConfig as Fn, DocsMcpAuthenticate as Ft, DocsAgentFeedbackData as G, OpenDocsTarget as Gn, DocsNav as Gt, DocsAgentEvaluationTaskInput as H, OpenDocsProvider as Hn, DocsMcpSecurityConfig as Ht, DocsAgentEvaluationAnswerProvider as I, LlmsTxtMaxCharsConfig as In, DocsMcpAuthenticateContext as It, DocsAgentGoldenExpectedExample as J, PageActionsConfig as Jn, DocsObservabilityEventInput as Jt, DocsAgentGoldenAnswerExpectation as K, OpenGraphImage as Kn, DocsObservabilityConfig as Kt, DocsAgentEvaluationAnswerRequest as L, LlmsTxtMaxCharsMode as Ln, DocsMcpAuthenticateResult as Lt, DocsAgentA2ASkill as M, FontStyle as Mn, DocsI18nConfig as Mt, DocsAgentCompactConfig as N, GithubConfig as Nn, DocsMcpAllowedOrigins as Nt, DocsAgentA2AProtocolBinding as O, DocsTelemetryFeatures as On, DocsCodeBlocksValidationPolicy as Ot, DocsAgentConfig as P, LastUpdatedConfig as Pn, DocsMcpAuthPrincipal as Pt, DocsAgentSkillsConfig as Q, PageAgentFrontmatter as Qn, DocsReviewConfig as Qt, DocsAgentEvaluationAnswerResult as R, LlmsTxtSectionConfig as Rn, DocsMcpConfig as Rt, DocsAgentA2AOAuthClientCredentialsFlow as S, DocsSitemapConfig as Sn, DocsCodeBlocksPlannerConfig as St, DocsAgentA2AOAuthImplicitFlow as T, DocsTelemetryEvent as Tn, DocsCodeBlocksRunnerProvider as Tt, DocsAgentEvaluationsConfig as U, OpenDocsProviderConfig as Un, DocsMcpToolsConfig as Ut, DocsAgentEvaluationSurface as V, OpenDocsConfig as Vn, DocsMcpProtectedResourceConfig as Vt, DocsAgentFeedbackContext as W, OpenDocsProviderId as Wn, DocsMetadata as Wt, DocsAgentGoldenTaskExpectation as X, PageAgentCommand as Xn, DocsReviewCiConfig as Xt, DocsAgentGoldenTask as Y, PageAgentAppliesTo as Yn, DocsRelatedItem as Yt, DocsAgentGoldenTaskFilters as Z, PageAgentFailureMode as Zn, DocsReviewCiMode as Zt, DocsAgentA2AHttpAuthSecurityScheme as _, DocsSearchResult as _n, TypographyConfig as _r, DocsCloudConfig as _t, ApiReferenceRenderer as a, DocsSearchAdapterContext as an, ReadingTimeFormat as ar, DocsAnalyticsEventInput as at, DocsAgentA2AOAuth2SecurityScheme as b, DocsSearchWarning as bn, DocsCloudPublishConfig as bt, ChangelogFrontmatter as c, DocsSearchConfig as cn, SidebarConfig as cr, DocsAnalyticsSource as ct, CopyMarkdownFormat as d, DocsSearchFilterField as dn, SidebarNode as dr, DocsAskAIFeedbackConfig as dt, DocsReviewScoreConfig as en, PageFrontmatter as er, DocsAgentTraceEventInput as et, CustomDocsSearchConfig as f, DocsSearchFilterInput as fn, SidebarPageNode as fr, DocsAskAIFeedbackData as ft, DocsAgentA2AExtension as g, DocsSearchResponse as gn, TypesenseDocsSearchConfig as gr, DocsCloudApiKeyConfig as gt, DocsAgentA2AConfig as h, DocsSearchRequest as hn, ThemeToggleConfig as hr, DocsAskAIMcpConfig as ht, ApiReferenceConfig as i, DocsSearchAdapter as in, ReadingTimeConfig as ir, DocsAnalyticsEvent as it, DocsAgentA2ASecurityScopeList as j, FeedbackConfig as jn, DocsFeedbackValue as jt, DocsAgentA2ASecurityRequirement as k, DocsTelemetryFramework as kn, DocsConfig as kt, CodeBlockCopyData as l, DocsSearchDocument as ln, SidebarFolderIndexBehavior as lr, DocsAskAIActionData as lt, DocsAgentA2ACapabilities as m, DocsSearchQuery as mn, SimpleDocsSearchConfig as mr, DocsAskAIFeedbackValue as mt, AgentFeedbackConfig as n, DocsRobotsConfig as nn, PageSidebarFrontmatter as nr, DocsAgentTraceStatus as nt, BreadcrumbConfig as o, DocsSearchAdapterFactory as on, ResolvedDocsRelatedLink as or, DocsAnalyticsEventType as ot, DocsAgentA2AApiKeySecurityScheme as p, DocsSearchFilters as pn, SidebarTree as pr, DocsAskAIFeedbackMessage as pt, DocsAgentGoldenExampleVerification as q, OrderingItem as qn, DocsObservabilityEvent as qt, AlgoliaDocsSearchConfig as r, DocsRobotsRule as rn, PageTwitter as rr, DocsAnalyticsConfig as rt, ChangelogConfig as s, DocsSearchChunkingConfig as sn, SidebarComponentProps as sr, DocsAnalyticsInput as st, AIConfig as t, DocsReviewSeverity as tn, PageOpenGraph as tr, DocsAgentTraceEventType as tt, CopyMarkdownConfig as u, DocsSearchEmbeddingsConfig as un, SidebarFolderNode as ur, DocsAskAIActionType as ut, DocsAgentA2AInterfaceConfig as v, DocsSearchResultType as vn, UIConfig as vr, DocsCloudFeatureConfig as vt, DocsAgentA2AOAuthFlows as w, DocsTelemetryConfig as wn, DocsCodeBlocksRunnerConfig as wt, DocsAgentA2AOAuthAuthorizationCodeFlow as x, DocsSearchWarningCode as xn, DocsCodeBlocksConfig as xt, DocsAgentA2AMutualTlsSecurityScheme as y, DocsSearchSourcePage as yn, DocsCloudPreviewConfig as yt, DocsAgentEvaluationAnswerRunner as z, McpDocsSearchConfig as zn, DocsMcpCorsConfig as zt };
@@ -1,5 +1,5 @@
1
- import { c as fileExists, o as exec } from "./utils-DpiIioYb.mjs";
2
- import { a as getPackagesForFramework, c as resolveDocsPackageManager, i as frameworkFromPreset, l as validateUpgradeVersion, n as PRESETS, o as presetFromFramework, r as buildDocsPackageInstallCommand, s as resolveDocsPackageFramework, t as PACKAGES_BY_FRAMEWORK } from "./package-version-n5AFur8a.mjs";
1
+ import { c as fileExists, o as exec } from "./utils-C4RC8Zq_.mjs";
2
+ import { a as getPackagesForFramework, c as resolveDocsPackageManager, i as frameworkFromPreset, l as validateUpgradeVersion, n as PRESETS, o as presetFromFramework, r as buildDocsPackageInstallCommand, s as resolveDocsPackageFramework, t as PACKAGES_BY_FRAMEWORK } from "./package-version-BXHcIm1T.mjs";
3
3
  import path from "node:path";
4
4
  import pc from "picocolors";
5
5
  import * as p from "@clack/prompts";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/docs",
3
- "version": "0.2.71",
3
+ "version": "0.2.72",
4
4
  "description": "Modern, flexible MDX-based docs framework — core types, config, and CLI",
5
5
  "keywords": [
6
6
  "docs",
@@ -1,283 +0,0 @@
1
- //#region src/agent-scope.ts
2
- /** Normalize framework aliases used by page metadata, agent contracts, MCP, and evaluations. */
3
- function normalizeAgentFramework(value) {
4
- const normalized = value.toLowerCase().replace(/[^a-z0-9]/gu, "");
5
- if ([
6
- "next",
7
- "nextjs",
8
- "nextjsapp",
9
- "reactnext"
10
- ].includes(normalized)) return "nextjs";
11
- if ([
12
- "tanstack",
13
- "tanstackstart",
14
- "start"
15
- ].includes(normalized)) return "tanstackstart";
16
- if (["svelte", "sveltekit"].includes(normalized)) return "sveltekit";
17
- if (["nuxt", "nuxtjs"].includes(normalized)) return "nuxt";
18
- return normalized;
19
- }
20
- function normalizeAgentLocale(value) {
21
- return value.trim().toLowerCase().replace(/_/gu, "-");
22
- }
23
- function normalizeAgentVersion(value) {
24
- return value.trim().toLowerCase().replace(/^v(?=\d)/u, "");
25
- }
26
- function normalizeAgentScopeValues(value) {
27
- const values = Array.isArray(value) ? value : typeof value === "string" ? [value] : [];
28
- return Array.from(new Set(values.map((item) => item.trim()).filter(Boolean)));
29
- }
30
- function compareVersions(left, right) {
31
- for (let index = 0; index < 3; index += 1) if (left[index] !== right[index]) return left[index] > right[index] ? 1 : -1;
32
- return 0;
33
- }
34
- function parseExactVersion(value) {
35
- const match = normalizeAgentVersion(value).match(/^(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:-[0-9a-z.-]+)?(?:\+[0-9a-z.-]+)?$/iu);
36
- if (!match) return void 0;
37
- return [
38
- Number(match[1]),
39
- Number(match[2] ?? 0),
40
- Number(match[3] ?? 0)
41
- ];
42
- }
43
- function parseVersionOperand(value) {
44
- const normalized = normalizeAgentVersion(value);
45
- if (normalized === "*" || normalized === "x") return {
46
- version: [
47
- 0,
48
- 0,
49
- 0
50
- ],
51
- components: 0,
52
- wildcard: true
53
- };
54
- const match = normalized.match(/^(\d+)(?:\.(\d+|x|\*))?(?:\.(\d+|x|\*))?$/iu);
55
- if (!match) return void 0;
56
- const raw = [
57
- match[1],
58
- match[2],
59
- match[3]
60
- ];
61
- const wildcardIndex = raw.findIndex((part, index) => index > 0 && (part?.toLowerCase() === "x" || part === "*"));
62
- if (wildcardIndex >= 0 && raw.slice(wildcardIndex + 1).some((part) => part && part.toLowerCase() !== "x" && part !== "*")) return;
63
- const components = wildcardIndex >= 0 ? wildcardIndex : raw.filter(Boolean).length;
64
- return {
65
- version: [
66
- Number(raw[0]),
67
- Number(raw[1] ?? 0) || 0,
68
- Number(raw[2] ?? 0) || 0
69
- ],
70
- components,
71
- wildcard: wildcardIndex >= 0
72
- };
73
- }
74
- function nextVersionBoundary(operand) {
75
- const [major, minor] = operand.version;
76
- if (operand.components <= 0) return void 0;
77
- if (operand.components === 1) return [
78
- major + 1,
79
- 0,
80
- 0
81
- ];
82
- return [
83
- major,
84
- minor + 1,
85
- 0
86
- ];
87
- }
88
- function operandRange(operand) {
89
- if (operand.components === 0) return {
90
- minimumInclusive: true,
91
- maximumInclusive: false
92
- };
93
- if (operand.components < 3 || operand.wildcard) return {
94
- minimum: operand.version,
95
- minimumInclusive: true,
96
- maximum: nextVersionBoundary(operand),
97
- maximumInclusive: false
98
- };
99
- return {
100
- minimum: operand.version,
101
- minimumInclusive: true,
102
- maximum: operand.version,
103
- maximumInclusive: true
104
- };
105
- }
106
- function caretRange(operand) {
107
- const [major, minor, patch] = operand.version;
108
- let maximum;
109
- if (major > 0) maximum = [
110
- major + 1,
111
- 0,
112
- 0
113
- ];
114
- else if (operand.components <= 1) maximum = [
115
- 1,
116
- 0,
117
- 0
118
- ];
119
- else if (minor > 0 || operand.components === 2) maximum = [
120
- 0,
121
- minor + 1,
122
- 0
123
- ];
124
- else maximum = [
125
- 0,
126
- 0,
127
- patch + 1
128
- ];
129
- return {
130
- minimum: operand.version,
131
- minimumInclusive: true,
132
- maximum,
133
- maximumInclusive: false
134
- };
135
- }
136
- function tildeRange(operand) {
137
- const [major, minor] = operand.version;
138
- const maximum = operand.components <= 1 ? [
139
- major + 1,
140
- 0,
141
- 0
142
- ] : [
143
- major,
144
- minor + 1,
145
- 0
146
- ];
147
- return {
148
- minimum: operand.version,
149
- minimumInclusive: true,
150
- maximum,
151
- maximumInclusive: false
152
- };
153
- }
154
- function intersectRanges(left, right) {
155
- let minimum = left.minimum;
156
- let minimumInclusive = left.minimumInclusive;
157
- if (!minimum || right.minimum && compareVersions(right.minimum, minimum) > 0) {
158
- minimum = right.minimum;
159
- minimumInclusive = right.minimumInclusive;
160
- } else if (right.minimum && compareVersions(right.minimum, minimum) === 0) minimumInclusive = minimumInclusive && right.minimumInclusive;
161
- let maximum = left.maximum;
162
- let maximumInclusive = left.maximumInclusive;
163
- if (!maximum || right.maximum && compareVersions(right.maximum, maximum) < 0) {
164
- maximum = right.maximum;
165
- maximumInclusive = right.maximumInclusive;
166
- } else if (right.maximum && compareVersions(right.maximum, maximum) === 0) maximumInclusive = maximumInclusive && right.maximumInclusive;
167
- if (minimum && maximum) {
168
- const compared = compareVersions(minimum, maximum);
169
- if (compared > 0 || compared === 0 && !(minimumInclusive && maximumInclusive)) return void 0;
170
- }
171
- return {
172
- minimum,
173
- minimumInclusive,
174
- maximum,
175
- maximumInclusive
176
- };
177
- }
178
- function comparatorRange(operator, operand) {
179
- if (!operator || operator === "=") return operandRange(operand);
180
- if (operator === ">=") return {
181
- minimum: operand.version,
182
- minimumInclusive: true,
183
- maximumInclusive: false
184
- };
185
- if (operator === ">") {
186
- const partialBoundary = operand.components < 3 ? nextVersionBoundary(operand) : void 0;
187
- return {
188
- minimum: partialBoundary ?? operand.version,
189
- minimumInclusive: Boolean(partialBoundary),
190
- maximumInclusive: false
191
- };
192
- }
193
- if (operator === "<") return {
194
- minimumInclusive: true,
195
- maximum: operand.version,
196
- maximumInclusive: false
197
- };
198
- const partialBoundary = operand.components < 3 ? nextVersionBoundary(operand) : void 0;
199
- return {
200
- minimumInclusive: true,
201
- maximum: partialBoundary ?? operand.version,
202
- maximumInclusive: !partialBoundary
203
- };
204
- }
205
- function parseVersionRangeBranch(value) {
206
- const branch = normalizeAgentVersion(value).trim();
207
- if (!branch) return void 0;
208
- const hyphen = branch.match(/^(.+?)\s+-\s+(.+)$/u);
209
- if (hyphen) {
210
- const minimumOperand = parseVersionOperand(hyphen[1]);
211
- const maximumOperand = parseVersionOperand(hyphen[2]);
212
- if (!minimumOperand || !maximumOperand) return void 0;
213
- const maximumBoundary = maximumOperand.components < 3 ? nextVersionBoundary(maximumOperand) : maximumOperand.version;
214
- return intersectRanges({
215
- minimum: minimumOperand.version,
216
- minimumInclusive: true,
217
- maximumInclusive: false
218
- }, {
219
- minimumInclusive: true,
220
- maximum: maximumBoundary,
221
- maximumInclusive: maximumOperand.components === 3
222
- });
223
- }
224
- const special = branch.match(/^(\^|~)\s*(.+)$/u);
225
- if (special) {
226
- const operand = parseVersionOperand(special[2]);
227
- if (!operand || operand.components === 0) return void 0;
228
- return special[1] === "^" ? caretRange(operand) : tildeRange(operand);
229
- }
230
- const comparators = Array.from(branch.matchAll(/(>=|<=|>|<|=)\s*([^\s]+)/gu));
231
- if (comparators.length > 0) {
232
- if (comparators.map((match) => match[0]).join(" ").replace(/\s+/gu, " ") !== branch.replace(/\s+/gu, " ")) return void 0;
233
- let range = {
234
- minimumInclusive: true,
235
- maximumInclusive: false
236
- };
237
- for (const comparator of comparators) {
238
- const operand = parseVersionOperand(comparator[2]);
239
- if (!operand) return void 0;
240
- const next = intersectRanges(range, comparatorRange(comparator[1], operand));
241
- if (!next) return void 0;
242
- range = next;
243
- }
244
- return range;
245
- }
246
- const operand = parseVersionOperand(branch);
247
- return operand ? operandRange(operand) : void 0;
248
- }
249
- function parseVersionRanges(value) {
250
- return normalizeAgentVersion(value).split("||").map((branch) => parseVersionRangeBranch(branch)).filter((range) => Boolean(range));
251
- }
252
- function rangeContains(range, version) {
253
- if (range.minimum) {
254
- const compared = compareVersions(version, range.minimum);
255
- if (compared < 0 || compared === 0 && !range.minimumInclusive) return false;
256
- }
257
- if (range.maximum) {
258
- const compared = compareVersions(version, range.maximum);
259
- if (compared > 0 || compared === 0 && !range.maximumInclusive) return false;
260
- }
261
- return true;
262
- }
263
- function rangesOverlap(left, right) {
264
- return Boolean(intersectRanges(left, right));
265
- }
266
- /** Match an exact requested version against an exact or range-like documented constraint. */
267
- function agentVersionConstraintMatches(requested, constraint) {
268
- if (normalizeAgentVersion(requested) === normalizeAgentVersion(constraint)) return Boolean(normalizeAgentVersion(requested));
269
- const wanted = parseExactVersion(requested);
270
- if (!wanted) return false;
271
- return parseVersionRanges(constraint).some((range) => rangeContains(range, wanted));
272
- }
273
- /** Return true when two exact or range-like documented version constraints can select one version. */
274
- function agentVersionConstraintsOverlap(left, right) {
275
- const normalizedLeft = normalizeAgentVersion(left);
276
- if (normalizedLeft === normalizeAgentVersion(right)) return Boolean(normalizedLeft);
277
- const leftRanges = parseVersionRanges(left);
278
- const rightRanges = parseVersionRanges(right);
279
- return leftRanges.some((leftRange) => rightRanges.some((rightRange) => rangesOverlap(leftRange, rightRange)));
280
- }
281
-
282
- //#endregion
283
- export { normalizeAgentScopeValues as a, normalizeAgentLocale as i, agentVersionConstraintsOverlap as n, normalizeAgentVersion as o, normalizeAgentFramework as r, agentVersionConstraintMatches as t };
File without changes