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
5161
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.0.0-202509210803
to
0.0.0-dev-202510152354
+5
-1
dist/example.js
import { tool } from "./tool";
export const ExamplePlugin = async (ctx) => {
return {
permission: {},
tool: {
mytool: tool({
description: "This is a custom tool",
description: "This is a custom tool tool",
args: {

@@ -15,3 +16,6 @@ foo: tool.schema.string().describe("foo"),

},
async "chat.params"(_input, output) {
output.topP = 1;
},
};
};
+11
-9
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/plugin",
"version": "0.0.0-202509210803",
"version": "0.0.0-dev-202510152354",
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit",
"typecheck": "tsgo --noEmit",
"build": "tsc"

@@ -12,8 +12,8 @@ },

".": {
"development": "./src/index.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./tool": {
"development": "./src/tool.ts",
"import": "./dist/tool.js"
"import": "./dist/tool.js",
"types": "./dist/tool.d.ts"
}

@@ -25,3 +25,3 @@ },

"dependencies": {
"@opencode-ai/sdk": "0.0.0-202509210803",
"@opencode-ai/sdk": "0.0.0-dev-202510152354",
"zod": "4.1.8"

@@ -31,4 +31,6 @@ },

"@tsconfig/node22": "22.0.2",
"typescript": "5.8.2"
"@types/node": "22.13.9",
"typescript": "5.8.2",
"@typescript/native-preview": "7.0.0-dev.20251014.1"
}
}
}