@openclaw/duckduckgo-plugin 2026.9.8 → 2026.10.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/.setup/{ddg-client-BGCnzqUb.mjs → ddg-client-CAo_W486.mjs} +1 -2
- package/dist/.setup/{ddg-search-provider-CuJUFuao.mjs → ddg-search-provider-Db4uz7eE.mjs} +20 -28
- 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
|
@@ -5,8 +5,7 @@ import { asOptionalRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalStr
|
|
|
5
5
|
//#region extensions/duckduckgo/src/config.ts
|
|
6
6
|
const DEFAULT_DDG_SAFE_SEARCH = "moderate";
|
|
7
7
|
function resolveDdgWebSearchConfig(config) {
|
|
8
|
-
|
|
9
|
-
return asOptionalRecord(pluginConfig?.webSearch);
|
|
8
|
+
return asOptionalRecord(config?.plugins?.entries?.duckduckgo?.config?.webSearch);
|
|
10
9
|
}
|
|
11
10
|
function resolveDdgRegion(config) {
|
|
12
11
|
return normalizeOptionalString(resolveDdgWebSearchConfig(config)?.region);
|
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
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
|
-
//#region extensions/duckduckgo/src/ddg-search-provider.shared.ts
|
|
5
|
-
const DUCKDUCKGO_ONBOARDING_SCOPES = ["text-inference"];
|
|
6
|
-
function createDuckDuckGoWebSearchProviderBase() {
|
|
7
|
-
return {
|
|
8
|
-
id: "duckduckgo",
|
|
9
|
-
label: "DuckDuckGo Search (experimental)",
|
|
10
|
-
hint: "Free web search fallback with no API key required",
|
|
11
|
-
onboardingScopes: [...DUCKDUCKGO_ONBOARDING_SCOPES],
|
|
12
|
-
requiresCredential: false,
|
|
13
|
-
envVars: [],
|
|
14
|
-
placeholder: "(no key needed)",
|
|
15
|
-
signupUrl: "https://duckduckgo.com/",
|
|
16
|
-
docsUrl: "https://docs.openclaw.ai/tools/web",
|
|
17
|
-
autoDetectOrder: 100,
|
|
18
|
-
credentialPath: "",
|
|
19
|
-
...createWebSearchProviderContractFields({
|
|
20
|
-
credentialPath: "",
|
|
21
|
-
searchCredential: {
|
|
22
|
-
type: "scoped",
|
|
23
|
-
scopeId: "duckduckgo"
|
|
24
|
-
},
|
|
25
|
-
selectionPluginId: "duckduckgo"
|
|
26
|
-
})
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
4
|
//#region extensions/duckduckgo/src/ddg-search-provider.ts
|
|
31
|
-
const loadDuckDuckGoClientModule = createLazyRuntimeModule(() => import("./ddg-client-
|
|
5
|
+
const loadDuckDuckGoClientModule = createLazyRuntimeModule(() => import("./ddg-client-CAo_W486.mjs"));
|
|
32
6
|
const DuckDuckGoSearchSchema = {
|
|
33
7
|
type: "object",
|
|
34
8
|
properties: {
|
|
@@ -55,7 +29,25 @@ const DuckDuckGoSearchSchema = {
|
|
|
55
29
|
};
|
|
56
30
|
function createDuckDuckGoWebSearchProvider() {
|
|
57
31
|
return {
|
|
58
|
-
|
|
32
|
+
id: "duckduckgo",
|
|
33
|
+
label: "DuckDuckGo Search (experimental)",
|
|
34
|
+
hint: "Free web search fallback with no API key required",
|
|
35
|
+
onboardingScopes: ["text-inference"],
|
|
36
|
+
requiresCredential: false,
|
|
37
|
+
envVars: [],
|
|
38
|
+
placeholder: "(no key needed)",
|
|
39
|
+
signupUrl: "https://duckduckgo.com/",
|
|
40
|
+
docsUrl: "https://docs.openclaw.ai/tools/web",
|
|
41
|
+
autoDetectOrder: 100,
|
|
42
|
+
credentialPath: "",
|
|
43
|
+
...createWebSearchProviderContractFields({
|
|
44
|
+
credentialPath: "",
|
|
45
|
+
searchCredential: {
|
|
46
|
+
type: "scoped",
|
|
47
|
+
scopeId: "duckduckgo"
|
|
48
|
+
},
|
|
49
|
+
selectionPluginId: "duckduckgo"
|
|
50
|
+
}),
|
|
59
51
|
createTool: (ctx) => ({
|
|
60
52
|
description: "Search the web using DuckDuckGo. Returns titles, URLs, and snippets with no API key required.",
|
|
61
53
|
parameters: DuckDuckGoSearchSchema,
|
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-Db4uz7eE.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-Db4uz7eE.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-Db4uz7eE.mjs";
|
|
2
2
|
export { createDuckDuckGoWebSearchProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/duckduckgo-plugin",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.10.1-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.
|
|
21
|
+
"pluginApi": ">=2026.10.1-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.
|
|
24
|
+
"openclawVersion": "2026.10.1-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.
|
|
43
|
+
"openclaw": ">=2026.10.1-beta.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|