summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMathias Beugnon <[email protected]>2025-11-09 16:39:50 +0100
committerGitHub <[email protected]>2025-11-09 09:39:50 -0600
commitd9ffe07391d91459c1d400cf4da1d451b7d526de (patch)
tree85380e6819c0279836aacfd2b7a60347e593b134
parentc0702ed8bd737ed7b54c43c66eb128d98bddf8e9 (diff)
downloadopencode-d9ffe07391d91459c1d400cf4da1d451b7d526de.tar.gz
opencode-d9ffe07391d91459c1d400cf4da1d451b7d526de.zip
fix: messageID type in chat.message (#4128)
Co-authored-by: GitHub Action <[email protected]>
-rw-r--r--packages/plugin/package.json2
-rw-r--r--packages/plugin/src/index.ts2
-rw-r--r--packages/sdk/js/package.json2
3 files changed, 3 insertions, 3 deletions
diff --git a/packages/plugin/package.json b/packages/plugin/package.json
index 77ecaa70d..2bec58c3c 100644
--- a/packages/plugin/package.json
+++ b/packages/plugin/package.json
@@ -24,4 +24,4 @@
"typescript": "catalog:",
"@typescript/native-preview": "catalog:"
}
-} \ No newline at end of file
+}
diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts
index 4b187efe7..0601e5877 100644
--- a/packages/plugin/src/index.ts
+++ b/packages/plugin/src/index.ts
@@ -144,7 +144,7 @@ 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 },
output: { message: UserMessage; parts: Part[] },
) => Promise<void>
/**
diff --git a/packages/sdk/js/package.json b/packages/sdk/js/package.json
index 89d0abe34..b32463519 100644
--- a/packages/sdk/js/package.json
+++ b/packages/sdk/js/package.json
@@ -26,4 +26,4 @@
"publishConfig": {
"directory": "dist"
}
-} \ No newline at end of file
+}