diff --git a/.opencode/tools/tea-issue-get.ts b/.opencode/tools/tea-issue-get.ts new file mode 100644 index 0000000..c969496 --- /dev/null +++ b/.opencode/tools/tea-issue-get.ts @@ -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() + }, +}) \ No newline at end of file