add restricted tests, refactor test infrastructure (#150)

This commit is contained in:
David Blass
2026-01-22 21:06:19 +00:00
committed by pullfrog[bot]
parent 41fb0e78be
commit 9a8db3e07c
27 changed files with 388 additions and 587 deletions
+4 -5
View File
@@ -184,12 +184,11 @@ export async function startMcpHttpServer(
PushBranchTool(ctx),
];
// only add BashTool and KillBackgroundTool if bash is not disabled
// - "enabled": native bash + MCP bash
// - "restricted": MCP bash only (native blocked by agent)
// only add BashTool when bash is "restricted"
// - "enabled": native bash only (no MCP bash needed)
// - "restricted": MCP bash only (native blocked, env filtered)
// - "disabled": no bash at all
const bash = ctx.payload.bash ?? "enabled";
if (bash !== "disabled") {
if (ctx.payload.bash === "restricted") {
tools.push(BashTool(ctx));
tools.push(KillBackgroundTool(ctx));
}