@openclaw/searxng-plugin 2026.9.7 → 2026.10.1-beta.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.
|
@@ -11,8 +11,7 @@ function normalizeBaseUrl(value) {
|
|
|
11
11
|
return normalizeSecretInput(value)?.replace(/\/+$/u, "") || void 0;
|
|
12
12
|
}
|
|
13
13
|
function resolveSearxngWebSearchConfig(config) {
|
|
14
|
-
|
|
15
|
-
return asOptionalRecord(pluginConfig?.webSearch);
|
|
14
|
+
return asOptionalRecord(config?.plugins?.entries?.searxng?.config?.webSearch);
|
|
16
15
|
}
|
|
17
16
|
function resolveSearxngBaseUrl(config) {
|
|
18
17
|
const webSearch = resolveSearxngWebSearchConfig(config);
|
|
@@ -162,7 +161,7 @@ async function runSearxngSearch(params) {
|
|
|
162
161
|
cached: true
|
|
163
162
|
};
|
|
164
163
|
const startedAt = Date.now();
|
|
165
|
-
|
|
164
|
+
const request = {
|
|
166
165
|
baseUrl,
|
|
167
166
|
query: params.query,
|
|
168
167
|
categories,
|
|
@@ -171,18 +170,13 @@ async function runSearxngSearch(params) {
|
|
|
171
170
|
count,
|
|
172
171
|
endpointMode,
|
|
173
172
|
signal: params.signal
|
|
174
|
-
}
|
|
173
|
+
};
|
|
174
|
+
let results = await fetchSearxngResults(request);
|
|
175
175
|
params.signal?.throwIfAborted();
|
|
176
176
|
if (results.length === 0 && shouldRetryEmptyCategorySearchWithGeneral(categories)) {
|
|
177
177
|
results = await fetchSearxngResults({
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
categories: "general",
|
|
181
|
-
language,
|
|
182
|
-
timeoutSeconds,
|
|
183
|
-
count,
|
|
184
|
-
endpointMode,
|
|
185
|
-
signal: params.signal
|
|
178
|
+
...request,
|
|
179
|
+
categories: "general"
|
|
186
180
|
});
|
|
187
181
|
params.signal?.throwIfAborted();
|
|
188
182
|
}
|
package/dist/.setup/{searxng-search-provider-ChvQoG8W.mjs → searxng-search-provider-BZpmzKiT.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-BOjqvNBi.mjs"));
|
|
7
7
|
const SearxngSearchSchema = {
|
|
8
8
|
type: "object",
|
|
9
9
|
properties: {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSearxngWebSearchProvider } from "./.setup/searxng-search-provider-
|
|
1
|
+
import { t as createSearxngWebSearchProvider } from "./.setup/searxng-search-provider-BZpmzKiT.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 "./.setup/searxng-search-provider-
|
|
1
|
+
import { t as createSearxngWebSearchProvider } from "./.setup/searxng-search-provider-BZpmzKiT.mjs";
|
|
2
2
|
export { createSearxngWebSearchProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/searxng-plugin",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.10.1-beta.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.
|
|
18
|
+
"pluginApi": ">=2026.10.1-beta.1"
|
|
19
19
|
},
|
|
20
20
|
"build": {
|
|
21
|
-
"openclawVersion": "2026.
|
|
21
|
+
"openclawVersion": "2026.10.1-beta.1",
|
|
22
22
|
"bundledDist": false
|
|
23
23
|
},
|
|
24
24
|
"release": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"assets/activity.svg"
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"openclaw": ">=2026.
|
|
44
|
+
"openclaw": ">=2026.10.1-beta.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"openclaw": {
|