@bunny-agent/runner-cli 0.9.43 → 0.9.44
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 +22 -1
- package/package.json +2 -2
package/dist/bundle.mjs
CHANGED
|
@@ -2565,11 +2565,32 @@ function isEnvDumpCommand(command) {
|
|
|
2565
2565
|
const cmd = command.replace(/\s+/g, " ").trim();
|
|
2566
2566
|
return /(?:^|[|;&])\s*(?:env|printenv|export\s+-p|declare\s+-x)\b/.test(cmd);
|
|
2567
2567
|
}
|
|
2568
|
+
var MODEL_AUTH_KEYS = /* @__PURE__ */ new Set([
|
|
2569
|
+
"OPENAI_API_KEY",
|
|
2570
|
+
"OPENAI_BASE_URL",
|
|
2571
|
+
"GEMINI_API_KEY",
|
|
2572
|
+
"GEMINI_BASE_URL",
|
|
2573
|
+
"ANTHROPIC_API_KEY",
|
|
2574
|
+
"ANTHROPIC_BASE_URL",
|
|
2575
|
+
"ANTHROPIC_AUTH_TOKEN",
|
|
2576
|
+
"ANTHROPIC_BEDROCK_BASE_URL",
|
|
2577
|
+
"LITELLM_MASTER_KEY"
|
|
2578
|
+
]);
|
|
2579
|
+
function filterAuthEnvVars(env) {
|
|
2580
|
+
const filtered = {};
|
|
2581
|
+
for (const [key, value] of Object.entries(env)) {
|
|
2582
|
+
if (!MODEL_AUTH_KEYS.has(key)) {
|
|
2583
|
+
filtered[key] = value;
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
return filtered;
|
|
2587
|
+
}
|
|
2568
2588
|
function buildEnvInjectedBashTool(cwd, extraEnv) {
|
|
2589
|
+
const safeEnv = filterAuthEnvVars(extraEnv);
|
|
2569
2590
|
const bashAgentTool = createBashTool(cwd, {
|
|
2570
2591
|
spawnHook: (ctx) => ({
|
|
2571
2592
|
...ctx,
|
|
2572
|
-
env: { ...ctx.env, ...
|
|
2593
|
+
env: { ...ctx.env, ...safeEnv }
|
|
2573
2594
|
})
|
|
2574
2595
|
});
|
|
2575
2596
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bunny-agent/runner-cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.44",
|
|
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": {
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"vitest": "^1.6.1",
|
|
56
56
|
"@bunny-agent/runner-harness": "0.1.1-beta.0",
|
|
57
57
|
"@bunny-agent/runner-claude": "0.6.2",
|
|
58
|
-
"@bunny-agent/runner-gemini": "0.6.2",
|
|
59
58
|
"@bunny-agent/runner-codex": "0.6.2",
|
|
59
|
+
"@bunny-agent/runner-gemini": "0.6.2",
|
|
60
60
|
"@bunny-agent/runner-opencode": "0.6.2",
|
|
61
61
|
"@bunny-agent/runner-pi": "0.6.4-beta.0"
|
|
62
62
|
},
|