From 1bac46612cef3b383af2ce411ca2ad313d5c5ce0 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sun, 3 Aug 2025 21:19:03 -0400 Subject: wip: plugin load from package --- packages/plugin/src/example.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'packages/plugin/src/example.ts') 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) + }, + }, + }, } } -- cgit v1.2.3