@farming-labs/docs 0.2.62 → 0.2.64

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 (58) hide show
  1. package/dist/agent-CQTH7NFu.mjs +624 -0
  2. package/dist/agent-DKKptIgy.mjs +4365 -0
  3. package/dist/agent-evals-B7MIxuEX.mjs +2144 -0
  4. package/dist/agent-export-CBgWgPvH.mjs +910 -0
  5. package/dist/agent-scope-C_U--OZ7.mjs +283 -0
  6. package/dist/agent-skills-bundle.d.mts +13 -0
  7. package/dist/agent-skills-bundle.mjs +12 -0
  8. package/dist/agent-skills-server-CPja6Syt.d.mts +14 -0
  9. package/dist/agent-skills-server-DraIb6FV.mjs +415 -0
  10. package/dist/agent-skills-vite.d.mts +31 -0
  11. package/dist/agent-skills-vite.mjs +70 -0
  12. package/dist/agents-XWZBub6f.mjs +221 -0
  13. package/dist/analytics-Bx44lg6d.mjs +177 -0
  14. package/dist/cli/index.d.mts +15 -0
  15. package/dist/cli/index.mjs +452 -0
  16. package/dist/client/react.d.mts +45 -0
  17. package/dist/client/react.mjs +223 -0
  18. package/dist/cloud-analytics-CSyFE6SS.mjs +132 -0
  19. package/dist/cloud-ask-ai-sbpjOR2K.mjs +382 -0
  20. package/dist/cloud-ask-ai-zpwkdwnF.d.mts +23 -0
  21. package/dist/cloud-pdNC-tyj.mjs +1615 -0
  22. package/dist/code-blocks-DnNVNK2M.mjs +871 -0
  23. package/dist/codeblocks-CFuurVIH.mjs +250 -0
  24. package/dist/config-Wcdj-D0a.mjs +369 -0
  25. package/dist/dev-Cmy6DtdF.mjs +1333 -0
  26. package/dist/docs-cloud-server.d.mts +70 -0
  27. package/dist/docs-cloud-server.mjs +310 -0
  28. package/dist/doctor-DtGYZ41i.mjs +2036 -0
  29. package/dist/downgrade-w7e6Se0L.mjs +184 -0
  30. package/dist/errors-DbOhkE1h.mjs +20 -0
  31. package/dist/golden-evaluations-Dj-9Eo3v.mjs +1785 -0
  32. package/dist/i18n-CCaFUnAN.mjs +40 -0
  33. package/dist/index.d.mts +1150 -0
  34. package/dist/index.mjs +10 -0
  35. package/dist/init-CQY0Woe3.mjs +1264 -0
  36. package/dist/mcp-B9dcsivk.mjs +156 -0
  37. package/dist/mcp.d.mts +298 -0
  38. package/dist/mcp.mjs +4430 -0
  39. package/dist/metadata-DWExHQnx.mjs +237 -0
  40. package/dist/package-version-n5AFur8a.mjs +128 -0
  41. package/dist/reading-time-CYZ5VvKU.mjs +742 -0
  42. package/dist/review-CLoHTywU.mjs +673 -0
  43. package/dist/robots-BIpC4j4P.mjs +201 -0
  44. package/dist/robots-CUTahhoY.mjs +179 -0
  45. package/dist/search-B6V6qtiI.mjs +1826 -0
  46. package/dist/search-CaSyi6H6.d.mts +279 -0
  47. package/dist/search-DSjCeOk7.mjs +104 -0
  48. package/dist/server.d.mts +343 -0
  49. package/dist/server.mjs +14 -0
  50. package/dist/sitemap-Cykpe3Tz.mjs +249 -0
  51. package/dist/sitemap-server-C_6Wes83.mjs +1137 -0
  52. package/dist/standards-discovery-C4HUqMd2.d.mts +227 -0
  53. package/dist/standards-discovery-jkykaXq1.mjs +519 -0
  54. package/dist/templates-Bq_P7ctv.mjs +2465 -0
  55. package/dist/types-lMBIdZg0.d.mts +3315 -0
  56. package/dist/upgrade-oz-GChgt.mjs +56 -0
  57. package/dist/utils-DpiIioYb.mjs +225 -0
  58. package/package.json +1 -1
@@ -0,0 +1,227 @@
1
+ //#region src/standards-discovery.d.ts
2
+ declare const DEFAULT_API_CATALOG_ROUTE = "/.well-known/api-catalog";
3
+ declare const DEFAULT_API_CATALOG_FORMAT = "api-catalog";
4
+ declare const API_CATALOG_PROFILE_URI = "https://www.rfc-editor.org/info/rfc9727";
5
+ declare const API_CATALOG_MEDIA_TYPE = "application/linkset+json";
6
+ declare const DEFAULT_AGENT_SKILLS_INDEX_ROUTE = "/.well-known/agent-skills/index.json";
7
+ declare const DEFAULT_AGENT_SKILLS_ROUTE_PREFIX = "/.well-known/agent-skills";
8
+ declare const DEFAULT_AGENT_SKILLS_ROUTE_PATTERN = "/.well-known/agent-skills/{name}/SKILL.md";
9
+ declare const DEFAULT_AGENT_SKILLS_ARCHIVE_ROUTE_PATTERN = "/.well-known/agent-skills/{name}.tar.gz";
10
+ declare const DEFAULT_AGENT_SKILLS_INDEX_FORMAT = "agent-skills";
11
+ declare const DEFAULT_AGENT_SKILL_FORMAT = "agent-skill";
12
+ declare const DEFAULT_AGENT_SKILL_ARCHIVE_FORMAT = "agent-skill-archive";
13
+ declare const DEFAULT_AGENT_SKILL_FILE_FORMAT = "agent-skill-file";
14
+ declare const DEFAULT_AGENT_SKILL_RESOURCE_FORMAT = "agent-skill-resource";
15
+ declare const DEFAULT_LEGACY_SKILLS_INDEX_ROUTE = "/.well-known/skills/index.json";
16
+ declare const DEFAULT_LEGACY_SKILLS_INDEX_FORMAT = "legacy-skills";
17
+ declare const DEFAULT_LEGACY_SKILLS_ROUTE_PREFIX = "/.well-known/skills";
18
+ declare const DEFAULT_A2A_AGENT_CARD_ROUTE = "/.well-known/agent-card.json";
19
+ declare const DEFAULT_A2A_AGENT_CARD_FORMAT = "agent-card";
20
+ declare const AGENT_SKILLS_DISCOVERY_SCHEMA_URI = "https://schemas.agentskills.io/discovery/0.2.0/schema.json";
21
+ interface DocsAgentSkillIndexEntry {
22
+ name: string;
23
+ type: "skill-md" | "archive";
24
+ description: string;
25
+ url: string;
26
+ digest: `sha256:${string}`;
27
+ }
28
+ interface DocsAgentSkillsIndex {
29
+ $schema: typeof AGENT_SKILLS_DISCOVERY_SCHEMA_URI;
30
+ skills: DocsAgentSkillIndexEntry[];
31
+ }
32
+ interface DocsPublishedAgentSkill extends DocsAgentSkillIndexEntry {
33
+ /** Exact bytes served from the indexed artifact URL. */
34
+ content: string | Uint8Array;
35
+ sha256: string;
36
+ /** Parsed SKILL.md text, including when `content` is an archive. */
37
+ skillDocument: string;
38
+ /** Safe files available for progressive disclosure and MCP resources. */
39
+ files: DocsPublishedAgentSkillFile[];
40
+ }
41
+ interface DocsPublishedAgentSkillFile {
42
+ path: string;
43
+ url: string;
44
+ mediaType: string;
45
+ content: string | Uint8Array;
46
+ sha256: string;
47
+ digest: `sha256:${string}`;
48
+ /** Preserve source executability in portable archives without granting it to every script. */
49
+ executable?: boolean;
50
+ }
51
+ interface DocsLegacySkillsIndex {
52
+ skills: Array<{
53
+ name: string;
54
+ description: string;
55
+ files: string[];
56
+ }>;
57
+ }
58
+ interface DocsA2AAgentCardOptions {
59
+ /** URL of a real A2A interface. Merely exposing docs or MCP is not sufficient. */
60
+ interfaceUrl: string;
61
+ name: string;
62
+ description: string;
63
+ documentationUrl: string;
64
+ provider: {
65
+ organization: string;
66
+ url: string;
67
+ };
68
+ version?: string;
69
+ protocolVersion?: string;
70
+ protocolBinding?: string;
71
+ }
72
+ interface DocsA2AAgentCard {
73
+ protocolVersion: string;
74
+ preferredTransport: string;
75
+ supportedInterfaces: Array<{
76
+ url: string;
77
+ protocolBinding: string;
78
+ protocolVersion: string;
79
+ }>;
80
+ name: string;
81
+ description: string;
82
+ url: string;
83
+ provider: {
84
+ organization: string;
85
+ url: string;
86
+ };
87
+ version: string;
88
+ documentationUrl: string;
89
+ capabilities: {
90
+ streaming: false;
91
+ pushNotifications: false;
92
+ };
93
+ defaultInputModes: ["text/plain"];
94
+ defaultOutputModes: ["text/plain"];
95
+ skills: Array<{
96
+ id: string;
97
+ name: string;
98
+ description: string;
99
+ tags: string[];
100
+ examples: string[];
101
+ url: string;
102
+ }>;
103
+ }
104
+ interface DocsPublishedAgentSkillOptions {
105
+ preferredDocument?: string | null;
106
+ fallbackDocument: string;
107
+ }
108
+ interface DocsApiCatalogLinkTarget {
109
+ href: string;
110
+ type?: string;
111
+ title?: string;
112
+ }
113
+ interface DocsApiCatalogLinkContext {
114
+ anchor: string;
115
+ item?: DocsApiCatalogLinkTarget[];
116
+ "api-catalog"?: DocsApiCatalogLinkTarget[];
117
+ "service-desc"?: DocsApiCatalogLinkTarget[];
118
+ "service-doc"?: DocsApiCatalogLinkTarget[];
119
+ "service-meta"?: DocsApiCatalogLinkTarget[];
120
+ }
121
+ interface DocsApiCatalog {
122
+ linkset: DocsApiCatalogLinkContext[];
123
+ }
124
+ interface DocsApiCatalogOptions {
125
+ origin: string;
126
+ docsRoute?: string;
127
+ apiRoute?: string | null;
128
+ /** Additional HTTP API endpoints to list as RFC 9727 `item` links. */
129
+ apiRoutes?: readonly {
130
+ route: string;
131
+ type?: string;
132
+ title?: string;
133
+ }[];
134
+ configRoute?: string | null;
135
+ diagnosticsRoute?: string | null;
136
+ agentManifestRoute?: string | null;
137
+ agentSkillsIndexRoute?: string | null;
138
+ legacySkillsIndexRoute?: string | null;
139
+ agentCardRoute?: string | null;
140
+ agentsRoute?: string | null;
141
+ skillRoute?: string | null;
142
+ markdownRootRoute?: string | null;
143
+ llmsRoutes?: readonly string[];
144
+ sitemapRoutes?: readonly string[];
145
+ robotsRoute?: string | null;
146
+ mcpRoute?: string | null;
147
+ protectedResourceMetadataRoutes?: readonly string[];
148
+ feedbackRoutes?: readonly string[];
149
+ openapiRoute?: string | null;
150
+ apiReferenceRoute?: string | null;
151
+ }
152
+ type DocsStandardsDiscoveryRequest = {
153
+ kind: "api-catalog";
154
+ } | {
155
+ kind: "agent-skills-index";
156
+ } | {
157
+ kind: "legacy-skills-index";
158
+ } | {
159
+ kind: "agent-card";
160
+ } | {
161
+ kind: "agent-skill";
162
+ name: string;
163
+ } | {
164
+ kind: "agent-skill-archive";
165
+ name: string;
166
+ } | {
167
+ kind: "agent-skill-file";
168
+ name: string;
169
+ path: string;
170
+ };
171
+ interface DocsDiscoveryApiRouteOptions {
172
+ /** Same-origin Docs API pathname used by query-form discovery. @default "/api/docs" */
173
+ apiRoute?: string;
174
+ }
175
+ interface DocsStandardsDiscoveryRouteOptions extends DocsDiscoveryApiRouteOptions {}
176
+ interface CreateDocsStandardsResponseOptions {
177
+ request: Request;
178
+ apiCatalog?: DocsApiCatalog;
179
+ /** Whether the RFC 9727 catalog is exposed. Defaults to true. */
180
+ apiCatalogEnabled?: boolean;
181
+ /** Internal docs API route used for query-form forwarding. */
182
+ apiRoute?: string;
183
+ preferredSkillDocument?: string | null;
184
+ fallbackSkillDocument: string;
185
+ /** Additional validated project skills. The legacy root/fallback skill remains first. */
186
+ publishedSkills?: readonly DocsPublishedAgentSkill[];
187
+ /** Identity used to publish the optional A2A Agent Card. */
188
+ agentCard?: DocsA2AAgentCardOptions;
189
+ }
190
+ /** Resolve the same-origin Docs API pathname used by query-form discovery routes. */
191
+ declare function resolveDocsDiscoveryApiRoute(apiRoute?: string): string;
192
+ /** Build an RFC 9727 API Catalog using the RFC 9264 JSON Linkset representation. */
193
+ declare function buildDocsApiCatalog(options: DocsApiCatalogOptions): DocsApiCatalog;
194
+ declare function sha256DocsDiscoveryContent(content: string | Uint8Array): Promise<string>;
195
+ /** Select a valid public skill and hash the exact bytes returned by its standards route. */
196
+ declare function resolveDocsPublishedAgentSkill({
197
+ preferredDocument,
198
+ fallbackDocument
199
+ }: DocsPublishedAgentSkillOptions): Promise<DocsPublishedAgentSkill>;
200
+ declare function buildDocsAgentSkillsIndex(skills: DocsPublishedAgentSkill | readonly DocsPublishedAgentSkill[]): DocsAgentSkillsIndex;
201
+ /** Build the compatibility index used by older Agent Skills clients. */
202
+ declare function buildDocsLegacySkillsIndex(skills: DocsPublishedAgentSkill | readonly DocsPublishedAgentSkill[]): DocsLegacySkillsIndex;
203
+ /** Build an A2A Agent Card only when a real A2A interface is explicitly configured. */
204
+ declare function buildDocsA2AAgentCard(options: DocsA2AAgentCardOptions, skills: DocsPublishedAgentSkill | readonly DocsPublishedAgentSkill[]): DocsA2AAgentCard;
205
+ declare function resolveDocsStandardsDiscoveryRequest(url: URL, options?: DocsStandardsDiscoveryRouteOptions): DocsStandardsDiscoveryRequest | null;
206
+ declare function isDocsStandardsDiscoveryRequest(url: URL, options?: DocsStandardsDiscoveryRouteOptions): boolean;
207
+ /** Cross-link the standards endpoints without replacing an existing canonical Link value. */
208
+ declare function getDocsDiscoveryLinkHeader(options?: {
209
+ includeApiCatalog?: boolean;
210
+ includeManifest?: boolean;
211
+ includeSkills?: boolean;
212
+ includeAgentCard?: boolean;
213
+ }): string;
214
+ declare function appendDocsDiscoveryLinkHeader(headers: Headers, value?: string): Headers;
215
+ /** Return one RFC 9727 or Agent Skills discovery response, or null for unrelated requests. */
216
+ declare function createDocsStandardsResponse({
217
+ request,
218
+ apiCatalog,
219
+ apiCatalogEnabled,
220
+ apiRoute,
221
+ preferredSkillDocument,
222
+ fallbackSkillDocument,
223
+ publishedSkills,
224
+ agentCard
225
+ }: CreateDocsStandardsResponseOptions): Promise<Response | null>;
226
+ //#endregion
227
+ export { DocsPublishedAgentSkill as A, createDocsStandardsResponse as B, DocsAgentSkillIndexEntry as C, DocsApiCatalogLinkTarget as D, DocsApiCatalogLinkContext as E, appendDocsDiscoveryLinkHeader as F, resolveDocsStandardsDiscoveryRequest as G, isDocsStandardsDiscoveryRequest as H, buildDocsA2AAgentCard as I, sha256DocsDiscoveryContent as K, buildDocsAgentSkillsIndex as L, DocsPublishedAgentSkillOptions as M, DocsStandardsDiscoveryRequest as N, DocsApiCatalogOptions as O, DocsStandardsDiscoveryRouteOptions as P, buildDocsApiCatalog as R, DocsA2AAgentCardOptions as S, DocsApiCatalog as T, resolveDocsDiscoveryApiRoute as U, getDocsDiscoveryLinkHeader as V, resolveDocsPublishedAgentSkill as W, DEFAULT_API_CATALOG_ROUTE as _, DEFAULT_A2A_AGENT_CARD_FORMAT as a, DEFAULT_LEGACY_SKILLS_ROUTE_PREFIX as b, DEFAULT_AGENT_SKILLS_INDEX_FORMAT as c, DEFAULT_AGENT_SKILLS_ROUTE_PREFIX as d, DEFAULT_AGENT_SKILL_ARCHIVE_FORMAT as f, DEFAULT_API_CATALOG_FORMAT as g, DEFAULT_AGENT_SKILL_RESOURCE_FORMAT as h, CreateDocsStandardsResponseOptions as i, DocsPublishedAgentSkillFile as j, DocsDiscoveryApiRouteOptions as k, DEFAULT_AGENT_SKILLS_INDEX_ROUTE as l, DEFAULT_AGENT_SKILL_FORMAT as m, API_CATALOG_MEDIA_TYPE as n, DEFAULT_A2A_AGENT_CARD_ROUTE as o, DEFAULT_AGENT_SKILL_FILE_FORMAT as p, API_CATALOG_PROFILE_URI as r, DEFAULT_AGENT_SKILLS_ARCHIVE_ROUTE_PATTERN as s, AGENT_SKILLS_DISCOVERY_SCHEMA_URI as t, DEFAULT_AGENT_SKILLS_ROUTE_PATTERN as u, DEFAULT_LEGACY_SKILLS_INDEX_FORMAT as v, DocsAgentSkillsIndex as w, DocsA2AAgentCard as x, DEFAULT_LEGACY_SKILLS_INDEX_ROUTE as y, buildDocsLegacySkillsIndex as z };