@openclaw/brave-plugin 2026.7.2-beta.3 → 2026.7.2-beta.4

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.
@@ -8,7 +8,7 @@ import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
8
8
  * Brave web-search provider factory. It builds the agent tool definition and
9
9
  * lazy-loads HTTP execution only when a search is run.
10
10
  */
11
- const loadBraveWebSearchRuntime = createLazyRuntimeModule(() => import("./brave-web-search-provider.runtime-CRTupGGc.js"));
11
+ const loadBraveWebSearchRuntime = createLazyRuntimeModule(() => import("./brave-web-search-provider.runtime-nsVWfNKK.js"));
12
12
  const BraveSearchSchema = {
13
13
  type: "object",
14
14
  properties: {
@@ -204,7 +204,7 @@ function describeBraveRequestUrl(url) {
204
204
  };
205
205
  }
206
206
  function resolveBraveApiKey(searchConfig) {
207
- return readConfiguredSecretString(searchConfig?.apiKey, "tools.web.search.apiKey") ?? readProviderEnvValue(["BRAVE_API_KEY"]);
207
+ return readConfiguredSecretString(searchConfig?.apiKey, "plugins.entries.brave.config.webSearch.apiKey") ?? readProviderEnvValue(["BRAVE_API_KEY"]);
208
208
  }
209
209
  function resolveBraveBaseUrl(braveConfig) {
210
210
  return readConfiguredSecretString(braveConfig?.baseUrl, "plugins.entries.brave.config.webSearch.baseUrl")?.replace(/\/+$/u, "") || DEFAULT_BRAVE_BASE_URL;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-qnnPKt1z.js";
1
+ import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-CWqHMdrX.js";
2
2
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
3
3
  //#region extensions/brave/index.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-qnnPKt1z.js";
1
+ import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-CWqHMdrX.js";
2
2
  export { createBraveWebSearchProvider };
@@ -7,18 +7,6 @@ import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
7
7
  */
8
8
  /** Canonical config path for the Brave Search API key. */
9
9
  const BRAVE_CREDENTIAL_PATH = "plugins.entries.brave.config.webSearch.apiKey";
10
- /** Resolve legacy top-level Brave credentials from old web-search config. */
11
- function resolveLegacyTopLevelBraveCredential(config) {
12
- if (!isRecord(config)) return;
13
- const tools = isRecord(config.tools) ? config.tools : void 0;
14
- const web = isRecord(tools?.web) ? tools.web : void 0;
15
- const search = isRecord(web?.search) ? web.search : void 0;
16
- if (!search || !("apiKey" in search)) return;
17
- return {
18
- path: "tools.web.search.apiKey",
19
- value: search.apiKey
20
- };
21
- }
22
10
  function resolveBraveWebSearchPluginConfig(config) {
23
11
  if (!isRecord(config)) return;
24
12
  const plugins = isRecord(config.plugins) ? config.plugins : void 0;
@@ -27,9 +15,9 @@ function resolveBraveWebSearchPluginConfig(config) {
27
15
  const pluginConfig = isRecord(entry?.config) ? entry.config : void 0;
28
16
  return isRecord(pluginConfig?.webSearch) ? pluginConfig.webSearch : void 0;
29
17
  }
30
- /** Resolve Brave credentials from current plugin config or legacy fallback. */
18
+ /** Resolve Brave credentials from current plugin config. */
31
19
  function resolveConfiguredBraveCredential(config) {
32
- return resolveBraveWebSearchPluginConfig(config)?.apiKey ?? resolveLegacyTopLevelBraveCredential(config)?.value;
20
+ return resolveBraveWebSearchPluginConfig(config)?.apiKey;
33
21
  }
34
22
  /** Build the common Brave provider metadata without the runtime tool executor. */
35
23
  function buildBraveWebSearchProviderBase() {
@@ -50,8 +38,7 @@ function buildBraveWebSearchProviderBase() {
50
38
  searchCredential: { type: "top-level" },
51
39
  configuredCredential: { pluginId: "brave" }
52
40
  }),
53
- getConfiguredCredentialValue: resolveConfiguredBraveCredential,
54
- getConfiguredCredentialFallback: resolveLegacyTopLevelBraveCredential
41
+ getConfiguredCredentialValue: resolveConfiguredBraveCredential
55
42
  };
56
43
  }
57
44
  //#endregion
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/brave-plugin",
3
- "version": "2026.7.2-beta.3",
3
+ "version": "2026.7.2-beta.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/brave-plugin",
9
- "version": "2026.7.2-beta.3"
9
+ "version": "2026.7.2-beta.4"
10
10
  }
11
11
  }
12
12
  }
@@ -34,9 +34,6 @@
34
34
  "contracts": {
35
35
  "webSearchProviders": ["brave"]
36
36
  },
37
- "configContracts": {
38
- "compatibilityRuntimePaths": ["tools.web.search.apiKey"]
39
- },
40
37
  "configSchema": {
41
38
  "type": "object",
42
39
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/brave-plugin",
3
- "version": "2026.7.2-beta.3",
3
+ "version": "2026.7.2-beta.4",
4
4
  "description": "OpenClaw Brave Search provider plugin for web search.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "allowInvalidConfigRecovery": true
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.7.2-beta.3"
21
+ "pluginApi": ">=2026.7.2-beta.4"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.3"
24
+ "openclawVersion": "2026.7.2-beta.4"
25
25
  },
26
26
  "release": {
27
27
  "publishToClawHub": true,
@@ -38,7 +38,7 @@
38
38
  "README.md"
39
39
  ],
40
40
  "peerDependencies": {
41
- "openclaw": ">=2026.7.2-beta.3"
41
+ "openclaw": ">=2026.7.2-beta.4"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {