Compare commits

..

2 Commits

2 changed files with 27 additions and 0 deletions

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()
},
})

View File

@@ -0,0 +1,13 @@
import { tool } from "@opencode-ai/plugin"
import { $ } from "bun"
export default tool({
description: "Get a specific issue with all details and comments using tea CLI",
args: {
issueNumber: tool.schema.number().describe("Issue number/index"),
},
async execute(args) {
const result = await $`tea issues ${args.issueNumber} --comments --output json`.text()
return result.trim()
},
})