|
@@ -8,6 +8,7 @@ import type {
|
|
|
UserMessage,
|
|
UserMessage,
|
|
|
Part,
|
|
Part,
|
|
|
Auth,
|
|
Auth,
|
|
|
|
|
+ Config,
|
|
|
} from "@opencode-ai/sdk"
|
|
} from "@opencode-ai/sdk"
|
|
|
import type { BunShell } from "./shell"
|
|
import type { BunShell } from "./shell"
|
|
|
|
|
|
|
@@ -20,6 +21,7 @@ export type Plugin = (input: PluginInput) => Promise<Hooks>
|
|
|
|
|
|
|
|
export interface Hooks {
|
|
export interface Hooks {
|
|
|
event?: (input: { event: Event }) => Promise<void>
|
|
event?: (input: { event: Event }) => Promise<void>
|
|
|
|
|
+ config?: (input: Config) => Promise<void>
|
|
|
auth?: {
|
|
auth?: {
|
|
|
provider: string
|
|
provider: string
|
|
|
loader?: (auth: () => Promise<Auth>, provider: Provider) => Promise<Record<string, any>>
|
|
loader?: (auth: () => Promise<Auth>, provider: Provider) => Promise<Record<string, any>>
|