mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
14 lines
281 B
TypeScript
14 lines
281 B
TypeScript
import { Plugin } from "./index"
|
|
|
|
export const ExamplePlugin: Plugin = async ({ app, client, $ }) => {
|
|
return {
|
|
permission: {},
|
|
tool: {
|
|
execute: {
|
|
async before(input, output) {
|
|
console.log("before", input, output)
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|