diff options
| author | David Hill <[email protected]> | 2025-11-10 13:44:12 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2025-11-10 13:44:12 +0000 |
| commit | c6e830c954418808dc39284a1c073aa63a6d4d21 (patch) | |
| tree | 9c3052e0509115188768a553c0be5a8441ebdd96 /packages/plugin/src | |
| parent | 7088bfabd773e2f076aab1c9d2468c04feff0570 (diff) | |
| parent | fc78c28df64383a9f99382093f61fc28caf6569f (diff) | |
| download | opencode-c6e830c954418808dc39284a1c073aa63a6d4d21.tar.gz opencode-c6e830c954418808dc39284a1c073aa63a6d4d21.zip | |
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'packages/plugin/src')
| -rw-r--r-- | packages/plugin/src/index.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts index f103749bd..0601e5877 100644 --- a/packages/plugin/src/index.ts +++ b/packages/plugin/src/index.ts @@ -143,12 +143,15 @@ export interface Hooks { /** * Called when a new message is received */ - "chat.message"?: (input: {}, output: { message: UserMessage; parts: Part[] }) => Promise<void> + "chat.message"?: ( + input: { sessionID: string; agent?: string; model?: { providerID: string; modelID: string }; messageID?: string }, + output: { message: UserMessage; parts: Part[] }, + ) => Promise<void> /** * Modify parameters sent to LLM */ "chat.params"?: ( - input: { model: Model; provider: Provider; message: UserMessage }, + input: { sessionID: string; agent: string; model: Model; provider: Provider; message: UserMessage }, output: { temperature: number; topP: number; options: Record<string, any> }, ) => Promise<void> "permission.ask"?: (input: Permission, output: { status: "ask" | "deny" | "allow" }) => Promise<void> |
