@opencode-ai/plugin 0.0.0-next-15586 → 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,11 +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
122
  /** Promotes the command in discovery UI. */
121
123
  readonly suggested?: boolean | (() => boolean);
122
124
  /** Executes the command. Return false to let keymap dispatch continue. */
123
- readonly run: () => void | false | Promise<void>;
125
+ readonly run: (input?: string) => void | false | Promise<void>;
124
126
  }
125
127
  export interface KeymapLayer {
126
128
  /** Limits the layer to one OpenCode input mode. Use global to opt out; defaults to base. */
@@ -140,7 +142,7 @@ export interface Keymap {
140
142
  /** Creates a reactive keymap layer owned by the calling component. */
141
143
  layer(input: () => KeymapLayer): void;
142
144
  /** Dispatches a reachable command by ID. */
143
- dispatch(id: string): void;
145
+ dispatch(id: string, input?: string): void;
144
146
  /** Returns the formatted shortcut for a registered command. */
145
147
  shortcut(id: string): string | undefined;
146
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-15586",
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-15586",
56
- "@opencode-ai/schema": "0.0.0-next-15586",
57
- "@opencode-ai/sdk": "0.0.0-next-15586",
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
  },