opencode-voice2text 0.1.4 → 0.1.5

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/README.md +8 -12
  2. package/package.json +5 -2
package/README.md CHANGED
@@ -59,28 +59,24 @@ opencode plugin opencode-voice2text@latest
59
59
 
60
60
  ## TUI config
61
61
 
62
- OpenCode's plugin installer manages the server/plugin registration, but this plugin still needs a TUI keybind, so keep this in:
62
+ The installer writes a default TUI plugin entry for you with:
63
63
 
64
- `~/.config/opencode/tui.json`
64
+ - `commandKeybind: "ctrl+s"`
65
+
66
+ You still need to make sure `terminal_suspend` does not conflict with `Ctrl+S`.
67
+
68
+ Recommended `~/.config/opencode/tui.json`:
65
69
 
66
70
  ```json
67
71
  {
68
72
  "$schema": "https://opencode.ai/tui.json",
69
73
  "keybinds": {
70
74
  "terminal_suspend": "none"
71
- },
72
- "plugin": [
73
- [
74
- "opencode-voice2text",
75
- {
76
- "commandKeybind": "ctrl+s"
77
- }
78
- ]
79
- ]
75
+ }
80
76
  }
81
77
  ```
82
78
 
83
- If you choose a different shortcut, make sure it does not conflict with an existing TUI keybind.
79
+ If you want a different shortcut, edit the generated plugin entry in `tui.json` after installation.
84
80
 
85
81
  ## Restart OpenCode
86
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-voice2text",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Streaming Volcengine speech-to-text plugin for the OpenCode TUI",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -31,7 +31,10 @@
31
31
  "import": "./dist/index.js"
32
32
  },
33
33
  "./tui": {
34
- "import": "./dist/index.js"
34
+ "import": "./dist/index.js",
35
+ "config": {
36
+ "commandKeybind": "ctrl+s"
37
+ }
35
38
  }
36
39
  },
37
40
  "scripts": {