@opencode-ai/plugin 0.15.31 → 1.0.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/example.js +1 -5
- package/package.json +2 -2
package/dist/example.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { tool } from "./tool";
|
|
2
2
|
export const ExamplePlugin = async (ctx) => {
|
|
3
3
|
return {
|
|
4
|
-
permission: {},
|
|
5
4
|
tool: {
|
|
6
5
|
mytool: tool({
|
|
7
|
-
description: "This is a custom tool
|
|
6
|
+
description: "This is a custom tool",
|
|
8
7
|
args: {
|
|
9
8
|
foo: tool.schema.string().describe("foo"),
|
|
10
9
|
},
|
|
@@ -13,8 +12,5 @@ export const ExamplePlugin = async (ctx) => {
|
|
|
13
12
|
},
|
|
14
13
|
}),
|
|
15
14
|
},
|
|
16
|
-
async "chat.params"(_input, output) {
|
|
17
|
-
output.topP = 1;
|
|
18
|
-
},
|
|
19
15
|
};
|
|
20
16
|
};
|
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": "0.
|
|
4
|
+
"version": "1.0.1",
|
|
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": "0.
|
|
24
|
+
"@opencode-ai/sdk": "1.0.1",
|
|
25
25
|
"zod": "4.1.8"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|