@farming-labs/docs 0.2.75 → 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.
Files changed (39) hide show
  1. package/dist/{agent-BHqaZx-X.mjs → agent-Ba94vwM2.mjs} +4308 -340
  2. package/dist/{agent-cAPjC2jb.d.mts → agent-CHgWJcK_.d.mts} +60 -2
  3. package/dist/{agent-DxTa3PLB.mjs → agent-CM-hzhfh.mjs} +2 -2
  4. package/dist/{agent-evals-21LZ_uEl.mjs → agent-evals-C8dkgJMN.mjs} +1 -1
  5. package/dist/{agent-export-3VheegEK.mjs → agent-export-DdF-IVfg.mjs} +8 -7
  6. package/dist/agent-provenance-D8UBpnMc.mjs +463 -0
  7. package/dist/agent-skills-bundle.d.mts +1 -1
  8. package/dist/{agent-skills-server-noFn1l_p.mjs → agent-skills-server-B2EXn2QD.mjs} +1 -1
  9. package/dist/{agent-skills-server-Cix64aGB.d.mts → agent-skills-server-zvs0Yknt.d.mts} +2 -2
  10. package/dist/agent-skills-vite.d.mts +3 -3
  11. package/dist/agent-skills-vite.mjs +2 -2
  12. package/dist/{agents-ByTdP0Hl.mjs → agents-v0Em2KZo.mjs} +7 -16
  13. package/dist/cli/index.mjs +15 -15
  14. package/dist/client/react.d.mts +1 -1
  15. package/dist/{cloud-ask-ai-Bt0rzFbe.d.mts → cloud-ask-ai-BwsdF7AQ.d.mts} +1 -1
  16. package/dist/{dev-Cc1cFFj-.mjs → dev-kjaxOOla.mjs} +8 -2
  17. package/dist/docs-cloud-server.d.mts +2 -2
  18. package/dist/{doctor-C34VVF85.mjs → doctor-BbrN0rdC.mjs} +56 -24
  19. package/dist/{golden-evaluations-D_oDJwGv.mjs → golden-evaluations-Bk9t-HNq.mjs} +12 -3
  20. package/dist/index.d.mts +5 -5
  21. package/dist/index.mjs +6 -6
  22. package/dist/{mcp-Bnqfu8P5.mjs → mcp-DT-WNsA-.mjs} +6 -6
  23. package/dist/mcp.d.mts +28 -6
  24. package/dist/mcp.mjs +557 -62
  25. package/dist/{prompt-references-CfyYOa_W.mjs → prompt-references-CoDorsvS.mjs} +3 -3
  26. package/dist/{retrieval-digest-CFOcSKTo.d.mts → retrieval-digest-CO3wqeMk.d.mts} +105 -6
  27. package/dist/{review-Dw6oCQX3.mjs → review-DrCaaT7G.mjs} +5 -5
  28. package/dist/{robots-DaYBoy_A.mjs → robots-C_v2HK43.mjs} +2 -2
  29. package/dist/{robots-KWLujSLI.mjs → robots-izJbM9cv.mjs} +3 -3
  30. package/dist/{search-DBdmbUkc.mjs → search-YiZMZDfb.mjs} +6 -6
  31. package/dist/server.d.mts +9 -7
  32. package/dist/server.mjs +7 -7
  33. package/dist/{sitemap-CrzG5Wpf.mjs → sitemap-NO8UMO6Y.mjs} +6 -6
  34. package/dist/{sitemap-server-B9LZQ1FE.mjs → sitemap-server-Dgxs9V6S.mjs} +12 -3
  35. package/dist/{standards-discovery-BwL5ffGx.mjs → standards-discovery-BKlEnK_H.mjs} +32 -4
  36. package/dist/{standards-discovery-DBI1PD7m.d.mts → standards-discovery-BWyNgZSs.d.mts} +34 -7
  37. package/dist/{types-BDRwrExu.d.mts → types-CpLnwHak.d.mts} +190 -2
  38. package/package.json +1 -1
  39. package/dist/search-BmC8wVr0.mjs +0 -3490
@@ -1,5 +1,5 @@
1
- import { Bn as LlmsTxtSectionConfig, G as DocsAgentFeedbackData, Ln as LlmsTxtConfig, Mt as DocsI18nConfig, Nn as FeedbackConfig, Rn as LlmsTxtMaxCharsConfig, Rt as DocsMcpConfig, cr as ResolvedDocsRelatedLink, er as PageAgentFrontmatter, in as DocsRobotsConfig, kt as DocsConfig, un as DocsSearchConfig, wn as DocsSitemapConfig, xn as DocsSearchSourcePage, zn as LlmsTxtMaxCharsMode } from "./types-BDRwrExu.mjs";
2
- import { I as DocsDiscoveryApiRouteOptions, L as DocsPublishedAgentSkill, O as DocsA2AAgentCardOptions } from "./standards-discovery-DBI1PD7m.mjs";
1
+ import { $n as LlmsTxtMaxCharsMode, At as DocsConfig, F as DocsAgentContentChangesConfig, Fn as DocsSearchSourcePage, K as DocsAgentFeedbackData, Qn as LlmsTxtMaxCharsConfig, Rn as DocsSitemapConfig, Sr as ResolvedDocsRelatedLink, Vt as DocsI18nConfig, Zn as LlmsTxtConfig, er as LlmsTxtSectionConfig, mn as DocsRobotsConfig, mr as PageAgentFrontmatter, qn as FeedbackConfig, qt as DocsMcpConfig, xn as DocsSearchConfig } from "./types-CpLnwHak.mjs";
2
+ import { O as DocsA2AAgentCardOptions, R as DocsDiscoveryApiRouteOptions, z as DocsPublishedAgentSkill } from "./standards-discovery-BWyNgZSs.mjs";
3
3
  import { DocsMcpPage, DocsMcpResolvedConfig } from "./mcp.mjs";
4
4
 
5
5
  //#region src/i18n.d.ts
@@ -147,6 +147,8 @@ interface DocsOpenApiDiscoveryConfig {
147
147
  source?: "generated" | "configured";
148
148
  specUrl?: string;
149
149
  apiReferencePath?: string;
150
+ /** Product API targets described by this OpenAPI document. */
151
+ catalogTargets?: readonly string[];
150
152
  }
151
153
  interface DocsOpenApiResolvedDiscoveryConfig {
152
154
  enabled: boolean;
@@ -156,6 +158,8 @@ interface DocsOpenApiResolvedDiscoveryConfig {
156
158
  source?: "generated" | "configured";
157
159
  specUrl?: string;
158
160
  apiReferencePath?: string;
161
+ /** Product API targets described by this OpenAPI document. */
162
+ catalogTargets?: readonly string[];
159
163
  }
160
164
  type DocsConfigMapJsonPrimitive = string | number | boolean | null;
161
165
  type DocsConfigMapJsonValue = DocsConfigMapJsonPrimitive | DocsConfigMapJsonValue[] | {
@@ -200,6 +204,7 @@ interface DocsDiagnosticsFeature {
200
204
  routes?: Record<string, string | null>;
201
205
  agentEndpoint?: string | null;
202
206
  structuredAgentEndpoint?: string | null;
207
+ facetsEndpoint?: string | null;
203
208
  audienceParam?: string;
204
209
  defaultAudience?: "human" | "agent";
205
210
  supportedAudiences?: Array<"human" | "agent">;
@@ -210,7 +215,24 @@ interface DocsDiagnosticsFeature {
210
215
  tags: "tags";
211
216
  };
212
217
  responseFormat?: "docs-search.v1";
218
+ facetsResponseFormat?: "docs-search-facets.v1";
219
+ format?: string;
220
+ sinceParam?: string;
221
+ generationField?: string;
222
+ resetRequiredField?: string;
213
223
  warningsField?: "warnings";
224
+ /** Facet field selected for facet-value continuation. */
225
+ facetParam?: "facet";
226
+ /** Page-size parameter accepted by structured search and facet discovery. */
227
+ limitParam?: "limit";
228
+ /** Opaque continuation token accepted by structured search and facet discovery. */
229
+ cursorParam?: "cursor";
230
+ /** Optional continuation token returned when another result page is available. */
231
+ nextCursorField?: "nextCursor";
232
+ /** Boolean structured-response field indicating whether another page is available. */
233
+ hasMoreField?: "hasMore";
234
+ /** Structured-response field containing the total matches across all pages. */
235
+ totalField?: "total";
214
236
  provider?: string;
215
237
  mode?: string;
216
238
  transport?: "GET" | "POST" | "GET/HEAD" | "GET/POST";
@@ -236,6 +258,7 @@ interface DocsDiagnostics {
236
258
  skill: string;
237
259
  search: string | null;
238
260
  agentSearch: string | null;
261
+ contentChanges: string | null;
239
262
  askAi: string | null;
240
263
  mcp: string | null;
241
264
  llmsTxt: string | null;
@@ -252,6 +275,7 @@ interface DocsDiagnostics {
252
275
  diagnostics: DocsDiagnosticsFeature;
253
276
  apiCatalog: DocsDiagnosticsFeature;
254
277
  search: DocsDiagnosticsFeature;
278
+ contentChanges: DocsDiagnosticsFeature;
255
279
  ai: DocsDiagnosticsFeature;
256
280
  mcp: DocsDiagnosticsFeature;
257
281
  feedback: DocsDiagnosticsFeature;
@@ -336,6 +360,8 @@ interface DocsAgentDiscoverySpecOptions extends DocsDiscoveryApiRouteOptions {
336
360
  apiCatalog?: boolean;
337
361
  i18n?: ResolvedDocsI18n | null;
338
362
  search?: boolean | DocsSearchConfig;
363
+ /** Runtime metadata-only document synchronization feed. Defaults to enabled. */
364
+ contentChanges?: boolean | DocsAgentContentChangesConfig;
339
365
  mcp: DocsMcpResolvedConfig;
340
366
  feedback?: DocsAgentFeedbackDiscoveryConfig;
341
367
  llms?: DocsLlmsDiscoveryConfig;
@@ -360,6 +386,8 @@ interface DocsSkillDocumentOptions extends DocsDiscoveryApiRouteOptions {
360
386
  /** Whether this deployment actually serves the RFC 9727 API catalog. Defaults to true. */
361
387
  apiCatalog?: boolean;
362
388
  search?: boolean | DocsSearchConfig;
389
+ /** Runtime metadata-only document synchronization feed. Defaults to enabled. */
390
+ contentChanges?: boolean | DocsAgentContentChangesConfig;
363
391
  mcp: DocsMcpResolvedConfig;
364
392
  feedback?: DocsAgentFeedbackDiscoveryConfig;
365
393
  llms?: DocsLlmsDiscoveryConfig;
@@ -620,6 +648,7 @@ declare function buildDocsAgentDiscoverySpec({
620
648
  apiCatalog: explicitApiCatalog,
621
649
  i18n,
622
650
  search,
651
+ contentChanges,
623
652
  mcp,
624
653
  feedback,
625
654
  llms,
@@ -661,6 +690,7 @@ declare function buildDocsAgentDiscoverySpec({
661
690
  agentSkillsDiscovery: boolean;
662
691
  mcp: boolean;
663
692
  search: boolean;
693
+ contentChanges: boolean;
664
694
  sitemap: boolean;
665
695
  robots: boolean;
666
696
  structuredData: boolean;
@@ -670,6 +700,7 @@ declare function buildDocsAgentDiscoverySpec({
670
700
  locales: boolean;
671
701
  };
672
702
  api: {
703
+ contentChanges?: string | undefined;
673
704
  openapi: string;
674
705
  agentCard?: string | undefined;
675
706
  agentSkillsIndex: string;
@@ -806,6 +837,7 @@ declare function buildDocsAgentDiscoverySpec({
806
837
  endpoint: string;
807
838
  agentEndpoint: string;
808
839
  structuredAgentEndpoint: string;
840
+ facetsEndpoint: string;
809
841
  method: string;
810
842
  queryParam: string;
811
843
  localeParam: string;
@@ -814,7 +846,9 @@ declare function buildDocsAgentDiscoverySpec({
814
846
  supportedAudiences: string[];
815
847
  responseParam: string;
816
848
  structuredResponseValue: string;
849
+ facetsResponseValue: string;
817
850
  responseFormat: string;
851
+ facetsResponseFormat: string;
818
852
  filterParams: {
819
853
  framework: string;
820
854
  version: string;
@@ -823,6 +857,29 @@ declare function buildDocsAgentDiscoverySpec({
823
857
  };
824
858
  repeatedFilterParams: string[];
825
859
  warningsField: string;
860
+ facetParam: string;
861
+ limitParam: string;
862
+ cursorParam: string;
863
+ nextCursorField: string;
864
+ hasMoreField: string;
865
+ totalField: string;
866
+ };
867
+ contentChanges: {
868
+ enabled: boolean;
869
+ endpoint: string | null;
870
+ method: string;
871
+ audienceParam: string;
872
+ defaultAudience: string;
873
+ supportedAudiences: string[];
874
+ responseParam: string;
875
+ responseValue: string;
876
+ sinceParam: string;
877
+ format: string;
878
+ generationField: string;
879
+ resetRequiredField: string;
880
+ modes: string[];
881
+ bodyFree: boolean;
882
+ etag: boolean;
826
883
  };
827
884
  agents: {
828
885
  enabled: boolean;
@@ -895,6 +952,7 @@ declare function buildDocsAgentDiscoverySpec({
895
952
  listTasks?: boolean;
896
953
  readTask?: boolean;
897
954
  searchDocs: boolean;
955
+ searchFacets?: boolean;
898
956
  getNavigation: boolean;
899
957
  getCodeExamples: boolean;
900
958
  getConfigSchema: boolean;
@@ -1,6 +1,6 @@
1
- import { B as findDocsMarkdownPage, at as renderDocsMarkdownDocument } from "./agent-BHqaZx-X.mjs";
1
+ import { B as findDocsMarkdownPage, at as renderDocsMarkdownDocument } from "./agent-Ba94vwM2.mjs";
2
2
  import { v as normalizePageAgentFrontmatter, x as stripGeneratedPageAgentContractMarkdown } from "./markdown-sections-7OoA7ylx.mjs";
3
- import { F as serializeGeneratedAgentDocument, M as hashGeneratedAgentContent, P as parseGeneratedAgentDocument, j as GENERATED_AGENT_PROVENANCE_VERSION } from "./search-BmC8wVr0.mjs";
3
+ import { a as parseGeneratedAgentDocument, n as GENERATED_AGENT_PROVENANCE_VERSION, o as serializeGeneratedAgentDocument, r as hashGeneratedAgentContent } from "./agent-provenance-D8UBpnMc.mjs";
4
4
  import { createFilesystemDocsMcpSource } from "./mcp.mjs";
5
5
  import { _ as resolveDocsContentDir, a as loadDocsConfigModule, c as loadProjectEnv, d as readNavTitle, f as readNumberProperty, g as resolveDocsConfigPath, h as readTopLevelStringProperty, l as readBooleanProperty, p as readStringProperty, t as extractNestedObjectLiteral, u as readEnvReferenceProperty } from "./config-Wcdj-D0a.mjs";
6
6
  import { createRequire } from "node:module";
@@ -1,5 +1,5 @@
1
+ import { An as normalizeAgentScopeValues, Dn as agentVersionConstraintsOverlap, En as agentVersionConstraintMatches, On as normalizeAgentFramework, Tn as agentVersionConstraintGroupsOverlap, Xt as buildDocsAskAIContext, jn as normalizeAgentVersion, kn as normalizeAgentLocale, ln as normalizeDocsSearchFilters, un as performDocsSearch, vn as resolveSearchRequestConfig } from "./agent-Ba94vwM2.mjs";
1
2
  import { S as upsertPageAgentContractMarkdown, l as stripDocsGeneratedAgentContractMarkers, o as findDocsMarkdownSection } from "./markdown-sections-7OoA7ylx.mjs";
2
- import { C as agentVersionConstraintsOverlap, D as normalizeAgentVersion, E as normalizeAgentScopeValues, S as agentVersionConstraintMatches, T as normalizeAgentLocale, b as resolveSearchRequestConfig, f as normalizeDocsSearchFilters, p as performDocsSearch, t as buildDocsAskAIContext, w as normalizeAgentFramework, x as agentVersionConstraintGroupsOverlap } from "./search-BmC8wVr0.mjs";
3
3
  import { buildDocsMcpContext } from "./mcp.mjs";
4
4
  import { i as validateCodeBlockPlans, n as planCodeBlockTargets, r as resolveDocsCodeBlocksValidateConfig, t as extractCodeBlocksFromMarkdown } from "./code-blocks-DnNVNK2M.mjs";
5
5
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
@@ -1,14 +1,14 @@
1
- import { A as buildDocsAgentDiscoverySpec, Bt as renderDocsSitemapMarkdown, Ht as resolveDocsSitemapConfig, Lt as buildDocsSitemapManifest, S as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, Vt as renderDocsSitemapXml, a as DEFAULT_AGENT_MD_ROUTE, at as renderDocsMarkdownDocument, c as DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, g as DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE, h as DEFAULT_LLMS_FULL_TXT_ROUTE, it as renderDocsLlmsTxt, l as DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, lt as resolveDocsAgentFeedbackConfig, n as DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, o as DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, rt as renderDocsAgentsDocument, st as renderDocsSkillDocument, t as DEFAULT_AGENTS_MD_ROUTE, v as DEFAULT_LLMS_TXT_ROUTE, wt as toDocsMarkdownUrl, x as DEFAULT_SKILL_MD_ROUTE, y as DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE } from "./agent-BHqaZx-X.mjs";
1
+ import { A as buildDocsAgentDiscoverySpec, Ft as renderDocsSitemapXml, It as resolveDocsSitemapConfig, Pt as renderDocsSitemapMarkdown, S as DEFAULT_SKILL_MD_WELL_KNOWN_ROUTE, a as DEFAULT_AGENT_MD_ROUTE, at as renderDocsMarkdownDocument, c as DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE, g as DEFAULT_LLMS_FULL_TXT_WELL_KNOWN_ROUTE, h as DEFAULT_LLMS_FULL_TXT_ROUTE, it as renderDocsLlmsTxt, jt as buildDocsSitemapManifest, l as DEFAULT_AGENT_SPEC_WELL_KNOWN_ROUTE, lt as resolveDocsAgentFeedbackConfig, n as DEFAULT_AGENTS_MD_WELL_KNOWN_ROUTE, o as DEFAULT_AGENT_MD_WELL_KNOWN_ROUTE, rt as renderDocsAgentsDocument, st as renderDocsSkillDocument, t as DEFAULT_AGENTS_MD_ROUTE, v as DEFAULT_LLMS_TXT_ROUTE, wt as toDocsMarkdownUrl, x as DEFAULT_SKILL_MD_ROUTE, y as DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE } from "./agent-Ba94vwM2.mjs";
2
2
  import "./markdown-sections-7OoA7ylx.mjs";
3
- import { A as buildDocsLegacySkillsIndex, D as buildDocsA2AAgentCard, L as resolveDocsPublishedAgentSkill, O as buildDocsAgentSkillsIndex, a as DEFAULT_A2A_AGENT_CARD_ROUTE, b as DEFAULT_LEGACY_SKILLS_INDEX_ROUTE, f as DEFAULT_AGENT_SKILLS_ROUTE_PREFIX, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, x as DEFAULT_LEGACY_SKILLS_ROUTE_PREFIX } from "./standards-discovery-BwL5ffGx.mjs";
4
- import "./search-BmC8wVr0.mjs";
3
+ import { A as buildDocsLegacySkillsIndex, D as buildDocsA2AAgentCard, L as resolveDocsPublishedAgentSkill, O as buildDocsAgentSkillsIndex, a as DEFAULT_A2A_AGENT_CARD_ROUTE, b as DEFAULT_LEGACY_SKILLS_INDEX_ROUTE, f as DEFAULT_AGENT_SKILLS_ROUTE_PREFIX, u as DEFAULT_AGENT_SKILLS_INDEX_ROUTE, x as DEFAULT_LEGACY_SKILLS_ROUTE_PREFIX } from "./standards-discovery-BKlEnK_H.mjs";
4
+ import "./agent-provenance-D8UBpnMc.mjs";
5
5
  import { t as resolveDocsI18n } from "./i18n-hHVWcflJ.mjs";
6
- import { c as renderDocsRobotsGeneratedBlock, f as upsertDocsRobotsGeneratedBlock, i as DOCS_ROBOTS_GENERATED_BLOCK_START, r as DOCS_ROBOTS_GENERATED_BLOCK_END, u as resolveDocsRobotsConfig } from "./robots-DaYBoy_A.mjs";
7
- import "./sitemap-server-B9LZQ1FE.mjs";
8
- import "./agent-evals-21LZ_uEl.mjs";
6
+ import { c as renderDocsRobotsGeneratedBlock, f as upsertDocsRobotsGeneratedBlock, i as DOCS_ROBOTS_GENERATED_BLOCK_START, r as DOCS_ROBOTS_GENERATED_BLOCK_END, u as resolveDocsRobotsConfig } from "./robots-C_v2HK43.mjs";
7
+ import "./sitemap-server-Dgxs9V6S.mjs";
8
+ import "./agent-evals-C8dkgJMN.mjs";
9
9
  import { createFilesystemDocsMcpSource, resolveDocsMcpConfig } from "./mcp.mjs";
10
10
  import "./code-blocks-DnNVNK2M.mjs";
11
- import { t as resolveConfiguredAgentSkills } from "./agent-skills-server-noFn1l_p.mjs";
11
+ import { t as resolveConfiguredAgentSkills } from "./agent-skills-server-B2EXn2QD.mjs";
12
12
  import "./server.mjs";
13
13
  import { _ as resolveDocsContentDir, a as loadDocsConfigModule, d as readNavTitle, g as resolveDocsConfigPath, h as readTopLevelStringProperty, l as readBooleanProperty, m as readTopLevelBooleanProperty, p as readStringProperty, r as extractTopLevelConfigObject, t as extractNestedObjectLiteral } from "./config-Wcdj-D0a.mjs";
14
14
  import { t as detectFramework } from "./utils-DpiIioYb.mjs";
@@ -697,6 +697,7 @@ async function exportAgentBundle(options = {}) {
697
697
  apiRoute: config?.cloud?.apiRoute,
698
698
  apiCatalog: false,
699
699
  search: false,
700
+ contentChanges: false,
700
701
  mcp,
701
702
  feedback,
702
703
  llms,