Files
architecture/.opencode/plugins/tools/index.ts
T

31 lines
960 B
TypeScript

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)
})
},
})