@farming-labs/docs 0.1.119 → 0.1.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-D8DpCgt_.mjs → agent-ByXnegrS.mjs} +3 -3
- package/dist/{agents-XyolXdXp.mjs → agents-CpTNRbsh.mjs} +2 -2
- package/dist/cli/index.mjs +33 -15
- package/dist/{dev-FC6Fh7nT.mjs → dev-C03tUSTz.mjs} +2 -2
- package/dist/{doctor-CU4knIej.mjs → doctor-DMs3Q0wj.mjs} +4 -4
- package/dist/{downgrade-Bt4yrVyy.mjs → downgrade-Bv7E5LV2.mjs} +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/{init-BgzyLAay.mjs → init-_HAuo5Dv.mjs} +2 -2
- package/dist/{mcp-BMgH1Q33.mjs → mcp-DojNlB8t.mjs} +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/{package-version-DQgrHnSb.mjs → package-version-L4GZowaF.mjs} +1 -1
- package/dist/{reading-time-DNLXwuqA.mjs → reading-time-Io7iRZ7S.mjs} +2 -1
- package/dist/review-BHFhvl2F.mjs +475 -0
- package/dist/review-_5fnI667.mjs +553 -0
- package/dist/{robots-Byj0knC3.mjs → robots-BxZaiGH3.mjs} +2 -2
- package/dist/{search-BQ1cY913.mjs → search-DKpKe0rf.mjs} +1 -1
- package/dist/{search-Dqu1Q27e.d.mts → search-Dd0kOr6B.d.mts} +1 -1
- package/dist/server.d.mts +65 -3
- package/dist/server.mjs +2 -1
- package/dist/{sitemap-mqWvYODL.mjs → sitemap-CXwYOIIb.mjs} +2 -2
- package/dist/{types-Dts3a32G.d.mts → types-DtBNjsk2.d.mts} +99 -1
- package/dist/{upgrade-B1EMfRQJ.mjs → upgrade-DrOWQIKI.mjs} +2 -2
- package/package.json +1 -1
- /package/dist/{config-Cio3byUJ.mjs → config-BHRL4R2v.mjs} +0 -0
- /package/dist/{templates-CkL3bEE5.mjs → templates-CakZBXK8.mjs} +0 -0
- /package/dist/{utils-TPe8H1P-.mjs → utils-x5EtYWjC.mjs} +0 -0
package/dist/server.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { A as resolveDocsAnalyticsConfig, D as emitDocsAgentTraceEvent, E as createDocsAgentTraceId, M as createDocsCloudAnalytics, O as emitDocsAnalyticsEvent, T as createDocsAgentTraceContext, a as createMcpSearchAdapter, c as formatDocsAskAIPackageHints, d as resolveAskAISearchRequestConfig, f as resolveSearchRequestConfig, i as createCustomSearchAdapter, j as resolveDocsObservabilityConfig, k as emitDocsObservabilityEvent, l as inferDocsAskAIPackageHints, n as buildDocsSearchDocuments, o as createSimpleSearchAdapter, r as createAlgoliaSearchAdapter, s as createTypesenseSearchAdapter, t as buildDocsAskAIContext, u as performDocsSearch, w as DOCS_AGENT_TRACE_EVENT_TYPES } from "./search-BL7o2rXk.mjs";
|
|
2
2
|
import { a as buildDocsSitemapManifest, c as renderDocsSitemapMarkdown, d as resolveDocsSitemapPageLastmod, f as resolveDocsSitemapRequest, i as DEFAULT_SITEMAP_XML_ROUTE, l as renderDocsSitemapXml, n as DEFAULT_SITEMAP_MD_ROUTE, o as createDocsSitemapResponse, p as toDocsSitemapMarkdownUrl, r as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, s as readDocsSitemapManifestFromContentMap, t as DEFAULT_SITEMAP_MANIFEST_PATH, u as resolveDocsSitemapConfig } from "./sitemap-CnqcTdQg.mjs";
|
|
3
3
|
import { C as resolveApiReferenceOpenApiDiscovery, S as resolveApiReferenceConfig, _ 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-DdHzJorR.mjs";
|
|
4
|
+
import { a as ensureDocsReviewWorkflow, i as buildDocsReviewWorkflowPathFilters, n as DEFAULT_DOCS_REVIEW_WORKFLOW_PATH, o as readDocsReviewConfigFromSource, r as buildDocsReviewWorkflow, s as resolveDocsReviewConfig, t as DEFAULT_DOCS_REVIEW_SCORE_THRESHOLD } from "./review-_5fnI667.mjs";
|
|
4
5
|
import { createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, normalizeDocsMcpRoute, resolveDocsMcpConfig, runDocsMcpStdio } from "./mcp.mjs";
|
|
5
6
|
|
|
6
|
-
export { DEFAULT_API_REFERENCE_OPENAPI_ROUTE, DEFAULT_OPEN_DOCS_PROMPT, DEFAULT_OPEN_DOCS_PROVIDER_IDS, DEFAULT_OPEN_DOCS_TARGET, DEFAULT_PROMPT_PROVIDER_TEMPLATES, DEFAULT_SITEMAP_MANIFEST_PATH, DEFAULT_SITEMAP_MD_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAnalytics, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, formatDocsAskAIPackageHints, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, normalizeDocsMcpRoute, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveDocsAnalyticsConfig, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
|
7
|
+
export { DEFAULT_API_REFERENCE_OPENAPI_ROUTE, 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_ROUTE, DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, DEFAULT_SITEMAP_XML_ROUTE, DOCS_AGENT_TRACE_EVENT_TYPES, buildApiReferenceHtmlDocument, buildApiReferenceHtmlDocumentAsync, buildApiReferenceOpenApiDocument, buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, buildDocsAskAIContext, buildDocsReviewWorkflow, buildDocsReviewWorkflowPathFilters, buildDocsSearchDocuments, buildDocsSitemapManifest, createAlgoliaSearchAdapter, createCustomSearchAdapter, createDocsAgentTraceContext, createDocsAgentTraceId, createDocsCloudAnalytics, createDocsMcpHttpHandler, createDocsMcpServer, createDocsSitemapResponse, createFilesystemDocsMcpSource, createMcpSearchAdapter, createSimpleSearchAdapter, createTypesenseSearchAdapter, emitDocsAgentTraceEvent, emitDocsAnalyticsEvent, emitDocsObservabilityEvent, ensureDocsReviewWorkflow, formatDocsAskAIPackageHints, inferDocsAskAIPackageHints, isApiReferenceOpenApiRequest, normalizeDocsMcpRoute, normalizePromptProviderName, parsePromptStringArray, performDocsSearch, readDocsReviewConfigFromSource, readDocsSitemapManifest, readDocsSitemapManifestFromContentMap, renderDocsSitemapMarkdown, renderDocsSitemapXml, resolveApiReferenceConfig, resolveApiReferenceOpenApiDiscovery, resolveApiReferenceRenderer, resolveAskAISearchRequestConfig, resolveDocsAnalyticsConfig, resolveDocsMcpConfig, resolveDocsObservabilityConfig, resolveDocsReviewConfig, resolveDocsSitemapConfig, resolveDocsSitemapPageLastmod, resolveDocsSitemapRequest, resolvePromptProviderChoices, resolveSearchRequestConfig, runDocsMcpStdio, sanitizePromptText, serializeDocsIcon, serializeDocsIconRegistry, serializeOpenDocsProvider, serializeOpenDocsProviders, toDocsSitemapMarkdownUrl };
|
|
@@ -3,8 +3,8 @@ import { a as buildDocsSitemapManifest, c as renderDocsSitemapMarkdown, l as ren
|
|
|
3
3
|
import "./sitemap-server-DdHzJorR.mjs";
|
|
4
4
|
import { createFilesystemDocsMcpSource } from "./mcp.mjs";
|
|
5
5
|
import "./server.mjs";
|
|
6
|
-
import { c as readNavTitle, d as readTopLevelStringProperty, f as resolveDocsConfigPath, i as loadDocsConfigModule, o as readBooleanProperty, p as resolveDocsContentDir, t as extractNestedObjectLiteral, u as readStringProperty } from "./config-
|
|
7
|
-
import { t as detectFramework } from "./utils-
|
|
6
|
+
import { c as readNavTitle, d as readTopLevelStringProperty, f as resolveDocsConfigPath, i as loadDocsConfigModule, o as readBooleanProperty, p as resolveDocsContentDir, t as extractNestedObjectLiteral, u as readStringProperty } from "./config-BHRL4R2v.mjs";
|
|
7
|
+
import { t as detectFramework } from "./utils-x5EtYWjC.mjs";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import pc from "picocolors";
|
|
@@ -2032,6 +2032,88 @@ interface DocsAgentConfig {
|
|
|
2032
2032
|
*/
|
|
2033
2033
|
compact?: DocsAgentCompactConfig;
|
|
2034
2034
|
}
|
|
2035
|
+
type DocsReviewSeverity = "off" | "suggestion" | "warn" | "error";
|
|
2036
|
+
type DocsReviewCiMode = "off" | "warn" | "block";
|
|
2037
|
+
interface DocsReviewRulesConfig {
|
|
2038
|
+
/** Check internal markdown/docs links. */
|
|
2039
|
+
brokenLinks?: DocsReviewSeverity;
|
|
2040
|
+
/** Check required page frontmatter such as title and description. */
|
|
2041
|
+
frontmatter?: DocsReviewSeverity;
|
|
2042
|
+
/** Check duplicate docs slugs in the resolved docs tree. */
|
|
2043
|
+
duplicateSlugs?: DocsReviewSeverity;
|
|
2044
|
+
/** Check whether changed markdown/MDX files can be parsed. */
|
|
2045
|
+
invalidMdx?: DocsReviewSeverity;
|
|
2046
|
+
/** Check docs.config examples against known config options when possible. */
|
|
2047
|
+
configExamples?: DocsReviewSeverity;
|
|
2048
|
+
/** Check code fences for useful metadata such as title and framework. */
|
|
2049
|
+
codeFenceMetadata?: DocsReviewSeverity;
|
|
2050
|
+
/** Check runnable command/code fences for package manager context. */
|
|
2051
|
+
runnableMetadata?: DocsReviewSeverity;
|
|
2052
|
+
/** Suggest machine-facing context for implementation-heavy pages. */
|
|
2053
|
+
agentContext?: DocsReviewSeverity;
|
|
2054
|
+
}
|
|
2055
|
+
interface DocsReviewScoreConfig {
|
|
2056
|
+
/**
|
|
2057
|
+
* Minimum healthy score.
|
|
2058
|
+
* CI reports the threshold in warn mode and blocks below it only when `ci.mode` is `"block"`.
|
|
2059
|
+
*
|
|
2060
|
+
* @default 80
|
|
2061
|
+
*/
|
|
2062
|
+
threshold?: number;
|
|
2063
|
+
/**
|
|
2064
|
+
* Point deductions by finding severity.
|
|
2065
|
+
*
|
|
2066
|
+
* @default { error: 20, warn: 8, suggestion: 2 }
|
|
2067
|
+
*/
|
|
2068
|
+
weights?: Partial<Record<"error" | "warn" | "suggestion", number>>;
|
|
2069
|
+
}
|
|
2070
|
+
interface DocsReviewCiConfig {
|
|
2071
|
+
/**
|
|
2072
|
+
* Enable Docs Review CI workflow generation.
|
|
2073
|
+
*
|
|
2074
|
+
* @default true
|
|
2075
|
+
*/
|
|
2076
|
+
enabled?: boolean;
|
|
2077
|
+
/**
|
|
2078
|
+
* How CI should treat unhealthy review results.
|
|
2079
|
+
*
|
|
2080
|
+
* - `"off"`: do not create/report CI output
|
|
2081
|
+
* - `"warn"`: report annotations but pass CI
|
|
2082
|
+
* - `"block"`: fail CI when errors exist or the score is below threshold
|
|
2083
|
+
*
|
|
2084
|
+
* @default "warn"
|
|
2085
|
+
*/
|
|
2086
|
+
mode?: DocsReviewCiMode;
|
|
2087
|
+
/**
|
|
2088
|
+
* Emit GitHub workflow command annotations in CI.
|
|
2089
|
+
*
|
|
2090
|
+
* @default true
|
|
2091
|
+
*/
|
|
2092
|
+
annotations?: boolean;
|
|
2093
|
+
/**
|
|
2094
|
+
* Reserved for GitHub PR comments from the official action/bot.
|
|
2095
|
+
*
|
|
2096
|
+
* @default true
|
|
2097
|
+
*/
|
|
2098
|
+
comment?: boolean;
|
|
2099
|
+
}
|
|
2100
|
+
interface DocsReviewConfig {
|
|
2101
|
+
/**
|
|
2102
|
+
* Enable Docs Review.
|
|
2103
|
+
*
|
|
2104
|
+
* Omitted review config is treated as enabled so docs sites get PR review CI by default.
|
|
2105
|
+
* Set `review: false` to opt out.
|
|
2106
|
+
*
|
|
2107
|
+
* @default true
|
|
2108
|
+
*/
|
|
2109
|
+
enabled?: boolean;
|
|
2110
|
+
/** Score threshold and severity weights. */
|
|
2111
|
+
score?: DocsReviewScoreConfig;
|
|
2112
|
+
/** GitHub Actions behavior. */
|
|
2113
|
+
ci?: boolean | DocsReviewCiConfig;
|
|
2114
|
+
/** Optional rule severity overrides. */
|
|
2115
|
+
rules?: DocsReviewRulesConfig;
|
|
2116
|
+
}
|
|
2035
2117
|
interface DocsConfig {
|
|
2036
2118
|
/** Entry folder for docs (e.g. "docs" → /docs) */
|
|
2037
2119
|
entry: string;
|
|
@@ -2476,10 +2558,26 @@ interface DocsConfig {
|
|
|
2476
2558
|
* Agent-oriented configuration, including defaults for `docs agent compact`.
|
|
2477
2559
|
*/
|
|
2478
2560
|
agent?: DocsAgentConfig;
|
|
2561
|
+
/**
|
|
2562
|
+
* Docs Review checks changed docs files in CI/local runs and can auto-create
|
|
2563
|
+
* a GitHub Actions workflow during dev/build startup.
|
|
2564
|
+
*
|
|
2565
|
+
* - omitted or `true` → enabled with warn-mode CI and an 80 score threshold
|
|
2566
|
+
* - `false` → disable review and workflow generation
|
|
2567
|
+
*
|
|
2568
|
+
* @example
|
|
2569
|
+
* ```ts
|
|
2570
|
+
* review: {
|
|
2571
|
+
* ci: { mode: "block" },
|
|
2572
|
+
* score: { threshold: 90 },
|
|
2573
|
+
* }
|
|
2574
|
+
* ```
|
|
2575
|
+
*/
|
|
2576
|
+
review?: boolean | DocsReviewConfig;
|
|
2479
2577
|
/** SEO metadata - separate from theme */
|
|
2480
2578
|
metadata?: DocsMetadata;
|
|
2481
2579
|
/** Open Graph image handling */
|
|
2482
2580
|
og?: OGConfig;
|
|
2483
2581
|
}
|
|
2484
2582
|
//#endregion
|
|
2485
|
-
export {
|
|
2583
|
+
export { DocsSearchChunkingConfig as $, DocsConfig as A, PageTwitter as At, DocsObservabilityEventInput as B, SimpleDocsSearchConfig as Bt, DocsAskAIActionData as C, OpenDocsTarget as Ct, DocsAskAIFeedbackMessage as D, PageFrontmatter as Dt, DocsAskAIFeedbackData as E, PageActionsConfig as Et, DocsMcpToolsConfig as F, SidebarFolderIndexBehavior as Ft, DocsReviewRulesConfig as G, DocsReviewCiConfig as H, TypesenseDocsSearchConfig as Ht, DocsMetadata as I, SidebarFolderNode as It, DocsRobotsConfig as J, DocsReviewScoreConfig as K, DocsNav as L, SidebarNode as Lt, DocsFeedbackValue as M, ResolvedDocsRelatedLink as Mt, DocsI18nConfig as N, SidebarComponentProps as Nt, DocsAskAIFeedbackValue as O, PageOpenGraph as Ot, DocsMcpConfig as P, SidebarConfig as Pt, DocsSearchAdapterFactory as Q, DocsObservabilityConfig as R, SidebarPageNode as Rt, DocsAnalyticsSource as S, OpenDocsProviderId as St, DocsAskAIFeedbackConfig as T, OrderingItem as Tt, DocsReviewCiMode as U, TypographyConfig as Ut, DocsRelatedItem as V, ThemeToggleConfig as Vt, DocsReviewConfig as W, UIConfig as Wt, DocsSearchAdapter as X, DocsRobotsRule as Y, DocsSearchAdapterContext as Z, DocsAnalyticsConfig as _, McpDocsSearchConfig as _t, ApiReferenceRenderer as a, DocsSearchResultType as at, DocsAnalyticsEventType as b, OpenDocsProvider as bt, ChangelogFrontmatter as c, DocsTheme as ct, CustomDocsSearchConfig as d, GithubConfig as dt, DocsSearchConfig as et, DocsAgentFeedbackContext as f, LastUpdatedConfig as ft, DocsAgentTraceStatus as g, LlmsTxtSectionConfig as gt, DocsAgentTraceEventType as h, LlmsTxtMaxCharsMode as ht, ApiReferenceConfig as i, DocsSearchResult as it, DocsFeedbackData as j, ReadingTimeConfig as jt, DocsAskAIMcpConfig as k, PageSidebarFrontmatter as kt, CodeBlockCopyData as l, FeedbackConfig as lt, DocsAgentTraceEventInput as m, LlmsTxtMaxCharsConfig as mt, AgentFeedbackConfig as n, DocsSearchEmbeddingsConfig as nt, BreadcrumbConfig as o, DocsSearchSourcePage as ot, DocsAgentFeedbackData as p, LlmsTxtConfig as pt, DocsReviewSeverity as q, AlgoliaDocsSearchConfig as r, DocsSearchQuery as rt, ChangelogConfig as s, DocsSitemapConfig as st, AIConfig as t, DocsSearchDocument as tt, CopyMarkdownConfig as u, FontStyle as ut, DocsAnalyticsEvent as v, OGConfig as vt, DocsAskAIActionType as w, OpenGraphImage as wt, DocsAnalyticsInput as x, OpenDocsProviderConfig as xt, DocsAnalyticsEventInput as y, OpenDocsConfig as yt, DocsObservabilityEvent as z, SidebarTree as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as fileExists, o as exec } from "./utils-
|
|
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-
|
|
1
|
+
import { c as fileExists, o as exec } from "./utils-x5EtYWjC.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-L4GZowaF.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
|
File without changes
|
|
File without changes
|
|
File without changes
|