@opencode-ai/plugin 0.0.0-snapshot-tui-plugins-202603262348 → 0.0.0-snapshot-tui-plugins-202603271323

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 +14 -0
  2. package/package.json +2 -2
package/dist/tui.d.ts CHANGED
@@ -291,6 +291,18 @@ export type TuiPluginStatus = {
291
291
  enabled: boolean;
292
292
  active: boolean;
293
293
  };
294
+ export type TuiPluginInstallOptions = {
295
+ global?: boolean;
296
+ };
297
+ export type TuiPluginInstallResult = {
298
+ ok: true;
299
+ dir: string;
300
+ tui: boolean;
301
+ } | {
302
+ ok: false;
303
+ message: string;
304
+ missing?: boolean;
305
+ };
294
306
  export type TuiWorkspace = {
295
307
  current: () => string | undefined;
296
308
  set: (workspaceID?: string) => void;
@@ -334,6 +346,8 @@ export type TuiPluginApi = {
334
346
  list: () => ReadonlyArray<TuiPluginStatus>;
335
347
  activate: (id: string) => Promise<boolean>;
336
348
  deactivate: (id: string) => Promise<boolean>;
349
+ add: (spec: string) => Promise<boolean>;
350
+ install: (spec: string, options?: TuiPluginInstallOptions) => Promise<TuiPluginInstallResult>;
337
351
  };
338
352
  lifecycle: TuiLifecycle;
339
353
  };
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-202603262348",
4
+ "version": "0.0.0-snapshot-tui-plugins-202603271323",
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-202603262348",
29
+ "@opencode-ai/sdk": "0.0.0-snapshot-tui-plugins-202603271323",
30
30
  "zod": "4.1.8"
31
31
  },
32
32
  "peerDependencies": {