14 lines
434 B
TypeScript
14 lines
434 B
TypeScript
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()
|
|
},
|
|
}) |