@opencode/plugin 0.0.0-dev-20530 → 0.0.0-dev-20532

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.
@@ -302,11 +302,27 @@ export interface DialogSelectOption<Value> {
302
302
  readonly category?: string;
303
303
  readonly disabled?: boolean;
304
304
  }
305
+ export type DialogSelectAction<Value> = {
306
+ readonly bind: string;
307
+ readonly title: string;
308
+ readonly side?: "left" | "right";
309
+ } & ({
310
+ /** Unavailable while no option is selected. */
311
+ readonly selection?: "required";
312
+ readonly onTrigger: (value: Value) => void;
313
+ } | {
314
+ readonly selection: "none";
315
+ readonly onTrigger: () => void;
316
+ });
305
317
  export interface DialogSelectOptions<Value> {
306
318
  readonly title: string;
307
319
  readonly placeholder?: string;
308
320
  readonly options: readonly DialogSelectOption<Value>[];
309
321
  readonly current?: Value;
322
+ /** Returns matching options in display order, including for an empty query. Receives only enabled options. Results are listed flat. */
323
+ readonly search?: (query: string, options: readonly DialogSelectOption<Value>[]) => readonly DialogSelectOption<Value>[];
324
+ /** Footer actions, also triggered by their bindings. Triggering one does not close the dialog. */
325
+ readonly actions?: readonly DialogSelectAction<Value>[];
310
326
  }
311
327
  export interface Dialog {
312
328
  /** Shows a dialog. */
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": "0.0.0-dev-20530",
4
+ "version": "0.0.0-dev-20532",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -43,17 +43,17 @@
43
43
  ],
44
44
  "dependencies": {
45
45
  "@ai-sdk/provider": "3.0.8",
46
- "@opencode/ai": "0.0.0-dev-20530",
47
- "@opencode/client": "0.0.0-dev-20530",
48
- "@opencode/protocol": "0.0.0-dev-20530",
49
- "@opencode/schema": "0.0.0-dev-20530",
50
- "@opencode/util": "0.0.0-dev-20530",
46
+ "@opencode/ai": "0.0.0-dev-20532",
47
+ "@opencode/client": "0.0.0-dev-20532",
48
+ "@opencode/protocol": "0.0.0-dev-20532",
49
+ "@opencode/schema": "0.0.0-dev-20532",
50
+ "@opencode/util": "0.0.0-dev-20532",
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": "0.0.0-dev-20530",
56
+ "@opencode/theme": "0.0.0-dev-20532",
57
57
  "@opentui/core": ">=0.5.14",
58
58
  "@opentui/solid": ">=0.5.14",
59
59
  "solid-js": ">=1.9.0"
@@ -73,7 +73,7 @@
73
73
  }
74
74
  },
75
75
  "devDependencies": {
76
- "@opencode/theme": "0.0.0-dev-20530",
76
+ "@opencode/theme": "0.0.0-dev-20532",
77
77
  "@opentui/core": "0.5.14",
78
78
  "@opentui/solid": "0.5.14",
79
79
  "@tsconfig/bun": "1.0.9",