From c89f6e7ac61e0dd5404888df87555627efce6087 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Wed, 21 Jan 2026 15:09:56 -0600 Subject: add chat.headers hook, adjust codex and copilot plugins to use it --- packages/plugin/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/plugin/src/index.ts') 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 }, ) => Promise + "chat.headers"?: ( + input: { sessionID: string; agent: string; model: Model; provider: ProviderContext; message: UserMessage }, + output: { headers: Record }, + ) => Promise "permission.ask"?: (input: Permission, output: { status: "ask" | "deny" | "allow" }) => Promise "command.execute.before"?: ( input: { command: string; sessionID: string; arguments: string }, -- cgit v1.2.3