migrated custom tools to V2 plugin
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { $ } from "bun"
|
||||
import type { Info } from "@opencode/plugin/promise/tool"
|
||||
|
||||
const teaIssues: Info = {
|
||||
name: "tea-issues",
|
||||
description: "List all issues in the project using tea CLI",
|
||||
input: {
|
||||
type: "object",
|
||||
properties: {},
|
||||
additionalProperties: false,
|
||||
},
|
||||
async execute() {
|
||||
const result = await $`tea issues list`.text()
|
||||
return { content: result.trim() }
|
||||
},
|
||||
}
|
||||
|
||||
export default teaIssues
|
||||
Reference in New Issue
Block a user