opencode-interrupt-plugin 0.4.16 → 0.4.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.
- package/dist/tui.js +4 -3
- package/package.json +1 -1
package/dist/tui.js
CHANGED
|
@@ -111,11 +111,12 @@ async function transcribeAndSend(sessionID, directory, api) {
|
|
|
111
111
|
api.ui.toast({ variant: "success", title: "PTT", message: `Sent: "${text.slice(0, 60)}"` });
|
|
112
112
|
}
|
|
113
113
|
const tui = async (api, _options, _meta) => {
|
|
114
|
+
console.log("[interrupt] TUI plugin loaded, registering f3 keybinding");
|
|
114
115
|
api.keymap.registerLayer({
|
|
115
116
|
commands: [
|
|
116
117
|
{
|
|
117
118
|
name: "interrupt.ptt",
|
|
118
|
-
title: "Walkie-Talkie (press
|
|
119
|
+
title: "Walkie-Talkie (press f3 to record, press again to send)",
|
|
119
120
|
category: "Plugin",
|
|
120
121
|
run: async () => {
|
|
121
122
|
const route = api.route.current;
|
|
@@ -136,12 +137,12 @@ const tui = async (api, _options, _meta) => {
|
|
|
136
137
|
catch { /* ignore */ }
|
|
137
138
|
}
|
|
138
139
|
pttStartRecording();
|
|
139
|
-
api.ui.toast({ variant: "info", title: "PTT", message: "Recording... (press
|
|
140
|
+
api.ui.toast({ variant: "info", title: "PTT", message: "Recording... (press f3 again to send)" });
|
|
140
141
|
}
|
|
141
142
|
},
|
|
142
143
|
},
|
|
143
144
|
],
|
|
144
|
-
bindings: [{ key: "
|
|
145
|
+
bindings: [{ key: "f3", cmd: "interrupt.ptt" }],
|
|
145
146
|
});
|
|
146
147
|
api.lifecycle.onDispose(() => {
|
|
147
148
|
if (recordingProcess) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-interrupt-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.18",
|
|
4
4
|
"description": "Streaming TTS + voice interruption for OpenCode. Speaks responses as they arrive and detects when you talk over it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|