fixed the return values to strings instead of JSON.parse
This commit is contained in:
@@ -7,7 +7,7 @@ export const whoami = tool({
|
||||
async execute(args, context) {
|
||||
try {
|
||||
const result = await $`tea whoami --output json`.text()
|
||||
return JSON.parse(result)
|
||||
return result
|
||||
} catch (error: any) {
|
||||
return {
|
||||
error: "Failed to get current user info",
|
||||
|
||||
Reference in New Issue
Block a user