@openclaw/brave-plugin 2026.10.1 → 2026.10.5-beta.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.
- package/dist/.setup/{brave-web-search-provider-BMkqethI.mjs → brave-web-search-provider-m9mxf4kg.mjs} +1 -1
- package/dist/.setup/{brave-web-search-provider.runtime-Di4Yotfh.mjs → brave-web-search-provider.runtime-Pv20V5ro.mjs} +0 -5
- 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
|
@@ -8,7 +8,7 @@ import { asOptionalRecord } 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-
|
|
11
|
+
const loadBraveWebSearchRuntime = createLazyRuntimeModule(() => import("./brave-web-search-provider.runtime-Pv20V5ro.mjs"));
|
|
12
12
|
const BraveSearchSchema = {
|
|
13
13
|
type: "object",
|
|
14
14
|
properties: {
|
|
@@ -162,10 +162,6 @@ function mapBraveLlmContextResults(data) {
|
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region extensions/brave/src/brave-web-search-provider.runtime.ts
|
|
165
|
-
/**
|
|
166
|
-
* Brave Search HTTP runtime. It resolves credentials, enforces endpoint safety,
|
|
167
|
-
* applies caching, and maps Brave web/LLM-context API responses.
|
|
168
|
-
*/
|
|
169
165
|
const DEFAULT_BRAVE_BASE_URL = "https://api.search.brave.com";
|
|
170
166
|
const BRAVE_SEARCH_ENDPOINT_PATH = "/res/v1/web/search";
|
|
171
167
|
const BRAVE_LLM_CONTEXT_ENDPOINT_PATH = "/res/v1/llm/context";
|
|
@@ -280,7 +276,6 @@ async function runBraveSearch(params) {
|
|
|
280
276
|
};
|
|
281
277
|
});
|
|
282
278
|
}
|
|
283
|
-
/** Execute one Brave Search request using web or LLM-context mode. */
|
|
284
279
|
async function executeBraveSearch(args, searchConfig, options) {
|
|
285
280
|
const apiKey = resolveBraveApiKey(searchConfig);
|
|
286
281
|
if (!apiKey) return {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-
|
|
1
|
+
import { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-m9mxf4kg.mjs";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
//#region extensions/brave/index.ts
|
|
4
4
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-
|
|
1
|
+
import { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-m9mxf4kg.mjs";
|
|
2
2
|
import "./web-search-provider.js";
|
|
3
3
|
export { createBraveWebSearchProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-
|
|
1
|
+
import { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-m9mxf4kg.mjs";
|
|
2
2
|
export { createBraveWebSearchProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/brave-plugin",
|
|
3
|
-
"version": "2026.10.1",
|
|
3
|
+
"version": "2026.10.5-beta.1",
|
|
4
4
|
"description": "OpenClaw Brave Search provider plugin for web search.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"allowInvalidConfigRecovery": true
|
|
20
20
|
},
|
|
21
21
|
"compat": {
|
|
22
|
-
"pluginApi": ">=2026.10.1"
|
|
22
|
+
"pluginApi": ">=2026.10.5-beta.1"
|
|
23
23
|
},
|
|
24
24
|
"build": {
|
|
25
|
-
"openclawVersion": "2026.10.1"
|
|
25
|
+
"openclawVersion": "2026.10.5-beta.1"
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
28
28
|
"publishToClawHub": true,
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.10.1"
|
|
43
|
+
"openclaw": ">=2026.10.5-beta.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|