@opencode-ai/plugin 1.0.49 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +11 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -107,7 +107,15 @@ export interface Hooks {
|
|
|
107
107
|
/**
|
|
108
108
|
* Called when a new message is received
|
|
109
109
|
*/
|
|
110
|
-
"chat.message"?: (input: {
|
|
110
|
+
"chat.message"?: (input: {
|
|
111
|
+
sessionID: string;
|
|
112
|
+
agent?: string;
|
|
113
|
+
model?: {
|
|
114
|
+
providerID: string;
|
|
115
|
+
modelID: string;
|
|
116
|
+
messageID?: string;
|
|
117
|
+
};
|
|
118
|
+
}, output: {
|
|
111
119
|
message: UserMessage;
|
|
112
120
|
parts: Part[];
|
|
113
121
|
}) => Promise<void>;
|
|
@@ -115,6 +123,8 @@ export interface Hooks {
|
|
|
115
123
|
* Modify parameters sent to LLM
|
|
116
124
|
*/
|
|
117
125
|
"chat.params"?: (input: {
|
|
126
|
+
sessionID: string;
|
|
127
|
+
agent: string;
|
|
118
128
|
model: Model;
|
|
119
129
|
provider: Provider;
|
|
120
130
|
message: UserMessage;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/plugin",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.50",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsgo --noEmit",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@opencode-ai/sdk": "1.0.
|
|
24
|
+
"@opencode-ai/sdk": "1.0.50",
|
|
25
25
|
"zod": "4.1.8"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|