diff options
| author | Dax Raad <[email protected]> | 2025-08-03 21:19:03 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-03 21:19:03 -0400 |
| commit | 1bac46612cef3b383af2ce411ca2ad313d5c5ce0 (patch) | |
| tree | a4b7943b7cb6d26f5a94b861ae71cf2d47a46f5d /packages/plugin | |
| parent | 9ab3462821161797f8808d6c4d5aed24bd173e89 (diff) | |
| download | opencode-1bac46612cef3b383af2ce411ca2ad313d5c5ce0.tar.gz opencode-1bac46612cef3b383af2ce411ca2ad313d5c5ce0.zip | |
wip: plugin load from package
Diffstat (limited to 'packages/plugin')
| -rw-r--r-- | packages/plugin/src/example.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/plugin/src/example.ts b/packages/plugin/src/example.ts index ac8c0e344..4e9bc4b88 100644 --- a/packages/plugin/src/example.ts +++ b/packages/plugin/src/example.ts @@ -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) + }, + }, + }, } } |
