@iloveagents/foundry-web-voice 0.1.14 → 0.1.15
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.
|
@@ -32,6 +32,7 @@ const CIRCLE = "size-8 @md:size-10 rounded-full shrink-0";
|
|
|
32
32
|
export function VoiceMicButton() {
|
|
33
33
|
const canVoice = useAuiState((s) => s.optional.thread?.capabilities.voice ?? false);
|
|
34
34
|
const composerEmpty = useAuiState((s) => s.optional.composer?.isEmpty ?? true);
|
|
35
|
+
const threadRunning = useAuiState((s) => s.thread.isRunning);
|
|
35
36
|
const voice = useVoiceState();
|
|
36
37
|
const controls = useVoiceControls();
|
|
37
38
|
const volume = useVoiceVolume();
|
|
@@ -40,8 +41,9 @@ export function VoiceMicButton() {
|
|
|
40
41
|
return null;
|
|
41
42
|
const idle = !voice || voice.status.type === "ended";
|
|
42
43
|
if (idle) {
|
|
43
|
-
// Typing
|
|
44
|
-
|
|
44
|
+
// Typing belongs to Send; an active run belongs to Stop. Voice is only a
|
|
45
|
+
// starting action when the composer is empty and the thread is idle.
|
|
46
|
+
if (!composerEmpty || threadRunning)
|
|
45
47
|
return null;
|
|
46
48
|
return (_jsx(TooltipIconButton, { tooltip: "Start voice conversation", variant: "default", className: CIRCLE, onClick: () => controls.connect(), children: _jsx(AudioLines, { className: "size-5" }) }));
|
|
47
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iloveagents/foundry-web-voice",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "Optional spoken-conversation tier for Foundry UI — Azure Voice Live wired into assistant-ui's realtime voice contract",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"foundry",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@iloveagents/foundry-voice-live-react": "^0.5.0",
|
|
41
|
-
"@iloveagents/foundry-agent": "^0.33.
|
|
42
|
-
"@iloveagents/foundry-web-ui": "^0.33.
|
|
41
|
+
"@iloveagents/foundry-agent": "^0.33.3",
|
|
42
|
+
"@iloveagents/foundry-web-ui": "^0.33.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@assistant-ui/react": "^0.15.1",
|