@farming-labs/theme 0.2.78 → 0.2.80

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 CHANGED
@@ -3232,7 +3232,7 @@ function createDocsAPI(options) {
3232
3232
  const searchOptions = {
3233
3233
  pages: getIndexes(ctx),
3234
3234
  query: query ?? "",
3235
- search: resolveSearchRequestConfig(searchConfig, request.url),
3235
+ search: resolveSearchRequestConfig(searchConfig, request.url, { localMcp: rawMcpConfig }),
3236
3236
  audience,
3237
3237
  filters,
3238
3238
  locale: ctx.locale,
@@ -3405,6 +3405,7 @@ function createDocsMCPAPI(options = {}) {
3405
3405
  const appDir = getNextAppDir(rootDir);
3406
3406
  const contentDir = options.contentDir ?? path.join(appDir, entry);
3407
3407
  const mcpConfig = options.mcp ?? readMcpConfig(rootDir, { rejectRuntimeSecurity: true });
3408
+ const contentChangeFeed = createDocsContentChangeFeed(options.agent?.contentChanges);
3408
3409
  const navTitle = typeof options.nav?.title === "string" && options.nav.title.trim().length > 0 ? options.nav.title : "Documentation";
3409
3410
  let configuredAgentSkills;
3410
3411
  function getConfiguredAgentSkills() {
@@ -3430,6 +3431,8 @@ function createDocsMCPAPI(options = {}) {
3430
3431
  }
3431
3432
  },
3432
3433
  mcp: mcpConfig,
3434
+ contentChanges: options.agent?.contentChanges,
3435
+ contentChangeFeed,
3433
3436
  search: options.search,
3434
3437
  analytics: options.analytics,
3435
3438
  telemetry: options.telemetry,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.2.78",
3
+ "version": "0.2.80",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -148,7 +148,7 @@
148
148
  "tsdown": "^0.20.3",
149
149
  "typescript": "^5.9.3",
150
150
  "vitest": "^4.1.8",
151
- "@farming-labs/docs": "0.2.78"
151
+ "@farming-labs/docs": "0.2.80"
152
152
  },
153
153
  "peerDependencies": {
154
154
  "@farming-labs/docs": ">=0.0.1",