@opencode-ai/plugin 0.0.0-next-15585 → 0.0.0-next-15587

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.
@@ -116,13 +116,13 @@ export interface KeymapCommand {
116
116
  readonly slash?: {
117
117
  readonly name: string;
118
118
  readonly aliases?: string[];
119
+ /** Keeps the slash command in the prompt and passes its raw input to run. */
120
+ readonly arguments?: true;
119
121
  };
120
- /** Hides the command from discovery UI. */
121
- readonly hidden?: boolean;
122
122
  /** Promotes the command in discovery UI. */
123
123
  readonly suggested?: boolean | (() => boolean);
124
124
  /** Executes the command. Return false to let keymap dispatch continue. */
125
- readonly run: () => void | false | Promise<void>;
125
+ readonly run: (input?: string) => void | false | Promise<void>;
126
126
  }
127
127
  export interface KeymapLayer {
128
128
  /** Limits the layer to one OpenCode input mode. Use global to opt out; defaults to base. */
@@ -142,7 +142,7 @@ export interface Keymap {
142
142
  /** Creates a reactive keymap layer owned by the calling component. */
143
143
  layer(input: () => KeymapLayer): void;
144
144
  /** Dispatches a reachable command by ID. */
145
- dispatch(id: string): void;
145
+ dispatch(id: string, input?: string): void;
146
146
  /** Returns the formatted shortcut for a registered command. */
147
147
  shortcut(id: string): string | undefined;
148
148
  /** Controls mutually exclusive OpenCode input modes. */
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-15585",
4
+ "version": "0.0.0-next-15587",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -52,9 +52,9 @@
52
52
  ],
53
53
  "dependencies": {
54
54
  "@ai-sdk/provider": "3.0.8",
55
- "@opencode-ai/client": "0.0.0-next-15585",
56
- "@opencode-ai/schema": "0.0.0-next-15585",
57
- "@opencode-ai/sdk": "0.0.0-next-15585",
55
+ "@opencode-ai/client": "0.0.0-next-15587",
56
+ "@opencode-ai/schema": "0.0.0-next-15587",
57
+ "@opencode-ai/sdk": "0.0.0-next-15587",
58
58
  "effect": "4.0.0-beta.83",
59
59
  "zod": "4.1.8"
60
60
  },