mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 21:19:48 +00:00
wip: plugin load from package
This commit is contained in:
parent
9ab3462821
commit
1bac46612c
6 changed files with 332 additions and 11 deletions
|
|
@ -1,7 +1,14 @@
|
|||
import { Plugin } from "./index"
|
||||
|
||||
export const ExamplePlugin: Plugin = async ({ app, client }) => {
|
||||
export const ExamplePlugin: Plugin = async ({ app, client, $ }) => {
|
||||
return {
|
||||
permission: {},
|
||||
tool: {
|
||||
execute: {
|
||||
async before(input, output) {
|
||||
console.log("before", input, output)
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue