mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 10:14:22 +01:00
15 lines
281 B
TypeScript
15 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)
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|