@ex-machina/opencode-plugin 1.1.53-exmachina.2 → 1.2.11-exmachina.1
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 +12 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -191,6 +191,8 @@ export interface Hooks {
|
|
|
191
191
|
}) => Promise<void>;
|
|
192
192
|
"shell.env"?: (input: {
|
|
193
193
|
cwd: string;
|
|
194
|
+
sessionID?: string;
|
|
195
|
+
callID?: string;
|
|
194
196
|
}, output: {
|
|
195
197
|
env: Record<string, string>;
|
|
196
198
|
}) => Promise<void>;
|
|
@@ -198,6 +200,7 @@ export interface Hooks {
|
|
|
198
200
|
tool: string;
|
|
199
201
|
sessionID: string;
|
|
200
202
|
callID?: string;
|
|
203
|
+
args: any;
|
|
201
204
|
}, output: {
|
|
202
205
|
title: string;
|
|
203
206
|
output: string;
|
|
@@ -235,4 +238,13 @@ export interface Hooks {
|
|
|
235
238
|
}, output: {
|
|
236
239
|
text: string;
|
|
237
240
|
}) => Promise<void>;
|
|
241
|
+
/**
|
|
242
|
+
* Modify tool definitions (description and parameters) sent to LLM
|
|
243
|
+
*/
|
|
244
|
+
"tool.definition"?: (input: {
|
|
245
|
+
toolID: string;
|
|
246
|
+
}, output: {
|
|
247
|
+
description: string;
|
|
248
|
+
parameters: any;
|
|
249
|
+
}) => Promise<void>;
|
|
238
250
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@ex-machina/opencode-plugin",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.11-exmachina.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ex-machina/opencode-sdk": "1.
|
|
25
|
+
"@ex-machina/opencode-sdk": "1.2.11-exmachina.1",
|
|
26
26
|
"zod": "4.1.8"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|