@openclaw/searxng-plugin 2026.8.1-beta.2 → 2026.8.1-beta.3
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-DRnBkbzG.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,34 +1,29 @@
|
|
|
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
|
-
import {
|
|
3
|
+
import { normalizeSecretInput } from "openclaw/plugin-sdk/secret-input";
|
|
4
|
+
import { resolveReadOnlyEnvSecretRef } from "openclaw/plugin-sdk/secret-ref-readonly";
|
|
4
5
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
6
|
//#region extensions/searxng/src/config.ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return normalizeSecretInput(normalizeResolvedSecretInputString({
|
|
9
|
-
value,
|
|
10
|
-
path
|
|
11
|
-
}));
|
|
12
|
-
} catch {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
function readInlineEnvSecretRefValue(value, env) {
|
|
17
|
-
if (!value || typeof value !== "object" || Array.isArray(value)) return;
|
|
18
|
-
const record = value;
|
|
19
|
-
if (record.source !== "env" || typeof record.id !== "string") return;
|
|
20
|
-
return normalizeSecretInput(env[record.id]);
|
|
21
|
-
}
|
|
7
|
+
const SEARXNG_BASE_URL_ENV_VAR = "SEARXNG_BASE_URL";
|
|
8
|
+
const SEARXNG_BASE_URL_PATH = "plugins.entries.searxng.config.webSearch.baseUrl";
|
|
22
9
|
function normalizeBaseUrl(value) {
|
|
23
|
-
return value?.replace(/\/+$/u, "") || void 0;
|
|
10
|
+
return normalizeSecretInput(value)?.replace(/\/+$/u, "") || void 0;
|
|
24
11
|
}
|
|
25
12
|
function resolveSearxngWebSearchConfig(config) {
|
|
26
13
|
const webSearch = (config?.plugins?.entries?.searxng?.config)?.webSearch;
|
|
27
14
|
if (webSearch && typeof webSearch === "object" && !Array.isArray(webSearch)) return webSearch;
|
|
28
15
|
}
|
|
29
|
-
function resolveSearxngBaseUrl(config
|
|
30
|
-
const
|
|
31
|
-
|
|
16
|
+
function resolveSearxngBaseUrl(config) {
|
|
17
|
+
const resolved = resolveReadOnlyEnvSecretRef({
|
|
18
|
+
value: resolveSearxngWebSearchConfig(config)?.baseUrl,
|
|
19
|
+
path: SEARXNG_BASE_URL_PATH,
|
|
20
|
+
cfg: config,
|
|
21
|
+
expectedEnvId: SEARXNG_BASE_URL_ENV_VAR,
|
|
22
|
+
normalizeValue: normalizeBaseUrl
|
|
23
|
+
});
|
|
24
|
+
if (resolved.status === "available") return resolved.value;
|
|
25
|
+
if (resolved.status === "blocked") return;
|
|
26
|
+
return normalizeBaseUrl(process.env[SEARXNG_BASE_URL_ENV_VAR]);
|
|
32
27
|
}
|
|
33
28
|
function resolveSearxngCategories(config) {
|
|
34
29
|
return normalizeOptionalString(resolveSearxngWebSearchConfig(config)?.categories);
|
|
@@ -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-Cjsi1eHI.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-DRnBkbzG.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-beta.
|
|
3
|
+
"version": "2026.8.1-beta.3",
|
|
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-beta.
|
|
18
|
+
"pluginApi": ">=2026.8.1-beta.3"
|
|
19
19
|
},
|
|
20
20
|
"build": {
|
|
21
|
-
"openclawVersion": "2026.8.1-beta.
|
|
21
|
+
"openclawVersion": "2026.8.1-beta.3",
|
|
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-beta.
|
|
42
|
+
"openclaw": ">=2026.8.1-beta.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|