@openclaw/searxng-plugin 2026.7.2-beta.5 → 2026.7.33
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.
|
@@ -130,7 +130,6 @@ async function fetchSearxngResults(params) {
|
|
|
130
130
|
return await (params.endpointMode === "selfHosted" ? withSelfHostedWebSearchEndpoint : withTrustedWebSearchEndpoint)({
|
|
131
131
|
url,
|
|
132
132
|
timeoutSeconds: params.timeoutSeconds,
|
|
133
|
-
signal: params.signal,
|
|
134
133
|
init: {
|
|
135
134
|
method: "GET",
|
|
136
135
|
headers: { Accept: "application/json" }
|
|
@@ -146,7 +145,6 @@ async function fetchSearxngResults(params) {
|
|
|
146
145
|
});
|
|
147
146
|
}
|
|
148
147
|
async function runSearxngSearch(params) {
|
|
149
|
-
params.signal?.throwIfAborted();
|
|
150
148
|
const count = resolveSearchCount(params.count, DEFAULT_SEARCH_COUNT);
|
|
151
149
|
const categories = params.categories ?? resolveSearxngCategories(params.config);
|
|
152
150
|
const language = params.language ?? resolveSearxngLanguage(params.config);
|
|
@@ -155,7 +153,6 @@ async function runSearxngSearch(params) {
|
|
|
155
153
|
const cacheTtlMs = resolveCacheTtlMs(params.cacheTtlMinutes, DEFAULT_CACHE_TTL_MINUTES);
|
|
156
154
|
if (!baseUrl) throw new Error("SearXNG base URL is not configured. Set SEARXNG_BASE_URL or configure plugins.entries.searxng.config.webSearch.baseUrl.");
|
|
157
155
|
const endpointMode = await validateSearxngBaseUrl(baseUrl);
|
|
158
|
-
params.signal?.throwIfAborted();
|
|
159
156
|
const cacheKey = normalizeCacheKey(JSON.stringify({
|
|
160
157
|
provider: "searxng",
|
|
161
158
|
query: params.query,
|
|
@@ -177,23 +174,17 @@ async function runSearxngSearch(params) {
|
|
|
177
174
|
language,
|
|
178
175
|
timeoutSeconds,
|
|
179
176
|
count,
|
|
180
|
-
endpointMode
|
|
181
|
-
|
|
177
|
+
endpointMode
|
|
178
|
+
});
|
|
179
|
+
if (results.length === 0 && shouldRetryEmptyCategorySearchWithGeneral(categories)) results = await fetchSearxngResults({
|
|
180
|
+
baseUrl,
|
|
181
|
+
query: params.query,
|
|
182
|
+
categories: "general",
|
|
183
|
+
language,
|
|
184
|
+
timeoutSeconds,
|
|
185
|
+
count,
|
|
186
|
+
endpointMode
|
|
182
187
|
});
|
|
183
|
-
params.signal?.throwIfAborted();
|
|
184
|
-
if (results.length === 0 && shouldRetryEmptyCategorySearchWithGeneral(categories)) {
|
|
185
|
-
results = await fetchSearxngResults({
|
|
186
|
-
baseUrl,
|
|
187
|
-
query: params.query,
|
|
188
|
-
categories: "general",
|
|
189
|
-
language,
|
|
190
|
-
timeoutSeconds,
|
|
191
|
-
count,
|
|
192
|
-
endpointMode,
|
|
193
|
-
signal: params.signal
|
|
194
|
-
});
|
|
195
|
-
params.signal?.throwIfAborted();
|
|
196
|
-
}
|
|
197
188
|
const payload = {
|
|
198
189
|
query: params.query,
|
|
199
190
|
provider: "searxng",
|
package/dist/{searxng-search-provider-XrEYonKx.js → .setup/searxng-search-provider-79wmEWLI.mjs}
RENAMED
|
@@ -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-BE684iP6.mjs"));
|
|
7
7
|
const SearxngSearchSchema = {
|
|
8
8
|
type: "object",
|
|
9
9
|
properties: {
|
|
@@ -57,7 +57,7 @@ function createSearxngWebSearchProvider() {
|
|
|
57
57
|
createTool: (ctx) => ({
|
|
58
58
|
description: "Search the web using a self-hosted SearXNG instance. Returns titles, URLs, and snippets.",
|
|
59
59
|
parameters: SearxngSearchSchema,
|
|
60
|
-
execute: async (args
|
|
60
|
+
execute: async (args) => {
|
|
61
61
|
const { runSearxngSearch } = await loadSearxngClientModule();
|
|
62
62
|
return await runSearxngSearch({
|
|
63
63
|
config: ctx.config,
|
|
@@ -67,8 +67,7 @@ function createSearxngWebSearchProvider() {
|
|
|
67
67
|
message: "count must be an integer from 1 to 10."
|
|
68
68
|
}),
|
|
69
69
|
categories: readStringParam(args, "categories"),
|
|
70
|
-
language: readStringParam(args, "language")
|
|
71
|
-
signal: context?.signal
|
|
70
|
+
language: readStringParam(args, "language")
|
|
72
71
|
});
|
|
73
72
|
}
|
|
74
73
|
})
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSearxngWebSearchProvider } from "
|
|
1
|
+
import { t as createSearxngWebSearchProvider } from "./.setup/searxng-search-provider-79wmEWLI.mjs";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
//#region extensions/searxng/index.ts
|
|
4
4
|
var searxng_default = definePluginEntry({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createSearxngWebSearchProvider } from "
|
|
1
|
+
import { t as createSearxngWebSearchProvider } from "./.setup/searxng-search-provider-79wmEWLI.mjs";
|
|
2
2
|
export { createSearxngWebSearchProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/searxng-plugin",
|
|
3
|
-
"version": "2026.7.
|
|
3
|
+
"version": "2026.7.33",
|
|
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.7.
|
|
18
|
+
"pluginApi": ">=2026.7.33"
|
|
19
19
|
},
|
|
20
20
|
"build": {
|
|
21
|
-
"openclawVersion": "2026.7.
|
|
21
|
+
"openclawVersion": "2026.7.33",
|
|
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.7.
|
|
42
|
+
"openclaw": ">=2026.7.33"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|