@openclaw/brave-plugin 2026.10.10-beta.4 → 2026.10.10
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-m9mxf4kg.mjs → brave-web-search-provider-BqnjCSjg.mjs} +2 -3
- package/dist/.setup/{brave-web-search-provider.runtime-Pv20V5ro.mjs → brave-web-search-provider.runtime-C-yoQ8ge.mjs} +2 -4
- package/dist/.source-module-urls/c56d5ead937f37db9ad473f25208bbdd773d745f5be1ef3863e9582e6bf06315.json +1 -1
- package/dist/index.js +2 -3
- package/dist/web-search-contract-api.js +1 -1
- package/dist/web-search-provider.js +1 -1
- package/dist/web-search-shared.js +1 -2
- package/package.json +4 -4
|
@@ -3,12 +3,12 @@ import { isDiagnosticFlagEnabled } from "openclaw/plugin-sdk/diagnostic-flags";
|
|
|
3
3
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
4
4
|
import { mergeScopedSearchConfig, resolveProviderWebSearchPluginConfig } from "openclaw/plugin-sdk/provider-web-search-config-contract";
|
|
5
5
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
|
-
|
|
6
|
+
// extensions/brave/src/brave-web-search-provider.ts
|
|
7
7
|
/**
|
|
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-C-yoQ8ge.mjs"));
|
|
12
12
|
const BraveSearchSchema = {
|
|
13
13
|
type: "object",
|
|
14
14
|
properties: {
|
|
@@ -75,5 +75,4 @@ function createBraveWebSearchProvider() {
|
|
|
75
75
|
createTool: (ctx) => createBraveToolDefinition(mergeScopedSearchConfig(ctx.searchConfig, "brave", resolveProviderWebSearchPluginConfig(ctx.config, "brave"), { mirrorApiKeyToTopLevel: true }), ctx.config)
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
//#endregion
|
|
79
78
|
export { createBraveWebSearchProvider as t };
|
|
@@ -5,7 +5,7 @@ import { assertOkOrThrowProviderError, readProviderJsonResponse } from "openclaw
|
|
|
5
5
|
import { DEFAULT_SEARCH_COUNT, MAX_SEARCH_COUNT, buildSearchCacheKey, formatCliCommand, parseWebSearchTimeFilters, readCachedSearchPayload, readConfiguredSecretString, readPositiveIntegerParam, readProviderEnvValue, readStringParam, resolveSearchCacheTtlMs, resolveSearchCount, resolveSearchTimeoutSeconds, resolveSiteName, withSelfHostedWebToolsEndpoint, withTrustedWebToolsEndpoint, wrapWebContent, writeCachedSearchPayload } from "openclaw/plugin-sdk/provider-web-search";
|
|
6
6
|
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
|
|
7
7
|
import { assertHttpUrlTargetsPrivateNetwork, isBlockedHostnameOrIp, isPrivateIpAddress, resolvePinnedHostnameWithPolicy } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
8
|
-
|
|
8
|
+
// extensions/brave/src/brave-web-search-provider.shared.ts
|
|
9
9
|
/**
|
|
10
10
|
* Brave Search request normalization and result mapping. It validates Brave
|
|
11
11
|
* country/language params and converts LLM-context responses into web results.
|
|
@@ -160,8 +160,7 @@ function mapBraveLlmContextResults(data) {
|
|
|
160
160
|
published: data.sources?.[entry.url]?.age?.[3] || data.sources?.[entry.url]?.age?.[1] || void 0
|
|
161
161
|
}));
|
|
162
162
|
}
|
|
163
|
-
|
|
164
|
-
//#region extensions/brave/src/brave-web-search-provider.runtime.ts
|
|
163
|
+
// extensions/brave/src/brave-web-search-provider.runtime.ts
|
|
165
164
|
const DEFAULT_BRAVE_BASE_URL = "https://api.search.brave.com";
|
|
166
165
|
const BRAVE_SEARCH_ENDPOINT_PATH = "/res/v1/web/search";
|
|
167
166
|
const BRAVE_LLM_CONTEXT_ENDPOINT_PATH = "/res/v1/llm/context";
|
|
@@ -439,5 +438,4 @@ async function executeBraveSearch(args, searchConfig, options) {
|
|
|
439
438
|
cleanup();
|
|
440
439
|
}
|
|
441
440
|
}
|
|
442
|
-
//#endregion
|
|
443
441
|
export { executeBraveSearch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"index.js","source":"extensions/brave/index.ts"},{"output":"web-search-contract-api.js","source":"extensions/brave/web-search-contract-api.ts"},{"output":"web-search-provider.js","source":"extensions/brave/web-search-provider.ts"},{"output":"web-search-shared.js","source":"extensions/brave/web-search-shared.ts"}],"chunks":[{"output":".setup/brave-web-search-provider-
|
|
1
|
+
{"version":3,"entries":[{"output":"index.js","source":"extensions/brave/index.ts"},{"output":"web-search-contract-api.js","source":"extensions/brave/web-search-contract-api.ts"},{"output":"web-search-provider.js","source":"extensions/brave/web-search-provider.ts"},{"output":"web-search-shared.js","source":"extensions/brave/web-search-shared.ts"}],"chunks":[{"output":".setup/brave-web-search-provider-BqnjCSjg.mjs","sha256":"b47ed9afcf4496901c08d7dea2256453ce6c1a12d2331f93c386e0fe931356b5","facadeSource":null,"sources":["extensions/brave/src/brave-web-search-provider.ts"]},{"output":".setup/brave-web-search-provider.runtime-C-yoQ8ge.mjs","sha256":"3cac12c8e0fccb8b681dcc8277554698a0c3ad2922400a5199d97d9e22d5c25c","facadeSource":"extensions/brave/src/brave-web-search-provider.runtime.ts","sources":["extensions/brave/src/brave-web-search-provider.runtime.ts","extensions/brave/src/brave-web-search-provider.shared.ts"]},{"output":"index.js","sha256":"3d7ddc5b97814ae7bfc3f83485c53a35ff3d15f2f0aa66f80fa82db2ab987153","facadeSource":"extensions/brave/index.ts","sources":["extensions/brave/index.ts"]},{"output":"web-search-contract-api.js","sha256":"1fd5ff199770b1fa3a2f33d3b35088d5368fd450e5af9a5b4e43aa9db86abad5","facadeSource":"extensions/brave/web-search-contract-api.ts","sources":[]},{"output":"web-search-provider.js","sha256":"acfc47ca71743ba7e0c07b1278190a960f3a6879ac4906c606f4a5fefbfbea02","facadeSource":"extensions/brave/web-search-provider.ts","sources":[]},{"output":"web-search-shared.js","sha256":"367caea02b279f150e0a634997183fab7ece57bb17ae2402c449059edbe5f7ab","facadeSource":"extensions/brave/web-search-shared.ts","sources":["extensions/brave/web-search-shared.ts"]}],"unrenderedSources":["extensions/brave/web-search-contract-api.ts","extensions/brave/web-search-provider.ts"]}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-
|
|
1
|
+
import { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-BqnjCSjg.mjs";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
|
-
|
|
3
|
+
// extensions/brave/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Brave Search plugin entry. It registers the Brave web-search provider and
|
|
6
6
|
* keeps runtime HTTP execution lazy.
|
|
@@ -14,5 +14,4 @@ var brave_default = definePluginEntry({
|
|
|
14
14
|
api.registerWebSearchProvider(createBraveWebSearchProvider());
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
//#endregion
|
|
18
17
|
export { brave_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-
|
|
1
|
+
export { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-BqnjCSjg.mjs";
|
|
2
2
|
import "./web-search-provider.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-
|
|
1
|
+
export { t as createBraveWebSearchProvider } from "./.setup/brave-web-search-provider-BqnjCSjg.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createWebSearchProviderContractFields } from "openclaw/plugin-sdk/provider-web-search-config-contract";
|
|
2
|
-
|
|
2
|
+
// extensions/brave/web-search-shared.ts
|
|
3
3
|
/**
|
|
4
4
|
* Shared Brave Search provider metadata and credential lookup. Contract tests
|
|
5
5
|
* and runtime provider creation both use this lightweight descriptor.
|
|
@@ -29,5 +29,4 @@ function buildBraveWebSearchProviderBase() {
|
|
|
29
29
|
})
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { buildBraveWebSearchProviderBase, resolveBraveMode };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/brave-plugin",
|
|
3
|
-
"version": "2026.10.10
|
|
3
|
+
"version": "2026.10.10",
|
|
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.10
|
|
22
|
+
"pluginApi": ">=2026.10.10"
|
|
23
23
|
},
|
|
24
24
|
"build": {
|
|
25
|
-
"openclawVersion": "2026.10.10
|
|
25
|
+
"openclawVersion": "2026.10.10"
|
|
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.10
|
|
43
|
+
"openclaw": ">=2026.10.10"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|