diff options
| author | Aiden Cline <[email protected]> | 2026-01-21 15:09:56 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2026-01-21 15:10:08 -0600 |
| commit | c89f6e7ac61e0dd5404888df87555627efce6087 (patch) | |
| tree | ec91cad94ac94ab931bf2f441b483ddd316adb82 /packages/plugin/src | |
| parent | 17a5f75b543b2a6f30fecc87b3c5444e9264d239 (diff) | |
| download | opencode-c89f6e7ac61e0dd5404888df87555627efce6087.tar.gz opencode-c89f6e7ac61e0dd5404888df87555627efce6087.zip | |
add chat.headers hook, adjust codex and copilot plugins to use it
Diffstat (limited to 'packages/plugin/src')
| -rw-r--r-- | packages/plugin/src/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts index 36a4657d7..d02c8bfe5 100644 --- a/packages/plugin/src/index.ts +++ b/packages/plugin/src/index.ts @@ -172,6 +172,10 @@ export interface Hooks { input: { sessionID: string; agent: string; model: Model; provider: ProviderContext; message: UserMessage }, output: { temperature: number; topP: number; topK: number; options: Record<string, any> }, ) => Promise<void> + "chat.headers"?: ( + input: { sessionID: string; agent: string; model: Model; provider: ProviderContext; message: UserMessage }, + output: { headers: Record<string, string> }, + ) => Promise<void> "permission.ask"?: (input: Permission, output: { status: "ask" | "deny" | "allow" }) => Promise<void> "command.execute.before"?: ( input: { command: string; sessionID: string; arguments: string }, |
