fixed the return values to strings instead of JSON.parse

This commit is contained in:
2026-05-03 18:30:54 +02:00
parent 3f49ef4589
commit dc65e59611
7 changed files with 298 additions and 86 deletions

View File

@@ -7,7 +7,7 @@ export const labelList = tool({
async execute(args, context) {
try {
const result = await $`tea label list --output json`.text()
return JSON.parse(result)
return result
} catch (error: any) {
return {
error: "Failed to list labels",