@openclaw/brave-plugin 2026.7.2-beta.7 → 2026.8.1-beta.3

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-nsVWfNKK.js"));
11
+ const loadBraveWebSearchRuntime = createLazyRuntimeModule(() => import("./brave-web-search-provider.runtime-DqLOemiz.js"));
12
12
  const BraveSearchSchema = {
13
13
  type: "object",
14
14
  properties: {
@@ -61,9 +61,13 @@ function createBraveToolDefinition(searchConfig, config) {
61
61
  return {
62
62
  description: braveMode === "llm-context" ? "Search the web using Brave Search LLM Context API. Returns pre-extracted page content (text chunks, tables, code blocks) optimized for LLM grounding." : "Search the web using Brave Search API. Supports region-specific and localized search via country and language parameters. Returns titles, URLs, and snippets for fast research.",
63
63
  parameters: BraveSearchSchema,
64
- execute: async (args) => {
64
+ execute: async (args, context) => {
65
+ context?.signal?.throwIfAborted();
65
66
  const { executeBraveSearch } = await loadBraveWebSearchRuntime();
66
- return await executeBraveSearch(args, searchConfig, { diagnosticsEnabled });
67
+ return await executeBraveSearch(args, searchConfig, {
68
+ diagnosticsEnabled,
69
+ signal: context?.signal
70
+ });
67
71
  }
68
72
  };
69
73
  }
@@ -273,6 +273,7 @@ async function runBraveJsonRequest(params, errorLabel) {
273
273
  return (params.endpointMode === "selfHosted" ? withSelfHostedWebSearchEndpoint : withTrustedWebSearchEndpoint)({
274
274
  url: url.toString(),
275
275
  timeoutSeconds: params.timeoutSeconds,
276
+ signal: params.signal,
276
277
  init: {
277
278
  method: "GET",
278
279
  headers: {
@@ -300,6 +301,7 @@ async function runBraveLlmContextSearch(params) {
300
301
  apiKey: params.apiKey,
301
302
  timeoutSeconds: params.timeoutSeconds,
302
303
  diagnostics: params.diagnostics,
304
+ signal: params.signal,
303
305
  configureUrl: (url) => {
304
306
  setBraveSearchUrlParams(url, params);
305
307
  }
@@ -318,6 +320,7 @@ async function runBraveWebSearch(params) {
318
320
  apiKey: params.apiKey,
319
321
  timeoutSeconds: params.timeoutSeconds,
320
322
  diagnostics: params.diagnostics,
323
+ signal: params.signal,
321
324
  configureUrl: (url) => {
322
325
  setBraveSearchUrlParams(url, {
323
326
  ...params,
@@ -452,12 +455,14 @@ async function executeBraveSearch(args, searchConfig, options) {
452
455
  apiKey,
453
456
  timeoutSeconds,
454
457
  diagnostics,
458
+ signal: options?.signal,
455
459
  country: country ?? void 0,
456
460
  search_lang: normalizedLanguage.search_lang,
457
461
  freshness,
458
462
  dateAfter,
459
463
  dateBefore
460
464
  });
465
+ options?.signal?.throwIfAborted();
461
466
  const payload = {
462
467
  query,
463
468
  provider: "brave",
@@ -496,6 +501,7 @@ async function executeBraveSearch(args, searchConfig, options) {
496
501
  apiKey,
497
502
  timeoutSeconds,
498
503
  diagnostics,
504
+ signal: options?.signal,
499
505
  country: country ?? void 0,
500
506
  search_lang: normalizedLanguage.search_lang,
501
507
  ui_lang: normalizedLanguage.ui_lang,
@@ -503,6 +509,7 @@ async function executeBraveSearch(args, searchConfig, options) {
503
509
  dateAfter,
504
510
  dateBefore
505
511
  });
512
+ options?.signal?.throwIfAborted();
506
513
  const payload = {
507
514
  query,
508
515
  provider: "brave",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-CWqHMdrX.js";
1
+ import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-BFrhKp8F.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-CWqHMdrX.js";
1
+ import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-BFrhKp8F.js";
2
2
  export { createBraveWebSearchProvider };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/brave-plugin",
3
- "version": "2026.7.2-beta.7",
3
+ "version": "2026.8.1-beta.3",
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.7"
21
+ "pluginApi": ">=2026.8.1-beta.3"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.7"
24
+ "openclawVersion": "2026.8.1-beta.3"
25
25
  },
26
26
  "release": {
27
27
  "publishToClawHub": true,
@@ -37,7 +37,7 @@
37
37
  "README.md"
38
38
  ],
39
39
  "peerDependencies": {
40
- "openclaw": ">=2026.7.2-beta.7"
40
+ "openclaw": ">=2026.8.1-beta.3"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "openclaw": {