@openclaw/brave-plugin 2026.8.2 → 2026.9.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.
@@ -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-Bdu_Ii9d.js"));
11
+ const loadBraveWebSearchRuntime = createLazyRuntimeModule(() => import("./brave-web-search-provider.runtime-CKcjuVbf.js"));
12
12
  const BraveSearchSchema = {
13
13
  type: "object",
14
14
  properties: {
@@ -172,7 +172,8 @@ function mapBraveLlmContextResults(data) {
172
172
  url: entry.url ?? "",
173
173
  title: entry.title ?? "",
174
174
  snippets: (entry.snippets ?? []).filter((snippet) => typeof snippet === "string" && snippet.length > 0),
175
- siteName: resolveSiteName(entry.url) || void 0
175
+ siteName: resolveSiteName(entry.url) || void 0,
176
+ published: data.sources?.[entry.url]?.age?.[3] || data.sources?.[entry.url]?.age?.[1] || void 0
176
177
  }));
177
178
  }
178
179
  //#endregion
@@ -320,7 +321,7 @@ async function runBraveWebSearch(params) {
320
321
  title: title ? wrapWebContent(title, "web_search") : "",
321
322
  url,
322
323
  description: description ? wrapWebContent(description, "web_search") : "",
323
- published: entry.age || void 0,
324
+ published: entry.page_age || void 0,
324
325
  siteName: resolveSiteName(url) || void 0
325
326
  };
326
327
  });
@@ -468,7 +469,8 @@ async function executeBraveSearch(args, searchConfig, options) {
468
469
  title: entry.title ? wrapWebContent(entry.title, "web_search") : "",
469
470
  url: entry.url,
470
471
  snippets: entry.snippets.map((snippet) => wrapWebContent(snippet, "web_search")),
471
- siteName: entry.siteName
472
+ siteName: entry.siteName,
473
+ published: entry.published
472
474
  })) : response.results;
473
475
  const payload = {
474
476
  query,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-DFh8unYg.js";
1
+ import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-CY6mh6hm.js";
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 "./brave-web-search-provider-DFh8unYg.js";
1
+ import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-CY6mh6hm.js";
2
2
  import "./web-search-provider.js";
3
3
  export { createBraveWebSearchProvider };
@@ -1,2 +1,2 @@
1
- import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-DFh8unYg.js";
1
+ import { t as createBraveWebSearchProvider } from "./brave-web-search-provider-CY6mh6hm.js";
2
2
  export { createBraveWebSearchProvider };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/brave-plugin",
3
- "version": "2026.8.2",
3
+ "version": "2026.9.1",
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.8.2"
21
+ "pluginApi": ">=2026.9.1"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.8.2"
24
+ "openclawVersion": "2026.9.1"
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.8.2"
40
+ "openclaw": ">=2026.9.1"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "openclaw": {