Files
architecture/.opencode/tools/tea-issue-get.ts

13 lines
405 B
TypeScript

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