Files
opencode/packages/plugin/src/example.ts
2025-09-01 17:35:52 -04:00

17 lines
297 B
TypeScript

import { Plugin } from "./index"
export const ExamplePlugin: Plugin = async ({
client: _client,
$: _shell,
project: _project,
directory: _directory,
worktree: _worktree,
}) => {
return {
permission: {},
async "chat.params"(_input, output) {
output.topP = 1
},
}
}