@opencode-ai/plugin 0.0.0-snapshot-tui-plugins-202603231259 → 0.0.0-snapshot-tui-plugins-202603231420

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 +6 -6
  2. package/package.json +2 -2
package/dist/tui.d.ts CHANGED
@@ -261,7 +261,7 @@ export type TuiLifecycle = {
261
261
  onDispose: (fn: TuiDispose) => () => void;
262
262
  };
263
263
  export type TuiPluginState = "first" | "updated" | "same";
264
- export type TuiPluginMeta = {
264
+ export type TuiPluginEntry = {
265
265
  name: string;
266
266
  source: "file" | "npm" | "internal";
267
267
  spec: string;
@@ -275,19 +275,19 @@ export type TuiPluginMeta = {
275
275
  load_count: number;
276
276
  fingerprint: string;
277
277
  };
278
- export type TuiPluginInit = {
278
+ export type TuiPluginMeta = TuiPluginEntry & {
279
279
  state: TuiPluginState;
280
- entry: TuiPluginMeta;
281
280
  };
282
- export type TuiPluginInput<Renderer = CliRenderer, Node = unknown> = {
281
+ export type TuiHostPluginApi<Renderer = CliRenderer, Node = unknown> = TuiApi<Node> & {
283
282
  client: ReturnType<typeof createOpencodeClientV2>;
284
283
  event: TuiEventBus;
285
284
  renderer: Renderer;
285
+ };
286
+ export type TuiPluginApi<Renderer = CliRenderer, Node = unknown> = TuiHostPluginApi<Renderer, Node> & {
286
287
  slots: TuiSlots;
287
- api: TuiApi<Node>;
288
288
  lifecycle: TuiLifecycle;
289
289
  };
290
- export type TuiPlugin<Renderer = CliRenderer, Node = unknown> = (input: TuiPluginInput<Renderer, Node>, options: PluginOptions | undefined, init: TuiPluginInit) => Promise<void>;
290
+ export type TuiPlugin<Renderer = CliRenderer, Node = unknown> = (api: TuiPluginApi<Renderer, Node>, options: PluginOptions | undefined, meta: TuiPluginMeta) => Promise<void>;
291
291
  export type TuiPluginModule<Renderer = CliRenderer, Node = unknown> = {
292
292
  server?: ServerPlugin;
293
293
  tui?: TuiPlugin<Renderer, Node>;
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-202603231259",
4
+ "version": "0.0.0-snapshot-tui-plugins-202603231420",
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-202603231259",
29
+ "@opencode-ai/sdk": "0.0.0-snapshot-tui-plugins-202603231420",
30
30
  "zod": "4.1.8"
31
31
  },
32
32
  "peerDependencies": {