@openclaw/duckduckgo-plugin 2026.8.1-beta.3 → 2026.8.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.
@@ -91,7 +91,7 @@ async function runDuckDuckGoSearch(params) {
91
91
  const region = params.region ?? resolveDdgRegion(params.config);
92
92
  const safeSearch = params.safeSearch === "strict" || params.safeSearch === "moderate" || params.safeSearch === "off" ? params.safeSearch : resolveDdgSafeSearch(params.config);
93
93
  const timeoutSeconds = resolveTimeoutSeconds(params.timeoutSeconds, DEFAULT_TIMEOUT_SECONDS);
94
- const cacheTtlMs = resolveCacheTtlMs(params.cacheTtlMinutes, DEFAULT_CACHE_TTL_MINUTES);
94
+ const cacheTtlMs = resolveCacheTtlMs(params.cacheTtlMinutes ?? params.config?.tools?.web?.search?.cacheTtlMinutes, DEFAULT_CACHE_TTL_MINUTES);
95
95
  const cacheKey = normalizeCacheKey(JSON.stringify({
96
96
  provider: "duckduckgo",
97
97
  query: params.query,
@@ -99,7 +99,7 @@ async function runDuckDuckGoSearch(params) {
99
99
  region: region ?? "",
100
100
  safeSearch
101
101
  }));
102
- const cached = readCache(DDG_SEARCH_CACHE, cacheKey);
102
+ const cached = readCache(DDG_SEARCH_CACHE, cacheKey, cacheTtlMs);
103
103
  if (cached) return {
104
104
  ...cached.value,
105
105
  cached: true
@@ -1,8 +1,34 @@
1
- import { t as createDuckDuckGoWebSearchProviderBase } from "./ddg-search-provider.shared-B2Y6U1WN.js";
2
1
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
3
2
  import { readPositiveIntegerParam, readStringParam } from "openclaw/plugin-sdk/param-readers";
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
4
30
  //#region extensions/duckduckgo/src/ddg-search-provider.ts
5
- const loadDuckDuckGoClientModule = createLazyRuntimeModule(() => import("./ddg-client-CdJu902j.js"));
31
+ const loadDuckDuckGoClientModule = createLazyRuntimeModule(() => import("./ddg-client-CbFlWxF7.js"));
6
32
  const DuckDuckGoSearchSchema = {
7
33
  type: "object",
8
34
  properties: {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createDuckDuckGoWebSearchProvider } from "./ddg-search-provider-gy4EJrPB.js";
1
+ import { t as createDuckDuckGoWebSearchProvider } from "./ddg-search-provider-Crb75sqq.js";
2
2
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
3
3
  //#region extensions/duckduckgo/index.ts
4
4
  var duckduckgo_default = definePluginEntry({
@@ -1,10 +1,3 @@
1
- import { t as createDuckDuckGoWebSearchProviderBase } from "./ddg-search-provider.shared-B2Y6U1WN.js";
2
- //#region extensions/duckduckgo/web-search-contract-api.ts
3
- function createDuckDuckGoWebSearchProvider() {
4
- return {
5
- ...createDuckDuckGoWebSearchProviderBase(),
6
- createTool: () => null
7
- };
8
- }
9
- //#endregion
1
+ import { t as createDuckDuckGoWebSearchProvider } from "./ddg-search-provider-Crb75sqq.js";
2
+ import "./web-search-provider.js";
10
3
  export { createDuckDuckGoWebSearchProvider };
@@ -1,2 +1,2 @@
1
- import { t as createDuckDuckGoWebSearchProvider } from "./ddg-search-provider-gy4EJrPB.js";
1
+ import { t as createDuckDuckGoWebSearchProvider } from "./ddg-search-provider-Crb75sqq.js";
2
2
  export { createDuckDuckGoWebSearchProvider };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/duckduckgo-plugin",
3
- "version": "2026.8.1-beta.3",
3
+ "version": "2026.8.1",
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.8.1-beta.3"
21
+ "pluginApi": ">=2026.8.1"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.8.1-beta.3",
24
+ "openclawVersion": "2026.8.1",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -38,7 +38,7 @@
38
38
  "README.md"
39
39
  ],
40
40
  "peerDependencies": {
41
- "openclaw": ">=2026.8.1-beta.3"
41
+ "openclaw": ">=2026.8.1"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {
@@ -1,28 +0,0 @@
1
- import { createWebSearchProviderContractFields } from "openclaw/plugin-sdk/provider-web-search-contract";
2
- //#region extensions/duckduckgo/src/ddg-search-provider.shared.ts
3
- const DUCKDUCKGO_ONBOARDING_SCOPES = ["text-inference"];
4
- function createDuckDuckGoWebSearchProviderBase() {
5
- return {
6
- id: "duckduckgo",
7
- label: "DuckDuckGo Search (experimental)",
8
- hint: "Free web search fallback with no API key required",
9
- onboardingScopes: [...DUCKDUCKGO_ONBOARDING_SCOPES],
10
- requiresCredential: false,
11
- envVars: [],
12
- placeholder: "(no key needed)",
13
- signupUrl: "https://duckduckgo.com/",
14
- docsUrl: "https://docs.openclaw.ai/tools/web",
15
- autoDetectOrder: 100,
16
- credentialPath: "",
17
- ...createWebSearchProviderContractFields({
18
- credentialPath: "",
19
- searchCredential: {
20
- type: "scoped",
21
- scopeId: "duckduckgo"
22
- },
23
- selectionPluginId: "duckduckgo"
24
- })
25
- };
26
- }
27
- //#endregion
28
- export { createDuckDuckGoWebSearchProviderBase as t };