@openclaw/searxng-plugin 2026.7.2-beta.7 → 2026.8.1-beta.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-flWVWKim.js";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
//#region extensions/searxng/index.ts
|
|
4
4
|
var searxng_default = definePluginEntry({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_CACHE_TTL_MINUTES, DEFAULT_SEARCH_COUNT, normalizeCacheKey, readCache, readResponseText, resolveCacheTtlMs, resolveSearchCount, resolveSiteName, resolveTimeoutSeconds, withSelfHostedWebSearchEndpoint, withTrustedWebSearchEndpoint, wrapWebContent, writeCache } from "openclaw/plugin-sdk/provider-web-search";
|
|
2
2
|
import { assertHttpUrlTargetsPrivateNetwork, isBlockedHostnameOrIp, isPrivateIpAddress, resolvePinnedHostnameWithPolicy } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
3
3
|
import { normalizeResolvedSecretInputString, normalizeSecretInput } from "openclaw/plugin-sdk/secret-input";
|
|
4
|
+
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
5
|
//#region extensions/searxng/src/config.ts
|
|
5
6
|
function normalizeConfiguredString(value, path) {
|
|
6
7
|
try {
|
|
@@ -18,10 +19,6 @@ function readInlineEnvSecretRefValue(value, env) {
|
|
|
18
19
|
if (record.source !== "env" || typeof record.id !== "string") return;
|
|
19
20
|
return normalizeSecretInput(env[record.id]);
|
|
20
21
|
}
|
|
21
|
-
function normalizeTrimmedString(value) {
|
|
22
|
-
if (typeof value !== "string") return;
|
|
23
|
-
return value.trim() || void 0;
|
|
24
|
-
}
|
|
25
22
|
function normalizeBaseUrl(value) {
|
|
26
23
|
return value?.replace(/\/+$/u, "") || void 0;
|
|
27
24
|
}
|
|
@@ -34,10 +31,10 @@ function resolveSearxngBaseUrl(config, env = process.env) {
|
|
|
34
31
|
return normalizeBaseUrl(normalizeConfiguredString(webSearch?.baseUrl, "plugins.entries.searxng.config.webSearch.baseUrl")) ?? normalizeBaseUrl(readInlineEnvSecretRefValue(webSearch?.baseUrl, env)) ?? normalizeBaseUrl(normalizeSecretInput(env.SEARXNG_BASE_URL));
|
|
35
32
|
}
|
|
36
33
|
function resolveSearxngCategories(config) {
|
|
37
|
-
return
|
|
34
|
+
return normalizeOptionalString(resolveSearxngWebSearchConfig(config)?.categories);
|
|
38
35
|
}
|
|
39
36
|
function resolveSearxngLanguage(config) {
|
|
40
|
-
return
|
|
37
|
+
return normalizeOptionalString(resolveSearxngWebSearchConfig(config)?.language);
|
|
41
38
|
}
|
|
42
39
|
//#endregion
|
|
43
40
|
//#region extensions/searxng/src/searxng-client.ts
|
|
@@ -226,4 +223,4 @@ const testing = {
|
|
|
226
223
|
SEARXNG_SEARCH_CACHE
|
|
227
224
|
};
|
|
228
225
|
//#endregion
|
|
229
|
-
export {
|
|
226
|
+
export { runSearxngSearch, testing };
|
|
@@ -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-Jzcrezie.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-flWVWKim.js";
|
|
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.8.1-beta.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.
|
|
18
|
+
"pluginApi": ">=2026.8.1-beta.2"
|
|
19
19
|
},
|
|
20
20
|
"build": {
|
|
21
|
-
"openclawVersion": "2026.
|
|
21
|
+
"openclawVersion": "2026.8.1-beta.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.
|
|
42
|
+
"openclaw": ">=2026.8.1-beta.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|