@openclaw/duckduckgo-plugin 2026.10.2 → 2026.10.5-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/.setup/{ddg-client-CAo_W486.mjs → ddg-client-CmdSShxb.mjs} +5 -1
- package/dist/.setup/{ddg-search-provider-Db4uz7eE.mjs → ddg-search-provider-CaaNXEq7.mjs} +1 -1
- package/dist/index.js +1 -1
- package/dist/web-search-contract-api.js +1 -1
- package/dist/web-search-provider.js +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import { readPluginPackageVersion } from "openclaw/plugin-sdk/extension-shared";
|
|
1
3
|
import { decodeHtmlEntities } from "openclaw/plugin-sdk/html-entity-runtime";
|
|
2
4
|
import { ProviderHttpError, readProviderTextResponse } from "openclaw/plugin-sdk/provider-http";
|
|
3
5
|
import { DEFAULT_CACHE_TTL_MINUTES, DEFAULT_SEARCH_COUNT, normalizeCacheKey, readCache, readResponseText, resolveCacheTtlMs, resolveSearchCount, resolveSiteName, resolveTimeoutSeconds, withTrustedWebSearchEndpoint, wrapWebContent, writeCache } from "openclaw/plugin-sdk/provider-web-search";
|
|
@@ -18,6 +20,8 @@ function resolveDdgSafeSearch(config) {
|
|
|
18
20
|
}
|
|
19
21
|
//#endregion
|
|
20
22
|
//#region extensions/duckduckgo/src/ddg-client.ts
|
|
23
|
+
const require = createRequire(import.meta.url);
|
|
24
|
+
const DDG_USER_AGENT = `openclaw-duckduckgo/${readPluginPackageVersion({ require })} (+https://docs.openclaw.ai)`;
|
|
21
25
|
const DDG_HTML_ENDPOINT = "https://html.duckduckgo.com/html";
|
|
22
26
|
const DEFAULT_TIMEOUT_SECONDS = 20;
|
|
23
27
|
const DDG_HTML_ENTITY_RE = /&(?:lt|gt|quot|apos|#39|#x27|#x2F|nbsp|ndash|mdash|hellip|amp|#\d+|#x[0-9a-f]+);/gi;
|
|
@@ -111,7 +115,7 @@ async function runDuckDuckGoSearch(params) {
|
|
|
111
115
|
signal: params.signal,
|
|
112
116
|
init: {
|
|
113
117
|
method: "GET",
|
|
114
|
-
headers: { "User-Agent":
|
|
118
|
+
headers: { "User-Agent": DDG_USER_AGENT }
|
|
115
119
|
}
|
|
116
120
|
}, async (response) => {
|
|
117
121
|
if (!response.ok) {
|
|
@@ -2,7 +2,7 @@ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
|
2
2
|
import { readPositiveIntegerParam, readStringParam } from "openclaw/plugin-sdk/param-readers";
|
|
3
3
|
import { createWebSearchProviderContractFields } from "openclaw/plugin-sdk/provider-web-search-contract";
|
|
4
4
|
//#region extensions/duckduckgo/src/ddg-search-provider.ts
|
|
5
|
-
const loadDuckDuckGoClientModule = createLazyRuntimeModule(() => import("./ddg-client-
|
|
5
|
+
const loadDuckDuckGoClientModule = createLazyRuntimeModule(() => import("./ddg-client-CmdSShxb.mjs"));
|
|
6
6
|
const DuckDuckGoSearchSchema = {
|
|
7
7
|
type: "object",
|
|
8
8
|
properties: {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createDuckDuckGoWebSearchProvider } from "./.setup/ddg-search-provider-
|
|
1
|
+
import { t as createDuckDuckGoWebSearchProvider } from "./.setup/ddg-search-provider-CaaNXEq7.mjs";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
//#region extensions/duckduckgo/index.ts
|
|
4
4
|
var duckduckgo_default = definePluginEntry({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createDuckDuckGoWebSearchProvider } from "./.setup/ddg-search-provider-
|
|
1
|
+
import { t as createDuckDuckGoWebSearchProvider } from "./.setup/ddg-search-provider-CaaNXEq7.mjs";
|
|
2
2
|
import "./web-search-provider.js";
|
|
3
3
|
export { createDuckDuckGoWebSearchProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDuckDuckGoWebSearchProvider } from "./.setup/ddg-search-provider-
|
|
1
|
+
import { t as createDuckDuckGoWebSearchProvider } from "./.setup/ddg-search-provider-CaaNXEq7.mjs";
|
|
2
2
|
export { createDuckDuckGoWebSearchProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/duckduckgo-plugin",
|
|
3
|
-
"version": "2026.10.2",
|
|
3
|
+
"version": "2026.10.5-beta.2",
|
|
4
4
|
"description": "OpenClaw DuckDuckGo plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.7.2"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.10.2"
|
|
21
|
+
"pluginApi": ">=2026.10.5-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.10.2",
|
|
24
|
+
"openclawVersion": "2026.10.5-beta.2",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.10.2"
|
|
43
|
+
"openclaw": ">=2026.10.5-beta.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|