@opencode/plugin 2.0.16 → 2.0.18

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/context.d.ts +14 -0
  2. package/package.json +12 -12
@@ -438,6 +438,20 @@ export interface UI {
438
438
  /** Closes an open tab, or the active tab when omitted, and returns false when no tab matched. */
439
439
  close(sessionID?: string): boolean;
440
440
  };
441
+ readonly model: {
442
+ /** The prompt's selected model; variant is undefined for the model default. Reactive when read in a Solid computation. */
443
+ current(): {
444
+ readonly providerID: string;
445
+ readonly modelID: string;
446
+ readonly variant?: string;
447
+ } | undefined;
448
+ readonly variant: {
449
+ /** Variant IDs of the selected model. Reactive when read in a Solid computation. */
450
+ list(): readonly string[];
451
+ /** Selects a variant of the selected model, or the model default when undefined. Returns false when no model is selected or the variant is unavailable. */
452
+ set(variant: string | undefined): boolean;
453
+ };
454
+ };
441
455
  /** Claims a place in the slot tree; see SlotClaim. */
442
456
  readonly slot: (claim: SlotClaim) => () => void;
443
457
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/plugin",
4
- "version": "2.0.16",
4
+ "version": "2.0.18",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -43,19 +43,19 @@
43
43
  ],
44
44
  "dependencies": {
45
45
  "@ai-sdk/provider": "3.0.8",
46
- "@opencode/ai": "2.0.16",
47
- "@opencode/client": "2.0.16",
48
- "@opencode/protocol": "2.0.16",
49
- "@opencode/schema": "2.0.16",
50
- "@opencode/util": "2.0.16",
46
+ "@opencode/ai": "2.0.18",
47
+ "@opencode/client": "2.0.18",
48
+ "@opencode/protocol": "2.0.18",
49
+ "@opencode/schema": "2.0.18",
50
+ "@opencode/util": "2.0.18",
51
51
  "@standard-schema/spec": "1.1.0",
52
52
  "effect": "4.0.0-rc.112",
53
53
  "zod": "4.1.8"
54
54
  },
55
55
  "peerDependencies": {
56
- "@opencode/theme": "2.0.16",
57
- "@opentui/core": ">=0.5.10",
58
- "@opentui/solid": ">=0.5.10",
56
+ "@opencode/theme": "2.0.18",
57
+ "@opentui/core": ">=0.5.12",
58
+ "@opentui/solid": ">=0.5.12",
59
59
  "solid-js": ">=1.9.0"
60
60
  },
61
61
  "peerDependenciesMeta": {
@@ -73,9 +73,9 @@
73
73
  }
74
74
  },
75
75
  "devDependencies": {
76
- "@opencode/theme": "2.0.16",
77
- "@opentui/core": "0.5.10",
78
- "@opentui/solid": "0.5.10",
76
+ "@opencode/theme": "2.0.18",
77
+ "@opentui/core": "0.5.12",
78
+ "@opentui/solid": "0.5.12",
79
79
  "@tsconfig/bun": "1.0.9",
80
80
  "@tsconfig/node22": "22.0.2",
81
81
  "@types/bun": "1.4.0",