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
5051
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.4.45
to
0.5.1
+36
-1
dist/index.d.ts

@@ -1,2 +0,2 @@

import type { Event, createOpencodeClient, App, Model, Provider, Permission, UserMessage, Part } from "@opencode-ai/sdk";
import type { Event, createOpencodeClient, App, Model, Provider, Permission, UserMessage, Part, Auth } from "@opencode-ai/sdk";
import type { BunShell } from "./shell";

@@ -13,2 +13,37 @@ export type PluginInput = {

}) => Promise<void>;
auth?: {
provider: string;
loader?: (auth: () => Promise<Auth>, provider: Provider) => Promise<Record<string, any>>;
methods: ({
type: "oauth";
label: string;
authorize(): Promise<{
url: string;
instructions: string;
} & ({
method: "auto";
callback(): Promise<{
type: "success";
refresh: string;
access: string;
expires: number;
} | {
type: "failed";
}>;
} | {
method: "code";
callback(code: string): Promise<{
type: "success";
refresh: string;
access: string;
expires: number;
} | {
type: "failed";
}>;
})>;
} | {
type: "api";
label: string;
})[];
};
/**

@@ -15,0 +50,0 @@ * Called when a new message is received

+1
-1
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/plugin",
"version": "0.4.45",
"version": "0.5.1",
"type": "module",

@@ -6,0 +6,0 @@ "scripts": {