Add tea_issue_create tool with Bun.$ and description support

This commit is contained in:
2026-05-14 22:57:43 +02:00
parent 8401508e9a
commit 9d06a72139

View File

@@ -9,8 +9,7 @@ export default tool({
milestone: tool.schema.string().optional().describe("Milestone name"),
},
async execute(args) {
const cmd = `tea issues create -t "${args.title}" -d "${args.description}"`
const result = await Bun.$`${cmd}`.text()
const result = await Bun.$`tea issues create -t ${args.title} -d ${args.description}`.text()
return result.trim()
},
})