Add tea-comment tool for adding comments to issues

This commit is contained in:
2026-05-15 11:41:27 +02:00
parent e692018422
commit 28d7622956

View File

@@ -0,0 +1,14 @@
import { tool } from "@opencode-ai/plugin"
import { $ } from "bun"
export default tool({
description: "Add a comment to a specific issue using tea CLI",
args: {
issueNumber: tool.schema.number().describe("Issue number/index"),
body: tool.schema.string().describe("Comment body"),
},
async execute(args) {
const result = await $`tea comment ${args.issueNumber} ${args.body}`.text()
return result.trim()
},
})