@opencode-ai/plugin 0.0.0-snapshot-tui-plugins-202603251937 → 0.0.0-snapshot-tui-plugins-202603252148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/tui.d.ts +18 -1
  2. package/package.json +2 -2
package/dist/tui.d.ts CHANGED
@@ -208,7 +208,9 @@ export type TuiState = {
208
208
  lsp: () => ReadonlyArray<TuiSidebarLspItem>;
209
209
  mcp: () => ReadonlyArray<TuiSidebarMcpItem>;
210
210
  };
211
- type TuiConfigView = Pick<PluginConfig, "$schema" | "theme" | "keybinds" | "plugin"> & NonNullable<PluginConfig["tui"]>;
211
+ type TuiConfigView = Pick<PluginConfig, "$schema" | "theme" | "keybinds" | "plugin"> & NonNullable<PluginConfig["tui"]> & {
212
+ plugin_enabled?: Record<string, boolean>;
213
+ };
212
214
  export type TuiApp = {
213
215
  readonly version: string;
214
216
  };
@@ -281,6 +283,15 @@ export type TuiPluginEntry = {
281
283
  export type TuiPluginMeta = TuiPluginEntry & {
282
284
  state: TuiPluginState;
283
285
  };
286
+ export type TuiPluginStatus = {
287
+ id: string;
288
+ name: string;
289
+ source: TuiPluginEntry["source"];
290
+ spec: string;
291
+ target: string;
292
+ enabled: boolean;
293
+ active: boolean;
294
+ };
284
295
  export type TuiWorkspace = {
285
296
  current: () => string | undefined;
286
297
  set: (workspaceID?: string) => void;
@@ -320,10 +331,16 @@ export type TuiPluginApi = {
320
331
  event: TuiEventBus;
321
332
  renderer: CliRenderer;
322
333
  slots: TuiSlots;
334
+ plugins: {
335
+ list: () => ReadonlyArray<TuiPluginStatus>;
336
+ activate: (id: string) => Promise<boolean>;
337
+ deactivate: (id: string) => Promise<boolean>;
338
+ };
323
339
  lifecycle: TuiLifecycle;
324
340
  };
325
341
  export type TuiPlugin = (api: TuiPluginApi, options: PluginOptions | undefined, meta: TuiPluginMeta) => Promise<void>;
326
342
  export type TuiPluginModule = {
343
+ id?: string;
327
344
  server?: Plugin;
328
345
  tui?: TuiPlugin;
329
346
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/plugin",
4
- "version": "0.0.0-snapshot-tui-plugins-202603251937",
4
+ "version": "0.0.0-snapshot-tui-plugins-202603252148",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@opencode-ai/sdk": "0.0.0-snapshot-tui-plugins-202603251937",
29
+ "@opencode-ai/sdk": "0.0.0-snapshot-tui-plugins-202603252148",
30
30
  "zod": "4.1.8"
31
31
  },
32
32
  "peerDependencies": {