🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@opencode-ai/plugin

Package Overview
Dependencies
Maintainers
2
Versions
9603
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-next-15527
to
0.0.0-next-15537
+24
-15
dist/v2/tui/context.d.ts

@@ -69,24 +69,33 @@ import type { AgentInfo, CommandInfo, FormInfo, IntegrationInfo, LocationRef, McpResource, McpServer, ModelInfo, OpenCodeClient, OpenCodeEvent, PermissionSavedInfo, PermissionV2Request, ProviderV2Info, ReferenceInfo, SessionInfo, SessionMessageInfo, SessionPendingInfo, ShellInfo, SkillInfo } from "@opencode-ai/client";

}
export interface RouteDefinition {
export type Route = {
readonly type: "home";
} | {
readonly type: "session";
readonly sessionID: string;
} | {
readonly type: "plugin";
readonly id: string;
readonly name: string;
readonly data?: Record<string, any>;
};
export type Destination = Route | Omit<Extract<Route, {
readonly type: "plugin";
}>, "id">;
export interface Page {
readonly name: string;
readonly render: (input: {
readonly params: any;
readonly data?: Record<string, any>;
}) => JSX.Element;
}
export interface Route {
register(definition: RouteDefinition): () => void;
navigate(input: {
readonly name: string;
readonly params?: any;
}): void;
current(): {
readonly name: string;
readonly params: any;
export type Slot = (props: Record<string, any>) => JSX.Element;
export interface UI {
readonly router: {
register(page: Page): () => void;
navigate(destination: Destination): void;
current(): Route;
};
readonly slot: (name: string, render: Slot) => () => void;
}
export interface UI {
readonly route: Route;
}
export interface Context {
readonly options: Readonly<Record<string, unknown>>;
readonly options: Readonly<Record<string, any>>;
readonly client: OpenCodeClient;

@@ -93,0 +102,0 @@ readonly data: Data;

{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/plugin",
"version": "0.0.0-next-15527",
"version": "0.0.0-next-15537",
"type": "module",

@@ -37,2 +37,6 @@ "license": "MIT",

},
"./v2/tui/*": {
"import": "./dist/v2/tui/*.js",
"types": "./dist/v2/tui/*.d.ts"
},
"./v2": {

@@ -52,5 +56,5 @@ "import": "./dist/v2/promise/index.js",

"@ai-sdk/provider": "3.0.8",
"@opencode-ai/client": "0.0.0-next-15527",
"@opencode-ai/schema": "0.0.0-next-15527",
"@opencode-ai/sdk": "0.0.0-next-15527",
"@opencode-ai/client": "0.0.0-next-15537",
"@opencode-ai/schema": "0.0.0-next-15537",
"@opencode-ai/sdk": "0.0.0-next-15537",
"effect": "4.0.0-beta.83",

@@ -57,0 +61,0 @@ "zod": "4.1.8"