migrated custom tools to V2 plugin

This commit is contained in:
2026-10-22 00:53:02 +02:00
parent 5a1a3b3d13
commit 0f2e4330b8
23 changed files with 314 additions and 168 deletions
+30
View File
@@ -0,0 +1,30 @@
import { Plugin } from "@opencode/plugin"
import gitWorktreeCreate from "./git-worktree-create.js"
import teaActionsRunsList from "./tea-actions-runs-list.js"
import teaActionsRunsLogs from "./tea-actions-runs-logs.js"
import teaComment from "./tea-comment.js"
import teaIssueCreate from "./tea-issue-create.js"
import teaIssueGet from "./tea-issue-get.js"
import teaIssues from "./tea-issues.js"
import teaPrCreate from "./tea-pr-create.js"
import teaPrGet from "./tea-pr-get.js"
import teaPulls from "./tea-pulls.js"
export default Plugin.define({
id: "tools",
async setup(ctx) {
await ctx.tool.transform((editor) => {
editor.add(gitWorktreeCreate)
editor.add(teaActionsRunsList)
editor.add(teaActionsRunsLogs)
editor.add(teaComment)
editor.add(teaIssueCreate)
editor.add(teaIssueGet)
editor.add(teaIssues)
editor.add(teaPrCreate)
editor.add(teaPrGet)
editor.add(teaPulls)
})
},
})