summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-11-10 13:44:12 +0000
committerDavid Hill <[email protected]>2025-11-10 13:44:12 +0000
commitc6e830c954418808dc39284a1c073aa63a6d4d21 (patch)
tree9c3052e0509115188768a553c0be5a8441ebdd96 /packages/plugin
parent7088bfabd773e2f076aab1c9d2468c04feff0570 (diff)
parentfc78c28df64383a9f99382093f61fc28caf6569f (diff)
downloadopencode-c6e830c954418808dc39284a1c073aa63a6d4d21.tar.gz
opencode-c6e830c954418808dc39284a1c073aa63a6d4d21.zip
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'packages/plugin')
-rw-r--r--packages/plugin/package.json2
-rw-r--r--packages/plugin/src/index.ts7
-rw-r--r--packages/plugin/sst-env.d.ts2
3 files changed, 7 insertions, 4 deletions
diff --git a/packages/plugin/package.json b/packages/plugin/package.json
index 0ad4afe63..2bcc7c308 100644
--- a/packages/plugin/package.json
+++ b/packages/plugin/package.json
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/plugin",
- "version": "1.0.23",
+ "version": "1.0.55",
"type": "module",
"scripts": {
"typecheck": "tsgo --noEmit",
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>
diff --git a/packages/plugin/sst-env.d.ts b/packages/plugin/sst-env.d.ts
index b6a7e9066..0397645b5 100644
--- a/packages/plugin/sst-env.d.ts
+++ b/packages/plugin/sst-env.d.ts
@@ -6,4 +6,4 @@
/// <reference path="../../sst-env.d.ts" />
import "sst"
-export {} \ No newline at end of file
+export {}