diff options
| author | Dax Raad <[email protected]> | 2025-08-21 11:22:13 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-21 11:22:24 -0400 |
| commit | 4518f96e3dee9cd70209c40fba7444722a9c7020 (patch) | |
| tree | 2c52a1824553aa0241084991f1233df3a694e357 /packages/plugin/src | |
| parent | a9dcbedf99c5f8fd5d170e7f2e699f82c9f27ff1 (diff) | |
| download | opencode-4518f96e3dee9cd70209c40fba7444722a9c7020.tar.gz opencode-4518f96e3dee9cd70209c40fba7444722a9c7020.zip | |
add plugin hook for config
Diffstat (limited to 'packages/plugin/src')
| -rw-r--r-- | packages/plugin/src/index.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts index a214af110..5483607a6 100644 --- a/packages/plugin/src/index.ts +++ b/packages/plugin/src/index.ts @@ -8,6 +8,7 @@ import type { UserMessage, Part, Auth, + Config, } from "@opencode-ai/sdk" import type { BunShell } from "./shell" @@ -20,6 +21,7 @@ export type Plugin = (input: PluginInput) => Promise<Hooks> export interface Hooks { event?: (input: { event: Event }) => Promise<void> + config?: (input: Config) => Promise<void> auth?: { provider: string loader?: (auth: () => Promise<Auth>, provider: Provider) => Promise<Record<string, any>> |
