@opencode-ai/plugin
Advanced tools
+2
-2
@@ -1,5 +0,5 @@ | ||
| export const ExamplePlugin = async ({ app, client, $ }) => { | ||
| export const ExamplePlugin = 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; | ||
@@ -6,0 +6,0 @@ }, |
+4
-2
@@ -1,6 +0,8 @@ | ||
| import type { Event, createOpencodeClient, App, Model, Provider, Permission, UserMessage, Part, Auth, Config } from "@opencode-ai/sdk"; | ||
| import type { Event, createOpencodeClient, Project, Model, Provider, Permission, UserMessage, Part, Auth, Config } from "@opencode-ai/sdk"; | ||
| import type { BunShell } from "./shell"; | ||
| export type PluginInput = { | ||
| client: ReturnType<typeof createOpencodeClient>; | ||
| app: App; | ||
| project: Project; | ||
| directory: string; | ||
| worktree: string; | ||
| $: BunShell; | ||
@@ -7,0 +9,0 @@ }; |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/plugin", | ||
| "version": "0.5.29", | ||
| "version": "0.6.0", | ||
| "type": "module", | ||
@@ -6,0 +6,0 @@ "scripts": { |
6830
1.99%214
0.94%