summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin/src
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-09-01 17:35:48 -0400
committerDax Raad <[email protected]>2025-09-01 17:35:52 -0400
commitf6bc9238df9bfa95b0491bf8508459e0e6b3b83c (patch)
tree3ebc29b4b18581d53d8d51ebef58ceda2c089fc5 /packages/plugin/src
parent26f75d4e68a98ff28eac792b4ee7189b28c03b45 (diff)
downloadopencode-f6bc9238df9bfa95b0491bf8508459e0e6b3b83c.tar.gz
opencode-f6bc9238df9bfa95b0491bf8508459e0e6b3b83c.zip
docs: sdk
Diffstat (limited to 'packages/plugin/src')
-rw-r--r--packages/plugin/src/example.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/plugin/src/example.ts b/packages/plugin/src/example.ts
index a13c0fbac..04c48c918 100644
--- a/packages/plugin/src/example.ts
+++ b/packages/plugin/src/example.ts
@@ -1,9 +1,15 @@
import { Plugin } from "./index"
-export const ExamplePlugin: Plugin = async ({ client, $ }) => {
+export const ExamplePlugin: Plugin = async ({
+ client: _client,
+ $: _shell,
+ project: _project,
+ directory: _directory,
+ worktree: _worktree,
+}) => {
return {
permission: {},
- async "chat.params"(input, output) {
+ async "chat.params"(_input, output) {
output.topP = 1
},
}