diff options
| author | Jorgen Henriksen <[email protected]> | 2025-12-11 21:38:45 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-11 14:38:45 -0600 |
| commit | 2a9269c3471f95a4c39884e03e56d242854b6b5e (patch) | |
| tree | 00371e8b1bb167b44f43703b25cca3b413076e01 /packages/plugin | |
| parent | 0efdc3a8a05fa4f78aa8dc7105aebf742aa8866f (diff) | |
| download | opencode-2a9269c3471f95a4c39884e03e56d242854b6b5e.tar.gz opencode-2a9269c3471f95a4c39884e03e56d242854b6b5e.zip | |
add experimental.chat.messages.transform hook (#5207)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/plugin')
| -rw-r--r-- | packages/plugin/src/index.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts index f00e90482..57ca75d60 100644 --- a/packages/plugin/src/index.ts +++ b/packages/plugin/src/index.ts @@ -6,6 +6,7 @@ import type { Provider, Permission, UserMessage, + Message, Part, Auth, Config, @@ -175,6 +176,15 @@ export interface Hooks { metadata: any }, ) => Promise<void> + "experimental.chat.messages.transform"?: ( + input: {}, + output: { + messages: { + info: Message + parts: Part[] + }[] + }, + ) => Promise<void> "experimental.text.complete"?: ( input: { sessionID: string; messageID: string; partID: string }, output: { text: string }, |
