add restricted tests, refactor test infrastructure (#150)
This commit is contained in:
committed by
pullfrog[bot]
parent
41fb0e78be
commit
9a8db3e07c
+8
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user