migrated custom tools to V2 plugin
This commit is contained in:
@@ -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)
|
||||
})
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user