summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-03 21:19:03 -0400
committerDax Raad <[email protected]>2025-08-03 21:19:03 -0400
commit1bac46612cef3b383af2ce411ca2ad313d5c5ce0 (patch)
treea4b7943b7cb6d26f5a94b861ae71cf2d47a46f5d /packages/plugin
parent9ab3462821161797f8808d6c4d5aed24bd173e89 (diff)
downloadopencode-1bac46612cef3b383af2ce411ca2ad313d5c5ce0.tar.gz
opencode-1bac46612cef3b383af2ce411ca2ad313d5c5ce0.zip
wip: plugin load from package
Diffstat (limited to 'packages/plugin')
-rw-r--r--packages/plugin/src/example.ts9
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)
+ },
+ },
+ },
}
}