From 4518f96e3dee9cd70209c40fba7444722a9c7020 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 21 Aug 2025 11:22:13 -0400 Subject: add plugin hook for config --- packages/plugin/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/plugin/src') 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 export interface Hooks { event?: (input: { event: Event }) => Promise + config?: (input: Config) => Promise auth?: { provider: string loader?: (auth: () => Promise, provider: Provider) => Promise> -- cgit v1.2.3