diff options
Diffstat (limited to 'packages/plugin')
| -rw-r--r-- | packages/plugin/package.json | 2 | ||||
| -rw-r--r-- | packages/plugin/src/index.ts | 7 | ||||
| -rw-r--r-- | packages/plugin/sst-env.d.ts | 2 |
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 {} |
