feat(plugin): align hooks with client APIs
This commit is contained in:
parent
650d774372
commit
6ae2fa5196
65 changed files with 978 additions and 664 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import type { PluginApi } from "@opencode-ai/client/effect/api"
|
||||
import type { Effect, Scope } from "effect"
|
||||
import type { PluginContext } from "./context.js"
|
||||
|
||||
|
|
@ -10,7 +11,7 @@ export function define<R = Scope.Scope>(plugin: Plugin<R>) {
|
|||
return plugin
|
||||
}
|
||||
|
||||
export interface PluginDomain {
|
||||
export interface PluginDomain extends PluginApi<unknown> {
|
||||
readonly add: (plugin: Plugin) => Effect.Effect<void>
|
||||
readonly remove: (id: string) => Effect.Effect<void>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue