opencode-voice 0.1.0 → 0.1.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-voice",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Speech-to-text plugin for OpenCode — voice input with Deepgram, Groq, and OpenAI Whisper",
6
6
  "keywords": ["opencode", "plugin", "voice", "speech-to-text", "stt", "whisper", "deepgram"],
@@ -13,19 +13,18 @@
13
13
  "engines": {
14
14
  "opencode": ">=1.3.0"
15
15
  },
16
+ "dependencies": {
17
+ "@opentui/core": "0.1.95",
18
+ "@opentui/solid": "0.1.95",
19
+ "solid-js": "1.9.12"
20
+ },
16
21
  "peerDependencies": {
17
- "@opencode-ai/plugin": ">=1.3.0",
18
- "@opentui/core": ">=0.1.95",
19
- "@opentui/solid": ">=0.1.95",
20
- "solid-js": ">=1.0.0"
22
+ "@opencode-ai/plugin": ">=1.3.0"
21
23
  },
22
24
  "devDependencies": {
23
25
  "@opencode-ai/plugin": "1.3.13",
24
26
  "@opencode-ai/sdk": "1.3.13",
25
- "@opentui/core": "0.1.95",
26
- "@opentui/solid": "0.1.95",
27
27
  "@types/bun": "latest",
28
- "solid-js": "latest",
29
28
  "typescript": "^5.0.0"
30
29
  }
31
30
  }
package/src/index.ts CHANGED
@@ -151,17 +151,16 @@ export function createTuiPlugin(deps: PluginDeps = defaultDeps): TuiPlugin {
151
151
  },
152
152
  ]);
153
153
 
154
- const slotPlugin: TuiSlotPlugin = {
154
+ api.slots.register({
155
+ order: 500,
155
156
  slots: {
156
- home_bottom: () =>
157
+ home_bottom: (_ctx: any) =>
157
158
  deps.RecordingIndicator({
158
159
  isRecording,
159
160
  interimText,
160
161
  }),
161
162
  },
162
- };
163
-
164
- api.slots.register(slotPlugin);
163
+ } as any);
165
164
 
166
165
  api.lifecycle.onDispose(async () => {
167
166
  unregisterCommand();
@@ -1,3 +1,4 @@
1
+ /** @jsxImportSource @opentui/solid */
1
2
  import {
2
3
  createSignal,
3
4
  createEffect,
@@ -68,14 +69,13 @@ export const RecordingIndicator: Component<RecordingIndicatorProps> = (
68
69
 
69
70
  return (
70
71
  <Show when={props.isRecording()}>
71
- <div>
72
- <span style={{ color: "red" }}>
73
- {state.getCurrentFrame()} Recording...
74
- </span>
72
+ <text fg="red">
73
+ {state.getCurrentFrame()} Recording...
75
74
  <Show when={props.interimText().length > 0}>
76
- <span style={{ opacity: 0.7 }}> {props.interimText()}</span>
75
+ {" "}
76
+ {props.interimText()}
77
77
  </Show>
78
- </div>
78
+ </text>
79
79
  </Show>
80
80
  );
81
81
  };