@openclaw/searxng-plugin 2026.8.1-beta.3 → 2026.8.2
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-BzOxDxM2.js";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
//#region extensions/searxng/index.ts
|
|
4
4
|
var searxng_default = definePluginEntry({
|
|
@@ -14,8 +14,9 @@ function resolveSearxngWebSearchConfig(config) {
|
|
|
14
14
|
if (webSearch && typeof webSearch === "object" && !Array.isArray(webSearch)) return webSearch;
|
|
15
15
|
}
|
|
16
16
|
function resolveSearxngBaseUrl(config) {
|
|
17
|
+
const webSearch = resolveSearxngWebSearchConfig(config);
|
|
17
18
|
const resolved = resolveReadOnlyEnvSecretRef({
|
|
18
|
-
value:
|
|
19
|
+
value: webSearch?.baseUrl,
|
|
19
20
|
path: SEARXNG_BASE_URL_PATH,
|
|
20
21
|
cfg: config,
|
|
21
22
|
expectedEnvId: SEARXNG_BASE_URL_ENV_VAR,
|
|
@@ -145,7 +146,7 @@ async function runSearxngSearch(params) {
|
|
|
145
146
|
const language = params.language ?? resolveSearxngLanguage(params.config);
|
|
146
147
|
const baseUrl = params.baseUrl ?? resolveSearxngBaseUrl(params.config);
|
|
147
148
|
const timeoutSeconds = resolveTimeoutSeconds(params.timeoutSeconds, DEFAULT_TIMEOUT_SECONDS);
|
|
148
|
-
const cacheTtlMs = resolveCacheTtlMs(params.cacheTtlMinutes, DEFAULT_CACHE_TTL_MINUTES);
|
|
149
|
+
const cacheTtlMs = resolveCacheTtlMs(params.cacheTtlMinutes ?? params.config?.tools?.web?.search?.cacheTtlMinutes, DEFAULT_CACHE_TTL_MINUTES);
|
|
149
150
|
if (!baseUrl) throw new Error("SearXNG base URL is not configured. Set SEARXNG_BASE_URL or configure plugins.entries.searxng.config.webSearch.baseUrl.");
|
|
150
151
|
const endpointMode = await validateSearxngBaseUrl(baseUrl);
|
|
151
152
|
params.signal?.throwIfAborted();
|
|
@@ -157,7 +158,7 @@ async function runSearxngSearch(params) {
|
|
|
157
158
|
language: language ?? "",
|
|
158
159
|
baseUrl
|
|
159
160
|
}));
|
|
160
|
-
const cached = readCache(SEARXNG_SEARCH_CACHE, cacheKey);
|
|
161
|
+
const cached = readCache(SEARXNG_SEARCH_CACHE, cacheKey, cacheTtlMs);
|
|
161
162
|
if (cached) return {
|
|
162
163
|
...cached.value,
|
|
163
164
|
cached: true
|
|
@@ -211,7 +212,6 @@ async function runSearxngSearch(params) {
|
|
|
211
212
|
}
|
|
212
213
|
const testing = {
|
|
213
214
|
buildSearxngSearchUrl,
|
|
214
|
-
normalizeSearxngResult,
|
|
215
215
|
parseSearxngResponseText,
|
|
216
216
|
shouldRetryEmptyCategorySearchWithGeneral,
|
|
217
217
|
validateSearxngBaseUrl,
|
|
@@ -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-DDr0hVlo.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-BzOxDxM2.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.
|
|
3
|
+
"version": "2026.8.2",
|
|
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.
|
|
18
|
+
"pluginApi": ">=2026.8.2"
|
|
19
19
|
},
|
|
20
20
|
"build": {
|
|
21
|
-
"openclawVersion": "2026.8.
|
|
21
|
+
"openclawVersion": "2026.8.2",
|
|
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.
|
|
42
|
+
"openclaw": ">=2026.8.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|