@bunny-agent/runner-cli 0.9.61-release.8 → 0.9.61-release.9
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/bundle.mjs +15 -6
- package/package.json +7 -7
package/dist/bundle.mjs
CHANGED
|
@@ -23882,7 +23882,9 @@ var braveProvider = {
|
|
|
23882
23882
|
id: "brave",
|
|
23883
23883
|
label: "Brave Search",
|
|
23884
23884
|
envKeys: ["BRAVE_API_KEY"],
|
|
23885
|
-
|
|
23885
|
+
urlEnvKey: "BRAVE_SEARCH_URL",
|
|
23886
|
+
defaultUrl: "https://api.search.brave.com/res/v1/web/search",
|
|
23887
|
+
async search({ apiKey, url: url2, query, count, country, freshness, signal }) {
|
|
23886
23888
|
const params = new URLSearchParams({
|
|
23887
23889
|
q: query,
|
|
23888
23890
|
count: String(Math.min(count, 20))
|
|
@@ -23891,7 +23893,7 @@ var braveProvider = {
|
|
|
23891
23893
|
params.set("country", country);
|
|
23892
23894
|
if (freshness)
|
|
23893
23895
|
params.set("freshness", freshness);
|
|
23894
|
-
const res = await fetch(
|
|
23896
|
+
const res = await fetch(`${url2}?${params}`, {
|
|
23895
23897
|
headers: {
|
|
23896
23898
|
Accept: "application/json",
|
|
23897
23899
|
"Accept-Encoding": "gzip",
|
|
@@ -23925,8 +23927,10 @@ var tavilyProvider = {
|
|
|
23925
23927
|
id: "tavily",
|
|
23926
23928
|
label: "Tavily",
|
|
23927
23929
|
envKeys: ["TAVILY_API_KEY"],
|
|
23928
|
-
|
|
23929
|
-
|
|
23930
|
+
urlEnvKey: "TAVILY_SEARCH_URL",
|
|
23931
|
+
defaultUrl: "https://api.tavily.com/search",
|
|
23932
|
+
async search({ apiKey, url: url2, query, count, signal }) {
|
|
23933
|
+
const res = await fetch(url2, {
|
|
23930
23934
|
method: "POST",
|
|
23931
23935
|
headers: { "Content-Type": "application/json" },
|
|
23932
23936
|
body: JSON.stringify({
|
|
@@ -23967,7 +23971,11 @@ function resolveSearchProviders(env) {
|
|
|
23967
23971
|
for (const key of p.envKeys) {
|
|
23968
23972
|
const val = getEnv(env, key);
|
|
23969
23973
|
if (val) {
|
|
23970
|
-
available.push({
|
|
23974
|
+
available.push({
|
|
23975
|
+
provider: p,
|
|
23976
|
+
apiKey: val,
|
|
23977
|
+
url: getEnv(env, p.urlEnvKey) ?? p.defaultUrl
|
|
23978
|
+
});
|
|
23971
23979
|
break;
|
|
23972
23980
|
}
|
|
23973
23981
|
}
|
|
@@ -24189,11 +24197,12 @@ function buildWebSearchTool(env) {
|
|
|
24189
24197
|
const shouldFetchContent = p.fetch_content ?? false;
|
|
24190
24198
|
let lastError;
|
|
24191
24199
|
let lastProviderLabel = "unknown provider";
|
|
24192
|
-
for (const [providerIndex, { provider, apiKey }] of providers.entries()) {
|
|
24200
|
+
for (const [providerIndex, { provider, apiKey, url: url2 }] of providers.entries()) {
|
|
24193
24201
|
lastProviderLabel = provider.label;
|
|
24194
24202
|
try {
|
|
24195
24203
|
const { results } = await provider.search({
|
|
24196
24204
|
apiKey,
|
|
24205
|
+
url: url2,
|
|
24197
24206
|
query,
|
|
24198
24207
|
count,
|
|
24199
24208
|
country,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bunny-agent/runner-cli",
|
|
3
|
-
"version": "0.9.61-release.
|
|
3
|
+
"version": "0.9.61-release.9",
|
|
4
4
|
"description": "BunnyAgent Runner CLI - Like gemini-cli or claude-code, runs in your local terminal with AI SDK UI streaming",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
"typescript": "^5.3.0",
|
|
61
61
|
"vitest": "^1.6.1",
|
|
62
62
|
"@bunny-agent/apply-patch": "0.1.0",
|
|
63
|
-
"@bunny-agent/manager": "0.9.61-release.
|
|
63
|
+
"@bunny-agent/manager": "0.9.61-release.9",
|
|
64
|
+
"@bunny-agent/runner-claude": "0.6.2",
|
|
64
65
|
"@bunny-agent/runner-codex": "0.6.2",
|
|
65
66
|
"@bunny-agent/runner-copilot": "0.1.0",
|
|
66
|
-
"@bunny-agent/runner-gemini": "0.6.2",
|
|
67
|
-
"@bunny-agent/runner-claude": "0.6.2",
|
|
68
|
-
"@bunny-agent/runner-harness": "0.1.1-beta.0",
|
|
69
|
-
"@bunny-agent/runner-opencode": "0.6.2",
|
|
70
67
|
"@bunny-agent/server-acp": "0.1.0",
|
|
71
|
-
"@bunny-agent/runner-pi": "0.6.4-beta.0"
|
|
68
|
+
"@bunny-agent/runner-pi": "0.6.4-beta.0",
|
|
69
|
+
"@bunny-agent/runner-opencode": "0.6.2",
|
|
70
|
+
"@bunny-agent/runner-gemini": "0.6.2",
|
|
71
|
+
"@bunny-agent/runner-harness": "0.1.1-beta.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "tsc && pnpm bundle",
|