mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 13:09:46 +00:00
wip: plugins
This commit is contained in:
parent
1bac46612c
commit
f85d30c484
7 changed files with 67 additions and 316 deletions
|
|
@ -3,12 +3,8 @@ import { Plugin } from "./index"
|
|||
export const ExamplePlugin: Plugin = async ({ app, client, $ }) => {
|
||||
return {
|
||||
permission: {},
|
||||
tool: {
|
||||
execute: {
|
||||
async before(input, output) {
|
||||
console.log("before", input, output)
|
||||
},
|
||||
},
|
||||
async "chat.params"(input, output) {
|
||||
output.topP = 1
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue