@openclaw/searxng-plugin 2026.8.1-beta.3 → 2026.8.1
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/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSearxngWebSearchProvider } from "./searxng-search-provider-
|
|
1
|
+
import { t as createSearxngWebSearchProvider } from "./searxng-search-provider-3BaWt5Yf.js";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
//#region extensions/searxng/index.ts
|
|
4
4
|
var searxng_default = definePluginEntry({
|
|
@@ -145,7 +145,7 @@ async function runSearxngSearch(params) {
|
|
|
145
145
|
const language = params.language ?? resolveSearxngLanguage(params.config);
|
|
146
146
|
const baseUrl = params.baseUrl ?? resolveSearxngBaseUrl(params.config);
|
|
147
147
|
const timeoutSeconds = resolveTimeoutSeconds(params.timeoutSeconds, DEFAULT_TIMEOUT_SECONDS);
|
|
148
|
-
const cacheTtlMs = resolveCacheTtlMs(params.cacheTtlMinutes, DEFAULT_CACHE_TTL_MINUTES);
|
|
148
|
+
const cacheTtlMs = resolveCacheTtlMs(params.cacheTtlMinutes ?? params.config?.tools?.web?.search?.cacheTtlMinutes, DEFAULT_CACHE_TTL_MINUTES);
|
|
149
149
|
if (!baseUrl) throw new Error("SearXNG base URL is not configured. Set SEARXNG_BASE_URL or configure plugins.entries.searxng.config.webSearch.baseUrl.");
|
|
150
150
|
const endpointMode = await validateSearxngBaseUrl(baseUrl);
|
|
151
151
|
params.signal?.throwIfAborted();
|
|
@@ -157,7 +157,7 @@ async function runSearxngSearch(params) {
|
|
|
157
157
|
language: language ?? "",
|
|
158
158
|
baseUrl
|
|
159
159
|
}));
|
|
160
|
-
const cached = readCache(SEARXNG_SEARCH_CACHE, cacheKey);
|
|
160
|
+
const cached = readCache(SEARXNG_SEARCH_CACHE, cacheKey, cacheTtlMs);
|
|
161
161
|
if (cached) return {
|
|
162
162
|
...cached.value,
|
|
163
163
|
cached: true
|
|
@@ -3,7 +3,7 @@ import { readPositiveIntegerParam, readStringParam } from "openclaw/plugin-sdk/p
|
|
|
3
3
|
import { createWebSearchProviderContractFields } from "openclaw/plugin-sdk/provider-web-search-contract";
|
|
4
4
|
//#region extensions/searxng/src/searxng-search-provider.ts
|
|
5
5
|
const SEARXNG_CREDENTIAL_PATH = "plugins.entries.searxng.config.webSearch.baseUrl";
|
|
6
|
-
const loadSearxngClientModule = createLazyRuntimeModule(() => import("./searxng-client-
|
|
6
|
+
const loadSearxngClientModule = createLazyRuntimeModule(() => import("./searxng-client-uWld8Y2f.js"));
|
|
7
7
|
const SearxngSearchSchema = {
|
|
8
8
|
type: "object",
|
|
9
9
|
properties: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createSearxngWebSearchProvider } from "./searxng-search-provider-
|
|
1
|
+
import { t as createSearxngWebSearchProvider } from "./searxng-search-provider-3BaWt5Yf.js";
|
|
2
2
|
export { createSearxngWebSearchProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/searxng-plugin",
|
|
3
|
-
"version": "2026.8.1
|
|
3
|
+
"version": "2026.8.1",
|
|
4
4
|
"description": "OpenClaw SearXNG plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"openclaw": {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"allowInvalidConfigRecovery": true
|
|
16
16
|
},
|
|
17
17
|
"compat": {
|
|
18
|
-
"pluginApi": ">=2026.8.1
|
|
18
|
+
"pluginApi": ">=2026.8.1"
|
|
19
19
|
},
|
|
20
20
|
"build": {
|
|
21
|
-
"openclawVersion": "2026.8.1
|
|
21
|
+
"openclawVersion": "2026.8.1",
|
|
22
22
|
"bundledDist": false
|
|
23
23
|
},
|
|
24
24
|
"release": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"openclaw": ">=2026.8.1
|
|
42
|
+
"openclaw": ">=2026.8.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|