summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin/src
diff options
context:
space:
mode:
authorDS <[email protected]>2025-12-14 23:51:11 -0500
committerGitHub <[email protected]>2025-12-14 22:51:11 -0600
commitb021b26e77b4982e27b77a33d51535bfd9d0ff76 (patch)
treec784f3ad144e7e1f170a4acb77f5baa210cdf850 /packages/plugin/src
parent9555d348de8d6fdc389f8f554dd28d3eb79e504d (diff)
downloadopencode-b021b26e77b4982e27b77a33d51535bfd9d0ff76.tar.gz
opencode-b021b26e77b4982e27b77a33d51535bfd9d0ff76.zip
feat: restore experimental.chat.messages.transform and add experimental.chat.system.transform hooks (#5542)
Diffstat (limited to 'packages/plugin/src')
-rw-r--r--packages/plugin/src/index.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts
index 57ca75d60..9dd4820b9 100644
--- a/packages/plugin/src/index.ts
+++ b/packages/plugin/src/index.ts
@@ -185,6 +185,12 @@ export interface Hooks {
}[]
},
) => Promise<void>
+ "experimental.chat.system.transform"?: (
+ input: {},
+ output: {
+ system: string[]
+ },
+ ) => Promise<void>
"experimental.text.complete"?: (
input: { sessionID: string; messageID: string; partID: string },
output: { text: string },