diff options
| author | Dax Raad <[email protected]> | 2025-09-01 17:35:48 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-01 17:35:52 -0400 |
| commit | f6bc9238df9bfa95b0491bf8508459e0e6b3b83c (patch) | |
| tree | 3ebc29b4b18581d53d8d51ebef58ceda2c089fc5 /packages/plugin | |
| parent | 26f75d4e68a98ff28eac792b4ee7189b28c03b45 (diff) | |
| download | opencode-f6bc9238df9bfa95b0491bf8508459e0e6b3b83c.tar.gz opencode-f6bc9238df9bfa95b0491bf8508459e0e6b3b83c.zip | |
docs: sdk
Diffstat (limited to 'packages/plugin')
| -rw-r--r-- | packages/plugin/src/example.ts | 10 |
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 }, } |
