@opencode-ai/plugin 0.0.0-opentui-202510310534 → 0.0.0-v0-202510310554

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