@opencode-ai/plugin 0.0.0-next-16497 → 0.0.0-next-16499

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.
@@ -293,6 +293,25 @@ export interface UI {
293
293
  navigate(destination: Destination): void;
294
294
  current(): Route;
295
295
  };
296
+ readonly tabs: {
297
+ /** Returns whether session tabs are enabled for this TUI. */
298
+ enabled(): boolean;
299
+ /** Returns the currently open root-session tabs. Reactive when read in a Solid computation. */
300
+ list(): readonly {
301
+ readonly sessionID: string;
302
+ readonly title?: string;
303
+ readonly active: boolean;
304
+ readonly busy: boolean;
305
+ readonly attention: boolean;
306
+ readonly unread?: "activity" | "error";
307
+ }[];
308
+ /** Opens (or focuses) a tab for a session, adding it when not already open. Returns false when tabs are disabled. */
309
+ open(sessionID: string): boolean;
310
+ /** Focuses an already-open tab and returns false when it is not open. */
311
+ focus(sessionID: string): boolean;
312
+ /** Closes an open tab, or the active tab when omitted, and returns false when no tab matched. */
313
+ close(sessionID?: string): boolean;
314
+ };
296
315
  readonly slot: <Name extends SlotName>(name: Name, render: Slot<Name>) => () => void;
297
316
  }
298
317
  export interface Context {
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-next-16497",
4
+ "version": "0.0.0-next-16499",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -36,16 +36,16 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@ai-sdk/provider": "3.0.8",
39
- "@opencode-ai/ai": "0.0.0-next-16497",
40
- "@opencode-ai/client": "0.0.0-next-16497",
41
- "@opencode-ai/schema": "0.0.0-next-16497",
39
+ "@opencode-ai/ai": "0.0.0-next-16499",
40
+ "@opencode-ai/client": "0.0.0-next-16499",
41
+ "@opencode-ai/schema": "0.0.0-next-16499",
42
42
  "@opencode-ai/sdk": "1.18.5",
43
43
  "@standard-schema/spec": "1.1.0",
44
44
  "effect": "4.0.0-beta.101",
45
45
  "zod": "4.1.8"
46
46
  },
47
47
  "peerDependencies": {
48
- "@opencode-ai/theme": "0.0.0-next-16497",
48
+ "@opencode-ai/theme": "0.0.0-next-16499",
49
49
  "@opentui/core": ">=0.4.5",
50
50
  "@opentui/keymap": ">=0.4.5",
51
51
  "@opentui/solid": ">=0.4.5",
@@ -69,7 +69,7 @@
69
69
  }
70
70
  },
71
71
  "devDependencies": {
72
- "@opencode-ai/theme": "0.0.0-next-16497",
72
+ "@opencode-ai/theme": "0.0.0-next-16499",
73
73
  "@opentui/core": "0.4.5",
74
74
  "@opentui/keymap": "0.4.5",
75
75
  "@opentui/solid": "0.4.5",