@farming-labs/docs 0.2.77 → 0.2.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-SRIJ-oF8.mjs → agent-Ba94vwM2.mjs} +4282 -334
- package/dist/{agent-DRKj42ht.d.mts → agent-CHgWJcK_.d.mts} +45 -3
- package/dist/{agent-D4hNGatV.mjs → agent-CM-hzhfh.mjs} +2 -2
- package/dist/{agent-evals-DmFoKy_y.mjs → agent-evals-C8dkgJMN.mjs} +1 -1
- package/dist/{agent-export-CM-p9_YD.mjs → agent-export-DdF-IVfg.mjs} +6 -5
- package/dist/agent-provenance-D8UBpnMc.mjs +463 -0
- package/dist/agent-skills-bundle.d.mts +1 -1
- package/dist/{agent-skills-server-CJ4D0G9P.d.mts → agent-skills-server-zvs0Yknt.d.mts} +2 -2
- package/dist/agent-skills-vite.d.mts +3 -3
- package/dist/{agents-BeLDNCnE.mjs → agents-v0Em2KZo.mjs} +4 -4
- package/dist/cli/index.mjs +14 -14
- package/dist/client/react.d.mts +1 -1
- package/dist/{cloud-ask-ai-BCgHPxew.d.mts → cloud-ask-ai-BwsdF7AQ.d.mts} +1 -1
- package/dist/docs-cloud-server.d.mts +2 -2
- package/dist/{doctor-DhMVKHjp.mjs → doctor-BbrN0rdC.mjs} +8 -8
- package/dist/{golden-evaluations-VzE6juQl.mjs → golden-evaluations-Bk9t-HNq.mjs} +7 -2
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +5 -5
- package/dist/{mcp-CZkQJXtA.mjs → mcp-DT-WNsA-.mjs} +4 -4
- package/dist/mcp.d.mts +5 -4
- package/dist/mcp.mjs +193 -3
- package/dist/{prompt-references-B6L3AD98.mjs → prompt-references-CoDorsvS.mjs} +2 -2
- package/dist/{retrieval-digest-rponR4jM.d.mts → retrieval-digest-CO3wqeMk.d.mts} +85 -4
- package/dist/{review-nxoV8jIm.mjs → review-DrCaaT7G.mjs} +4 -4
- package/dist/{robots-CgH6Stqn.mjs → robots-C_v2HK43.mjs} +1 -1
- package/dist/{robots-CiQT8mX2.mjs → robots-izJbM9cv.mjs} +2 -2
- package/dist/{search-BTUIkhnT.mjs → search-YiZMZDfb.mjs} +4 -4
- package/dist/server.d.mts +6 -6
- package/dist/server.mjs +5 -5
- package/dist/{sitemap-e0_GeCWJ.mjs → sitemap-NO8UMO6Y.mjs} +4 -4
- package/dist/{sitemap-server-DHaxyPAd.mjs → sitemap-server-Dgxs9V6S.mjs} +1 -1
- package/dist/{standards-discovery-BbslY4id.d.mts → standards-discovery-BWyNgZSs.d.mts} +1 -1
- package/dist/{types-B-5Kzmkn.d.mts → types-CpLnwHak.d.mts} +125 -4
- package/package.json +1 -1
- package/dist/search-Da2AKaFJ.mjs +0 -3992
|
@@ -825,7 +825,7 @@ interface DocsAnalyticsConfig {
|
|
|
825
825
|
}
|
|
826
826
|
type DocsTelemetryFramework = "next" | "tanstack-start" | "sveltekit" | "astro" | "nuxt" | "mcp" | (string & {});
|
|
827
827
|
type DocsTelemetryEventType = "project_detected" | "agent_surface_used" | "mcp_request" | "mcp_tool_used" | (string & {});
|
|
828
|
-
type DocsTelemetryAgentSurface = "agent_spec" | "agents" | "skill" | "markdown" | "llms" | "agent_feedback_schema" | "agent_feedback_submit" | "ask_ai" | "mcp";
|
|
828
|
+
type DocsTelemetryAgentSurface = "agent_spec" | "agents" | "skill" | "markdown" | "llms" | "agent_feedback_schema" | "agent_feedback_submit" | "content_changes" | "ask_ai" | "mcp";
|
|
829
829
|
interface DocsTelemetryConfig {
|
|
830
830
|
/** Enable Farming Labs maintainer telemetry. Defaults to production-only enabled. */
|
|
831
831
|
enabled?: boolean;
|
|
@@ -845,6 +845,7 @@ interface DocsTelemetryConfig {
|
|
|
845
845
|
}
|
|
846
846
|
interface DocsTelemetryFeatures {
|
|
847
847
|
search: boolean;
|
|
848
|
+
contentChanges: boolean;
|
|
848
849
|
ai: boolean;
|
|
849
850
|
mcp: boolean;
|
|
850
851
|
llmsTxt: boolean;
|
|
@@ -1201,6 +1202,11 @@ interface DocsMcpToolsConfig {
|
|
|
1201
1202
|
readTask?: boolean;
|
|
1202
1203
|
/** Expose a `search_docs` tool for keyword search over page content. */
|
|
1203
1204
|
searchDocs?: boolean;
|
|
1205
|
+
/**
|
|
1206
|
+
* Expose a `list_search_facets` tool that returns valid framework, version,
|
|
1207
|
+
* package, and tag values before an agent runs a scoped search.
|
|
1208
|
+
*/
|
|
1209
|
+
searchFacets?: boolean;
|
|
1204
1210
|
/** Expose a `get_navigation` tool for the docs tree. */
|
|
1205
1211
|
getNavigation?: boolean;
|
|
1206
1212
|
/** Expose a `get_code_examples` tool for fenced code blocks and their metadata. */
|
|
@@ -1377,6 +1383,67 @@ interface DocsRetrievalSourceProvenance {
|
|
|
1377
1383
|
digest: string;
|
|
1378
1384
|
indexGeneration: string;
|
|
1379
1385
|
}
|
|
1386
|
+
/** One canonical document in a content-change snapshot. */
|
|
1387
|
+
interface DocsContentSnapshotDocument {
|
|
1388
|
+
/** Framework route that produced this canonical document. */
|
|
1389
|
+
url: string;
|
|
1390
|
+
canonicalUrl: string;
|
|
1391
|
+
/** SHA-256 of the body digest plus fetch-relevant page metadata. */
|
|
1392
|
+
digest: string;
|
|
1393
|
+
lastModified?: string;
|
|
1394
|
+
}
|
|
1395
|
+
/**
|
|
1396
|
+
* Serializable content inventory stored by the optional durable change-feed callbacks.
|
|
1397
|
+
*
|
|
1398
|
+
* The snapshot contains metadata only, never document bodies.
|
|
1399
|
+
*/
|
|
1400
|
+
interface DocsContentSnapshot {
|
|
1401
|
+
format: "docs-content-snapshot.v1";
|
|
1402
|
+
audience: "human" | "agent";
|
|
1403
|
+
locale?: string;
|
|
1404
|
+
baseUrl?: string;
|
|
1405
|
+
indexGeneration: string;
|
|
1406
|
+
documents: DocsContentSnapshotDocument[];
|
|
1407
|
+
}
|
|
1408
|
+
/** Added or removed document metadata in a content-change response. */
|
|
1409
|
+
type DocsContentChangeDocument = DocsContentSnapshotDocument;
|
|
1410
|
+
/** Changed document metadata, including the immediately compared prior digest. */
|
|
1411
|
+
interface DocsContentChangedDocument extends DocsContentChangeDocument {
|
|
1412
|
+
previousDigest: string;
|
|
1413
|
+
previousLastModified?: string;
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Body-free synchronization response for documentation agents.
|
|
1417
|
+
*
|
|
1418
|
+
* `resetRequired` is explicit because a bare SHA-256 generation cannot reconstruct
|
|
1419
|
+
* history that was never retained by this process or a configured durable store.
|
|
1420
|
+
*/
|
|
1421
|
+
interface DocsContentChangesResponse {
|
|
1422
|
+
format: "docs-content-changes.v1";
|
|
1423
|
+
audience: "human" | "agent";
|
|
1424
|
+
locale?: string;
|
|
1425
|
+
since: string | null;
|
|
1426
|
+
indexGeneration: string;
|
|
1427
|
+
mode: "snapshot" | "delta" | "reset";
|
|
1428
|
+
resetRequired: boolean;
|
|
1429
|
+
documentCount: number;
|
|
1430
|
+
counts: {
|
|
1431
|
+
added: number;
|
|
1432
|
+
changed: number;
|
|
1433
|
+
deleted: number;
|
|
1434
|
+
};
|
|
1435
|
+
added: DocsContentChangeDocument[];
|
|
1436
|
+
changed: DocsContentChangedDocument[];
|
|
1437
|
+
deleted: DocsContentChangeDocument[];
|
|
1438
|
+
}
|
|
1439
|
+
interface DocsContentChangeSnapshotContext {
|
|
1440
|
+
audience: "human" | "agent";
|
|
1441
|
+
locale?: string;
|
|
1442
|
+
baseUrl?: string;
|
|
1443
|
+
request?: Request;
|
|
1444
|
+
}
|
|
1445
|
+
type DocsContentChangeSnapshotLoader = (generation: string, context: DocsContentChangeSnapshotContext) => DocsContentSnapshot | null | undefined | Promise<DocsContentSnapshot | null | undefined>;
|
|
1446
|
+
type DocsContentChangeSnapshotSaver = (snapshot: DocsContentSnapshot, context: DocsContentChangeSnapshotContext) => void | Promise<void>;
|
|
1380
1447
|
interface DocsSearchDocument {
|
|
1381
1448
|
id: string;
|
|
1382
1449
|
url: string;
|
|
@@ -1418,6 +1485,40 @@ interface DocsSearchFilters {
|
|
|
1418
1485
|
package?: string[];
|
|
1419
1486
|
tags?: string[];
|
|
1420
1487
|
}
|
|
1488
|
+
/** One selectable search-scope value and the number of matching source pages. */
|
|
1489
|
+
interface DocsSearchFacetValue {
|
|
1490
|
+
value: string;
|
|
1491
|
+
count: number;
|
|
1492
|
+
}
|
|
1493
|
+
/** Cursor-aware values for one search-scope field. */
|
|
1494
|
+
interface DocsSearchFacet {
|
|
1495
|
+
/** Number of distinct values before the response limit is applied. */
|
|
1496
|
+
valueCount: number;
|
|
1497
|
+
/** Total number of distinct values. Alias of `valueCount` for pagination clients. */
|
|
1498
|
+
total: number;
|
|
1499
|
+
/** Whether another page can be requested with `nextCursor`. */
|
|
1500
|
+
hasMore: boolean;
|
|
1501
|
+
/** Opaque cursor for the next page. Omitted when this is the final page. */
|
|
1502
|
+
nextCursor?: string;
|
|
1503
|
+
/** Whether this page omits any values from the complete facet. */
|
|
1504
|
+
truncated: boolean;
|
|
1505
|
+
values: DocsSearchFacetValue[];
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* Cheap, body-free discovery response for the search scopes available in an index.
|
|
1509
|
+
*
|
|
1510
|
+
* Counts for each facet apply the other selected filters but intentionally ignore
|
|
1511
|
+
* the selected values for that same field, so agents can discover alternatives.
|
|
1512
|
+
*/
|
|
1513
|
+
interface DocsSearchFacetsResponse {
|
|
1514
|
+
format: "docs-search-facets.v1";
|
|
1515
|
+
audience: "human" | "agent";
|
|
1516
|
+
filters: DocsSearchFilters;
|
|
1517
|
+
indexGeneration: string;
|
|
1518
|
+
/** Number of source pages matching every selected filter. */
|
|
1519
|
+
matchedPageCount: number;
|
|
1520
|
+
facets: Record<DocsSearchFilterField, DocsSearchFacet>;
|
|
1521
|
+
}
|
|
1421
1522
|
type DocsSearchWarningCode = "ambiguous_scope" | "unknown_filter_value" | "missing_scope_metadata" | "conflicting_scope_metadata";
|
|
1422
1523
|
interface DocsSearchWarning {
|
|
1423
1524
|
code: DocsSearchWarningCode;
|
|
@@ -1468,9 +1569,13 @@ interface DocsPaginatedSearchResponse extends DocsSearchResponse {
|
|
|
1468
1569
|
interface DocsSearchRequest {
|
|
1469
1570
|
filters: DocsSearchFilters;
|
|
1470
1571
|
structured: boolean;
|
|
1471
|
-
/**
|
|
1572
|
+
/** Whether the caller requested the body-free search facet response. */
|
|
1573
|
+
facets?: boolean;
|
|
1574
|
+
/** Facet field selected for cursor continuation. */
|
|
1575
|
+
facet?: DocsSearchFilterField;
|
|
1576
|
+
/** Opaque cursor supplied by a previous structured or facet response. */
|
|
1472
1577
|
cursor?: string;
|
|
1473
|
-
/** Structured
|
|
1578
|
+
/** Structured result or facet value page size. */
|
|
1474
1579
|
limit?: number;
|
|
1475
1580
|
}
|
|
1476
1581
|
interface DocsSearchQuery {
|
|
@@ -2954,9 +3059,25 @@ interface DocsAgentConfig {
|
|
|
2954
3059
|
evaluations?: boolean | DocsAgentEvaluationsConfig;
|
|
2955
3060
|
/** Publish reusable Agent Skills through standards discovery, static exports, and MCP. */
|
|
2956
3061
|
skills?: DocsAgentSkillsInput;
|
|
3062
|
+
/**
|
|
3063
|
+
* Body-free document synchronization feed. Enabled for runtime adapters by default.
|
|
3064
|
+
*
|
|
3065
|
+
* Configure snapshot callbacks when exact deltas must survive server restarts or deployments.
|
|
3066
|
+
*/
|
|
3067
|
+
contentChanges?: boolean | DocsAgentContentChangesConfig;
|
|
2957
3068
|
/** Opt in to an A2A Agent Card for a separately implemented A2A service. */
|
|
2958
3069
|
a2a?: DocsAgentA2AConfig;
|
|
2959
3070
|
}
|
|
3071
|
+
interface DocsAgentContentChangesConfig {
|
|
3072
|
+
/** Disable the runtime content-change endpoint. @default true */
|
|
3073
|
+
enabled?: boolean;
|
|
3074
|
+
/** Number of metadata-only snapshots retained in this server process. @default 8 */
|
|
3075
|
+
maxSnapshots?: number;
|
|
3076
|
+
/** Load an older snapshot from a durable store for exact cross-deployment deltas. */
|
|
3077
|
+
loadSnapshot?: DocsContentChangeSnapshotLoader;
|
|
3078
|
+
/** Persist the current snapshot to a durable store. */
|
|
3079
|
+
saveSnapshot?: DocsContentChangeSnapshotSaver;
|
|
3080
|
+
}
|
|
2960
3081
|
type DocsReviewSeverity = "off" | "suggestion" | "warn" | "error";
|
|
2961
3082
|
type DocsReviewCiMode = "off" | "warn" | "block";
|
|
2962
3083
|
interface DocsReviewRulesConfig {
|
|
@@ -3685,4 +3806,4 @@ interface DocsConfig {
|
|
|
3685
3806
|
og?: OGConfig;
|
|
3686
3807
|
}
|
|
3687
3808
|
//#endregion
|
|
3688
|
-
export {
|
|
3809
|
+
export { DocsAgentSkillsConfig as $, LlmsTxtMaxCharsMode as $n, DocsMetadata as $t, DocsAgentA2ASecurityScheme as A, DocsSearchQuery as An, SimpleDocsSearchConfig as Ar, DocsConfig as At, DocsAgentEvaluationAnswerRunner as B, DocsTelemetryConfig as Bn, DocsFeedbackValue as Bt, DocsAgentA2AOAuthDeviceCodeFlow as C, DocsSearchEmbeddingsConfig as Cn, SidebarComponentProps as Cr, DocsCodeBlocksPlannerConfig as Ct, DocsAgentA2AOpenIdConnectSecurityScheme as D, DocsSearchFilterField as Dn, SidebarNode as Dr, DocsCodeBlocksValidateConfig as Dt, DocsAgentA2AOAuthPasswordFlow as E, DocsSearchFacetsResponse as En, SidebarFolderNode as Er, DocsCodeBlocksRunnerProvider as Et, DocsAgentContentChangesConfig as F, DocsSearchSourcePage as Fn, DocsContentChangedDocument as Ft, DocsAgentFeedbackContext as G, DocsTelemetryFramework as Gn, DocsMcpAuthenticateContext as Gt, DocsAgentEvaluationSurface as H, DocsTelemetryEventInput as Hn, DocsMcpAllowedOrigins as Ht, DocsAgentEvaluationAnswerInput as I, DocsSearchWarning as In, DocsContentChangesResponse as It, DocsAgentGoldenExampleVerification as J, FontStyle as Jn, DocsMcpCorsConfig as Jt, DocsAgentFeedbackData as K, DocsTheme as Kn, DocsMcpAuthenticateResult as Kt, DocsAgentEvaluationAnswerProvider as L, DocsSearchWarningCode as Ln, DocsContentSnapshot as Lt, DocsAgentA2ASkill as M, DocsSearchResponse as Mn, TypesenseDocsSearchConfig as Mr, DocsContentChangeSnapshotContext as Mt, DocsAgentCompactConfig as N, DocsSearchResult as Nn, TypographyConfig as Nr, DocsContentChangeSnapshotLoader as Nt, DocsAgentA2AProtocolBinding as O, DocsSearchFilterInput as On, SidebarPageNode as Or, DocsCodeBlocksValidationMode as Ot, DocsAgentConfig as P, DocsSearchResultType as Pn, UIConfig as Pr, DocsContentChangeSnapshotSaver as Pt, DocsAgentGoldenTaskFilters as Q, LlmsTxtMaxCharsConfig as Qn, DocsMcpToolsConfig as Qt, DocsAgentEvaluationAnswerRequest as R, DocsSitemapConfig as Rn, DocsContentSnapshotDocument as Rt, DocsAgentA2AOAuthClientCredentialsFlow as S, DocsSearchDocument as Sn, ResolvedDocsRelatedLink as Sr, DocsCodeBlocksConfig as St, DocsAgentA2AOAuthImplicitFlow as T, DocsSearchFacetValue as Tn, SidebarFolderIndexBehavior as Tr, DocsCodeBlocksRunnerConfig as Tt, DocsAgentEvaluationTaskInput as U, DocsTelemetryEventType as Un, DocsMcpAuthPrincipal as Ut, DocsAgentEvaluationSourceReference as V, DocsTelemetryEvent as Vn, DocsI18nConfig as Vt, DocsAgentEvaluationsConfig as W, DocsTelemetryFeatures as Wn, DocsMcpAuthenticate as Wt, DocsAgentGoldenTask as X, LastUpdatedConfig as Xn, DocsMcpProtectedResourceConfig as Xt, DocsAgentGoldenExpectedExample as Y, GithubConfig as Yn, DocsMcpOriginContext as Yt, DocsAgentGoldenTaskExpectation as Z, LlmsTxtConfig as Zn, DocsMcpSecurityConfig as Zt, DocsAgentA2AHttpAuthSecurityScheme as _, DocsSearchAdapterContext as _n, PageOpenGraph as _r, DocsCloudApiKeyConfig as _t, ApiReferenceRenderer as a, DocsRelatedItem as an, OpenDocsProviderConfig as ar, DocsAnalyticsEvent as at, DocsAgentA2AOAuth2SecurityScheme as b, DocsSearchChunkingConfig as bn, ReadingTimeConfig as br, DocsCloudPreviewConfig as bt, ChangelogFrontmatter as c, DocsReviewCiConfig as cn, OpenGraphImage as cr, DocsAnalyticsInput as ct, CopyMarkdownFormat as d, DocsReviewRulesConfig as dn, PageAgentAppliesTo as dr, DocsAskAIActionType as dt, DocsNav as en, LlmsTxtSectionConfig as er, DocsAgentSkillsInput as et, CustomDocsSearchConfig as f, DocsReviewScoreConfig as fn, PageAgentCommand as fr, DocsAskAIFeedbackConfig as ft, DocsAgentA2AExtension as g, DocsSearchAdapter as gn, PageFrontmatter as gr, DocsAskAIMcpConfig as gt, DocsAgentA2AConfig as h, DocsRobotsRule as hn, PageAgentVerification as hr, DocsAskAIFeedbackValue as ht, ApiReferenceConfig as i, DocsPaginatedSearchResponse as in, OpenDocsProvider as ir, DocsAnalyticsConfig as it, DocsAgentA2ASecurityScopeList as j, DocsSearchRequest as jn, ThemeToggleConfig as jr, DocsContentChangeDocument as jt, DocsAgentA2ASecurityRequirement as k, DocsSearchFilters as kn, SidebarTree as kr, DocsCodeBlocksValidationPolicy as kt, CodeBlockCopyData as l, DocsReviewCiMode as ln, OrderingItem as lr, DocsAnalyticsSource as lt, DocsAgentA2ACapabilities as m, DocsRobotsConfig as mn, PageAgentFrontmatter as mr, DocsAskAIFeedbackMessage as mt, AgentFeedbackConfig as n, DocsObservabilityEvent as nn, OGConfig as nr, DocsAgentTraceEventType as nt, BreadcrumbConfig as o, DocsRetrievalSourceProvenance as on, OpenDocsProviderId as or, DocsAnalyticsEventInput as ot, DocsAgentA2AApiKeySecurityScheme as p, DocsReviewSeverity as pn, PageAgentFailureMode as pr, DocsAskAIFeedbackData as pt, DocsAgentGoldenAnswerExpectation as q, FeedbackConfig as qn, DocsMcpConfig as qt, AlgoliaDocsSearchConfig as r, DocsObservabilityEventInput as rn, OpenDocsConfig as rr, DocsAgentTraceStatus as rt, ChangelogConfig as s, DocsRetrievalSourceScope as sn, OpenDocsTarget as sr, DocsAnalyticsEventType as st, AIConfig as t, DocsObservabilityConfig as tn, McpDocsSearchConfig as tr, DocsAgentTraceEventInput as tt, CopyMarkdownConfig as u, DocsReviewConfig as un, PageActionsConfig as ur, DocsAskAIActionData as ut, DocsAgentA2AInterfaceConfig as v, DocsSearchAdapterFactory as vn, PageSidebarFrontmatter as vr, DocsCloudConfig as vt, DocsAgentA2AOAuthFlows as w, DocsSearchFacet as wn, SidebarConfig as wr, DocsCodeBlocksPlannerProvider as wt, DocsAgentA2AOAuthAuthorizationCodeFlow as x, DocsSearchConfig as xn, ReadingTimeFormat as xr, DocsCloudPublishConfig as xt, DocsAgentA2AMutualTlsSecurityScheme as y, DocsSearchAdapterPage as yn, PageTwitter as yr, DocsCloudFeatureConfig as yt, DocsAgentEvaluationAnswerResult as z, DocsTelemetryAgentSurface as zn, DocsFeedbackData as zt };
|