You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@opencode-ai/plugin

Package Overview
Dependencies
Maintainers
2
Versions
5048
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/plugin - npm Package Compare versions

Comparing version
0.5.29
to
0.6.0
+2
-2
dist/example.js

@@ -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 @@ },

@@ -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 @@ };

{
"$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": {