@farming-labs/theme 0.2.127 → 0.2.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs-api.d.mts +4 -0
- package/dist/docs-api.mjs +7 -3
- package/package.json +2 -2
package/dist/docs-api.d.mts
CHANGED
|
@@ -84,6 +84,8 @@ interface DocsAPIOptions {
|
|
|
84
84
|
_preloadedAgentSkills?: readonly DocsPublishedAgentSkill[];
|
|
85
85
|
/** @internal Build-time root document snapshot (skill.md, AGENTS.md, AGENT.md) supplied by framework adapters. */
|
|
86
86
|
_preloadedRootDocuments?: Readonly<Record<string, string>>;
|
|
87
|
+
/** @internal Build-time app package.json version supplied by framework adapters. */
|
|
88
|
+
_preloadedAppVersion?: string;
|
|
87
89
|
}
|
|
88
90
|
interface DocsMCPAPIOptions {
|
|
89
91
|
rootDir?: string;
|
|
@@ -108,6 +110,8 @@ interface DocsMCPAPIOptions {
|
|
|
108
110
|
_preloadedAgentSkills?: readonly DocsPublishedAgentSkill[];
|
|
109
111
|
/** @internal Build-time root document snapshot (skill.md, AGENTS.md, AGENT.md) supplied by framework adapters. */
|
|
110
112
|
_preloadedRootDocuments?: Readonly<Record<string, string>>;
|
|
113
|
+
/** @internal Build-time app package.json version supplied by framework adapters. */
|
|
114
|
+
_preloadedAppVersion?: string;
|
|
111
115
|
}
|
|
112
116
|
type LlmsTxtOptions = LlmsTxtConfig;
|
|
113
117
|
/**
|
package/dist/docs-api.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { BoundedRouteCache } from "./bounded-route-cache.mjs";
|
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { DEFAULT_A2A_AGENT_CARD_ROUTE, DEFAULT_AGENT_SKILLS_ARCHIVE_ROUTE_PATTERN, DEFAULT_AGENT_SKILLS_INDEX_ROUTE, DEFAULT_AGENT_SKILLS_ROUTE_PREFIX, DEFAULT_API_CATALOG_ROUTE, DEFAULT_LEGACY_SKILLS_INDEX_ROUTE, DEFAULT_SITEMAP_MD_DOCS_ROUTE, DOCS_AGENT_MANIFEST_FORMAT, DOCS_AGENT_MANIFEST_SCHEMA_URI, DOCS_AGENT_MANIFEST_VERSION, DOCS_CONTENT_CHANGES_FORMAT, DOCS_CONTENT_CHANGES_RESPONSE_VALUE, DOCS_MARKDOWN_SECTION_INDEX_FORMAT, acceptsDocsMarkdown, buildDocsAskAIContext, buildDocsConfigMap, buildDocsDiagnostics, buildDocsSearchFacets, compactDocsAgentDiscoverySpec, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCacheableResponse, createDocsContentChangeFeed, createDocsContentChangesHttpResponse, createDocsMarkdownResponse, createDocsRobotsResponse, createDocsSitemapLastmodResolver, createDocsSitemapResponse, createDocsStandardsDiscoveryResponse, detectDocsMarkdownAgentRequest, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsTelemetryAgentSurfaceEvent, emitDocsTelemetryProjectEvent, formatDocsAskAIPackageHints, getDocsAgentManifestLinkHeader, getDocsDiscoveryLinkHeader, getDocsLlmsTxtMaxCharsIssue, getDocsMcpProtectedResourceMetadataRoutes, hasDocsMarkdownSignatureAgent, inferDocsTelemetryAgentSurface, isDocsConfigRequest, isDocsContentChangesRequest, isDocsDiagnosticsRequest, normalizeDocsOkfTrustMetadataInput, normalizeDocsRelated, normalizePageAgentFrontmatter, parseDocsAgentFeedbackData, performDocsSearch, performDocsSearchWithMetadata, readDocsJsonBody, renderDocsLlmsTxt, renderDocsMarkdownDocument, resolveAskAISearchRequestConfig, resolveChangelogConfig, resolveDocsAgentContractMcpTools, resolveDocsAudienceMdxContent, resolveDocsContentChangesConfig, resolveDocsI18n, resolveDocsLlmsTxtRequest, resolveDocsLlmsTxtSections, resolveDocsLocale, resolveDocsMetadataBaseUrl, resolveDocsPublishedAgentSkill, resolveDocsRequestApiRoute, resolveDocsRetrievalLastModified, resolveDocsSearchAudience, resolveDocsSearchError, resolveDocsSearchRequest, resolveDocsSitemapConfig, resolveDocsStandardsDiscoveryRequest, resolvePageSidebarFolderIndexBehavior, resolveSearchRequestConfig, selectDocsLlmsTxtContent, stripGeneratedAgentProvenance, withDocsOpenApiOperationCounts } from "@farming-labs/docs";
|
|
7
|
-
import { buildApiReferenceOpenApiDocumentAsync, buildApiReferenceOperationPagesAsync, createApiReferenceOperationMarkdownResponse, createDocsMcpHttpHandler, createFilesystemDocsMcpSource, readDocsSitemapManifest, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveConfiguredAgentSkills, resolveDocsMcpConfig } from "@farming-labs/docs/runtime";
|
|
7
|
+
import { buildApiReferenceOpenApiDocumentAsync, buildApiReferenceOperationPagesAsync, createApiReferenceOperationMarkdownResponse, createDocsMcpHttpHandler, createFilesystemDocsMcpSource, readDocsAppVersion, readDocsSitemapManifest, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveConfiguredAgentSkills, resolveDocsMcpConfig } from "@farming-labs/docs/runtime";
|
|
8
8
|
import matter from "gray-matter";
|
|
9
9
|
|
|
10
10
|
//#region src/docs-api.ts
|
|
@@ -2731,7 +2731,10 @@ function createDocsAPI(options) {
|
|
|
2731
2731
|
};
|
|
2732
2732
|
const openapiDiscovery = resolveApiReferenceOpenApiDiscovery(apiReferenceConfig);
|
|
2733
2733
|
const rawMcpConfig = options?.mcp ?? readMcpConfig(readConfig);
|
|
2734
|
-
const mcpConfig = resolveDocsMcpConfig(rawMcpConfig, {
|
|
2734
|
+
const mcpConfig = resolveDocsMcpConfig(rawMcpConfig, {
|
|
2735
|
+
defaultName: llmsConfig.siteTitle ?? "Documentation",
|
|
2736
|
+
defaultVersion: options?._preloadedAppVersion ?? readDocsAppVersion(root)
|
|
2737
|
+
});
|
|
2735
2738
|
const discoveryLinkHeader = getDocsDiscoveryLinkHeader({
|
|
2736
2739
|
includeApiCatalog: apiCatalogEnabled,
|
|
2737
2740
|
includeAgentCard: Boolean(options?.agent?.a2a)
|
|
@@ -3723,7 +3726,8 @@ function createDocsMCPAPI(options = {}) {
|
|
|
3723
3726
|
telemetry: options.telemetry,
|
|
3724
3727
|
telemetryFramework: "next",
|
|
3725
3728
|
observability: options.observability,
|
|
3726
|
-
defaultName: navTitle
|
|
3729
|
+
defaultName: navTitle,
|
|
3730
|
+
defaultVersion: options._preloadedAppVersion ?? readDocsAppVersion(rootDir)
|
|
3727
3731
|
});
|
|
3728
3732
|
return {
|
|
3729
3733
|
GET(request) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/theme",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.129",
|
|
4
4
|
"description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"tsdown": "^0.20.3",
|
|
162
162
|
"typescript": "^5.9.3",
|
|
163
163
|
"vitest": "^4.1.8",
|
|
164
|
-
"@farming-labs/docs": "0.2.
|
|
164
|
+
"@farming-labs/docs": "0.2.129"
|
|
165
165
|
},
|
|
166
166
|
"peerDependencies": {
|
|
167
167
|
"@farming-labs/docs": ">=0.0.1",
|