summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-01-04 00:28:52 -0600
committerAiden Cline <[email protected]>2026-01-04 00:28:52 -0600
commit5aa4fd0042065951f3a22f5e17688dc00901b8df (patch)
tree5b69d0e90629e6b0b66b86bc319f6ed5d8c9bdfd /packages/plugin
parentb934c22d8de2ddcf583a653c37d30a74532527af (diff)
downloadopencode-5aa4fd0042065951f3a22f5e17688dc00901b8df.tar.gz
opencode-5aa4fd0042065951f3a22f5e17688dc00901b8df.zip
core: add variant to chat.message input
Diffstat (limited to 'packages/plugin')
-rw-r--r--packages/plugin/src/index.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts
index 5653f19d9..bf9b6e8c2 100644
--- a/packages/plugin/src/index.ts
+++ b/packages/plugin/src/index.ts
@@ -154,7 +154,13 @@ export interface Hooks {
* Called when a new message is received
*/
"chat.message"?: (
- input: { sessionID: string; agent?: string; model?: { providerID: string; modelID: string }; messageID?: string },
+ input: {
+ sessionID: string
+ agent?: string
+ model?: { providerID: string; modelID: string }
+ messageID?: string
+ variant?: string
+ },
output: { message: UserMessage; parts: Part[] },
) => Promise<void>
/**