@farming-labs/theme 0.1.23 → 0.1.24
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.mjs +8 -2
- package/package.json +2 -2
package/dist/docs-api.mjs
CHANGED
|
@@ -149,7 +149,7 @@ function resolveAgentSpecRequest(url) {
|
|
|
149
149
|
if (url.searchParams.get("agent")?.trim() === "spec") return true;
|
|
150
150
|
return normalizeUrlPath(url.pathname) === DEFAULT_AGENT_SPEC_ROUTE;
|
|
151
151
|
}
|
|
152
|
-
function buildAgentSpec({ origin, entry, mcp, feedback }) {
|
|
152
|
+
function buildAgentSpec({ origin, entry, mcp, feedback, llms }) {
|
|
153
153
|
const normalizedEntry = normalizePathSegment(entry) || "docs";
|
|
154
154
|
return {
|
|
155
155
|
version: "1",
|
|
@@ -171,6 +171,11 @@ function buildAgentSpec({ origin, entry, mcp, feedback }) {
|
|
|
171
171
|
"page markdown"
|
|
172
172
|
]
|
|
173
173
|
},
|
|
174
|
+
llms: {
|
|
175
|
+
enabled: llms.enabled,
|
|
176
|
+
txt: `${DEFAULT_DOCS_API_ROUTE}?format=llms`,
|
|
177
|
+
full: `${DEFAULT_DOCS_API_ROUTE}?format=llms-full`
|
|
178
|
+
},
|
|
174
179
|
mcp: {
|
|
175
180
|
enabled: mcp.enabled,
|
|
176
181
|
endpoint: mcp.route,
|
|
@@ -982,7 +987,8 @@ function createDocsAPI(options) {
|
|
|
982
987
|
origin: url.origin,
|
|
983
988
|
entry,
|
|
984
989
|
mcp: mcpConfig,
|
|
985
|
-
feedback: agentFeedbackConfig
|
|
990
|
+
feedback: agentFeedbackConfig,
|
|
991
|
+
llms: llmsConfig
|
|
986
992
|
}), { headers: {
|
|
987
993
|
"Cache-Control": "public, max-age=0, s-maxage=3600",
|
|
988
994
|
"X-Robots-Tag": "noindex"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/theme",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"tsdown": "^0.20.3",
|
|
134
134
|
"typescript": "^5.9.3",
|
|
135
135
|
"vitest": "^3.2.4",
|
|
136
|
-
"@farming-labs/docs": "0.1.
|
|
136
|
+
"@farming-labs/docs": "0.1.24"
|
|
137
137
|
},
|
|
138
138
|
"peerDependencies": {
|
|
139
139
|
"@farming-labs/docs": ">=0.0.1",
|