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
+8 -1
View File
@@ -190,9 +190,16 @@ export const cursor = agent({
});
}
} else if (event.subtype === "completed") {
const isError = event.tool_call?.mcpToolCall?.result?.success?.isError;
const result = event.tool_call?.mcpToolCall?.result?.success;
const isError = result?.isError;
if (isError) {
log.warning("Tool call failed");
} else {
// log successful tool result so it appears in output
const text = result?.content?.[0]?.text?.text;
if (text) {
console.log(text);
}
}
}
},