opencode-groq-dictate 1.1.8 → 1.1.9
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/package.json +1 -1
- package/tui.tsx +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-groq-dictate",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Groq dictation in the OpenCode v2 TUI: alt+v records, transcribes with whisper-large-v3-turbo, and pastes the text into the prompt.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
package/tui.tsx
CHANGED
|
@@ -468,12 +468,13 @@ export default Plugin.define({
|
|
|
468
468
|
// dot sits next to them and disappears when there is nothing to report.
|
|
469
469
|
context.ui.slot({
|
|
470
470
|
append: "prompt.footer.status",
|
|
471
|
+
// Always return an element: the host reads .length on what the render
|
|
472
|
+
// returns, and a <Show> that resolves to nothing hands it undefined,
|
|
473
|
+
// which crashes the slot ("evaluating 'e.length'") on v2.1.0.
|
|
471
474
|
render: () => (
|
|
472
|
-
<
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
</text>
|
|
476
|
-
</Show>
|
|
475
|
+
<text fg={recording() ? red() : amber()}>
|
|
476
|
+
{recording() ? `● REC ${elapsed()}s` : busy() ? "● …" : ""}
|
|
477
|
+
</text>
|
|
477
478
|
),
|
|
478
479
|
})
|
|
479
480
|
|