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

@opencode-ai/plugin

Package Overview
Maintainers
2
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/plugin - npm Package Compare versions

Source code not available
We could not scan this package. Some page functionalities have been disabled
Comparing version
0.0.0-next-16420
to
0.0.0-next-16474
+17
-5
dist/tui/context.d.ts
import type { AgentInfo, CommandInfo, FormInfo, IntegrationInfo, LocationRef, McpResource, McpServer, ModelInfo, OpenCodeClient, OpenCodeEvent, PermissionSavedInfo, PermissionRequest, ProviderInfo, ReferenceInfo, SessionInfo, SessionMessageInfo, SessionPendingInfo, ShellInfo, SkillInfo } from "@opencode-ai/client";
import type { ResolvedTheme } from "@opencode-ai/theme/tui";
import type { CliRenderer, KeyEvent, Renderable } from "@opentui/core";
import type { JSX } from "@opentui/solid";
import type { Store } from "solid-js/store";
export interface Storage {
store<Value extends object>(key: string, options: {
readonly initial: Value;
}): readonly [Store<Value>, (mutation: (draft: Value) => void) => Promise<void>];
}
interface LocationCollection<Value> {

@@ -102,2 +109,6 @@ list(location?: LocationRef): Value[] | undefined;

readonly "home.footer": Readonly<Record<string, never>>;
readonly "prompt.footer.end": {
readonly sessionID?: string;
readonly mode: "normal" | "shell";
};
readonly "sidebar.content": {

@@ -187,7 +198,7 @@ readonly sessionID: string;

export interface Dialog {
/** Shows a dialog and returns a function that closes it. */
show(render: () => JSX.Element, onClose?: () => void): () => void;
/** Sets the presentation options for this plugin's active dialog. */
/** Shows a dialog. */
show(render: () => JSX.Element, onClose?: () => void): void;
/** Sets the active dialog's presentation options. */
set(options: DialogOptions): void;
/** Closes this plugin's active dialog. */
/** Closes the active dialog. */
clear(): void;

@@ -293,6 +304,7 @@ alert(options: DialogAlertOptions): Promise<void>;

readonly attention: Attention;
readonly theme: any;
readonly theme: ResolvedTheme;
readonly keymap: Keymap;
readonly storage: Storage;
readonly ui: UI;
}
export {};
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/plugin",
"version": "0.0.0-next-16420",
"version": "0.0.0-next-16474",
"type": "module",

@@ -39,5 +39,5 @@ "license": "MIT",

"@ai-sdk/provider": "3.0.8",
"@opencode-ai/ai": "0.0.0-next-16420",
"@opencode-ai/client": "0.0.0-next-16420",
"@opencode-ai/schema": "0.0.0-next-16420",
"@opencode-ai/ai": "0.0.0-next-16474",
"@opencode-ai/client": "0.0.0-next-16474",
"@opencode-ai/schema": "0.0.0-next-16474",
"@opencode-ai/sdk": "1.18.5",

@@ -49,2 +49,3 @@ "@standard-schema/spec": "1.1.0",

"peerDependencies": {
"@opencode-ai/theme": "0.0.0-next-16474",
"@opentui/core": ">=0.4.5",

@@ -56,2 +57,5 @@ "@opentui/keymap": ">=0.4.5",

"peerDependenciesMeta": {
"@opencode-ai/theme": {
"optional": true
},
"@opentui/core": {

@@ -71,2 +75,3 @@ "optional": true

"devDependencies": {
"@opencode-ai/theme": "0.0.0-next-16474",
"@opentui/core": "0.4.5",

@@ -73,0 +78,0 @@ "@opentui/keymap": "0.4.5",