From e692018422d35f8d21b99d930318bc059f538441 Mon Sep 17 00:00:00 2001 From: Hugo Nijhuis Date: Fri, 15 May 2026 11:40:58 +0200 Subject: [PATCH] Add tea-issue-get tool for retrieving issues with comments --- .opencode/tools/tea-issue-get.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .opencode/tools/tea-issue-get.ts 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