summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/plugin/src')
-rw-r--r--packages/plugin/src/example.ts2
-rw-r--r--packages/plugin/src/index.ts6
2 files changed, 5 insertions, 3 deletions
diff --git a/packages/plugin/src/example.ts b/packages/plugin/src/example.ts
index 998108f0a..a13c0fbac 100644
--- a/packages/plugin/src/example.ts
+++ b/packages/plugin/src/example.ts
@@ -1,6 +1,6 @@
import { Plugin } from "./index"
-export const ExamplePlugin: Plugin = async ({ app, client, $ }) => {
+export const ExamplePlugin: Plugin = async ({ client, $ }) => {
return {
permission: {},
async "chat.params"(input, output) {
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts
index 5483607a6..a00b48d10 100644
--- a/packages/plugin/src/index.ts
+++ b/packages/plugin/src/index.ts
@@ -1,7 +1,7 @@
import type {
Event,
createOpencodeClient,
- App,
+ Project,
Model,
Provider,
Permission,
@@ -14,7 +14,9 @@ import type { BunShell } from "./shell"
export type PluginInput = {
client: ReturnType<typeof createOpencodeClient>
- app: App
+ project: Project
+ directory: string
+ worktree: string
$: BunShell
}
export type Plugin = (input: PluginInput) => Promise<Hooks>