@iloveagents/foundry-web-voice 0.1.0 → 0.1.2
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/adapter/session-config.d.ts +1 -1
- package/dist/adapter/voice-bridge.d.ts +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/react/install.d.ts +2 -2
- package/dist/react/relay-answer-watcher.d.ts +1 -1
- package/dist/react/voice-module.d.ts +1 -1
- package/dist/react/voice-surface.d.ts +2 -2
- package/package.json +10 -10
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import type { FunctionTool, Tool, VoiceLiveSessionConfig } from "@iloveagents/foundry-voice-live-react";
|
|
20
20
|
import type { ToolRegistry } from "@iloveagents/foundry-agent";
|
|
21
|
-
import type { VoiceMode } from "./types.
|
|
21
|
+
import type { VoiceMode } from "./types.js";
|
|
22
22
|
/**
|
|
23
23
|
* AG-UI tool schemas → Voice Live function tools.
|
|
24
24
|
*
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
*/
|
|
26
26
|
import { type RealtimeVoiceAdapter } from "@assistant-ui/react";
|
|
27
27
|
import type { VoiceLiveClientEvent, VoiceLiveServerEvent, SessionState } from "@iloveagents/foundry-voice-live-react";
|
|
28
|
-
import type { VoiceConfig } from "./types.
|
|
28
|
+
import type { VoiceConfig } from "./types.js";
|
|
29
29
|
/** What the bridge needs from the live session; supplied by the React host. */
|
|
30
30
|
export interface VoiceTransportControls {
|
|
31
31
|
connect: () => Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
* });
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
export { createVoiceModule, type VoiceChatModule } from "./react/voice-module.
|
|
15
|
-
export { FoundryVoice, installVoice, type VoiceInstallOptions, type VoiceInstallation, } from "./react/install.
|
|
16
|
-
export type { VoiceConfig, VoiceMode, VoiceTranscript } from "./adapter/types.
|
|
17
|
-
export { VoiceMicButton } from "./react/voice-mic-button.
|
|
18
|
-
export { VoiceStatusStrip } from "./react/voice-status-strip.
|
|
19
|
-
export { VoiceStage, type VoiceStageProps } from "./react/voice-stage.
|
|
20
|
-
export { VoiceVisualizer, type VoiceVisualizerProps } from "./react/voice-visualizer.
|
|
21
|
-
export { VoiceAvatarPanel, type VoiceAvatarPanelProps } from "./react/voice-avatar.
|
|
22
|
-
export { useVoiceUiStore } from "./react/voice-ui-store.
|
|
23
|
-
export { VoiceBridge, type VoiceTransportControls } from "./adapter/voice-bridge.
|
|
24
|
-
export { buildVoiceSession, toVoiceLiveTools } from "./adapter/session-config.
|
|
25
|
-
export { createRegistryToolExecutor } from "./adapter/tool-bridge.
|
|
26
|
-
export { ToolSync } from "./adapter/tool-sync.
|
|
27
|
-
export { SentenceStream, SpeechQueue, toSpeakableText } from "./adapter/speech-queue.
|
|
28
|
-
export { HalfDuplexGate, type HalfDuplexAction, type HalfDuplexInputs, } from "./adapter/half-duplex.
|
|
14
|
+
export { createVoiceModule, type VoiceChatModule } from "./react/voice-module.js";
|
|
15
|
+
export { FoundryVoice, installVoice, type VoiceInstallOptions, type VoiceInstallation, } from "./react/install.js";
|
|
16
|
+
export type { VoiceConfig, VoiceMode, VoiceTranscript } from "./adapter/types.js";
|
|
17
|
+
export { VoiceMicButton } from "./react/voice-mic-button.js";
|
|
18
|
+
export { VoiceStatusStrip } from "./react/voice-status-strip.js";
|
|
19
|
+
export { VoiceStage, type VoiceStageProps } from "./react/voice-stage.js";
|
|
20
|
+
export { VoiceVisualizer, type VoiceVisualizerProps } from "./react/voice-visualizer.js";
|
|
21
|
+
export { VoiceAvatarPanel, type VoiceAvatarPanelProps } from "./react/voice-avatar.js";
|
|
22
|
+
export { useVoiceUiStore } from "./react/voice-ui-store.js";
|
|
23
|
+
export { VoiceBridge, type VoiceTransportControls } from "./adapter/voice-bridge.js";
|
|
24
|
+
export { buildVoiceSession, toVoiceLiveTools } from "./adapter/session-config.js";
|
|
25
|
+
export { createRegistryToolExecutor } from "./adapter/tool-bridge.js";
|
|
26
|
+
export { ToolSync } from "./adapter/tool-sync.js";
|
|
27
|
+
export { SentenceStream, SpeechQueue, toSpeakableText } from "./adapter/speech-queue.js";
|
|
28
|
+
export { HalfDuplexGate, type HalfDuplexAction, type HalfDuplexInputs, } from "./adapter/half-duplex.js";
|
package/dist/react/install.d.ts
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* never has to be reasoned about.
|
|
17
17
|
*/
|
|
18
18
|
import type { ComponentType, ReactNode } from "react";
|
|
19
|
-
import { VoiceBridge } from "../adapter/voice-bridge.
|
|
20
|
-
import type { VoiceConfig } from "../adapter/types.
|
|
19
|
+
import { VoiceBridge } from "../adapter/voice-bridge.js";
|
|
20
|
+
import type { VoiceConfig } from "../adapter/types.js";
|
|
21
21
|
export interface VoiceInstallOptions extends VoiceConfig {
|
|
22
22
|
/**
|
|
23
23
|
* Register the mic button and status strip into the chat composer.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* loud on the way to an answer, and tool calls are machinery — reading
|
|
11
11
|
* either aloud would be worse than saying nothing.
|
|
12
12
|
*/
|
|
13
|
-
import type { VoiceBridge } from "../adapter/voice-bridge.
|
|
13
|
+
import type { VoiceBridge } from "../adapter/voice-bridge.js";
|
|
14
14
|
export declare function RelayAnswerWatcher({ bridge }: {
|
|
15
15
|
bridge: VoiceBridge;
|
|
16
16
|
}): null;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* actually populates are declared.
|
|
10
10
|
*/
|
|
11
11
|
import type { ReactNode } from "react";
|
|
12
|
-
import { type VoiceInstallOptions } from "./install.
|
|
12
|
+
import { type VoiceInstallOptions } from "./install.js";
|
|
13
13
|
/** The slice of `foundry-web-shell`'s `ChatModule` contract this module fills. */
|
|
14
14
|
export interface VoiceChatModule {
|
|
15
15
|
name: string;
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* Every callback handed to the hook is stable and closes over nothing but
|
|
12
12
|
* the bridge, so none of them can go stale for the life of a session.
|
|
13
13
|
*/
|
|
14
|
-
import type { VoiceBridge } from "../adapter/voice-bridge.
|
|
15
|
-
import type { VoiceConfig } from "../adapter/types.
|
|
14
|
+
import type { VoiceBridge } from "../adapter/voice-bridge.js";
|
|
15
|
+
import type { VoiceConfig } from "../adapter/types.js";
|
|
16
16
|
export interface VoiceSurfaceProps {
|
|
17
17
|
bridge: VoiceBridge;
|
|
18
18
|
config: VoiceConfig;
|
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.2",
|
|
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",
|
|
@@ -36,15 +36,10 @@
|
|
|
36
36
|
"README.md",
|
|
37
37
|
"LICENSE"
|
|
38
38
|
],
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "tsc -p tsconfig.build.json && node ../../scripts/fix-dts-extensions.mjs dist",
|
|
41
|
-
"test:unit": "vitest run",
|
|
42
|
-
"typecheck": "tsc --noEmit"
|
|
43
|
-
},
|
|
44
39
|
"dependencies": {
|
|
45
|
-
"@iloveagents/foundry-
|
|
46
|
-
"@iloveagents/foundry-
|
|
47
|
-
"@iloveagents/foundry-
|
|
40
|
+
"@iloveagents/foundry-voice-live-react": "^0.5.0",
|
|
41
|
+
"@iloveagents/foundry-agent": "^0.22.0",
|
|
42
|
+
"@iloveagents/foundry-web-ui": "^0.22.0"
|
|
48
43
|
},
|
|
49
44
|
"peerDependencies": {
|
|
50
45
|
"@assistant-ui/react": "^0.15.1",
|
|
@@ -67,5 +62,10 @@
|
|
|
67
62
|
},
|
|
68
63
|
"publishConfig": {
|
|
69
64
|
"access": "public"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "tsc -p tsconfig.build.json && node ../../scripts/fix-dts-extensions.mjs dist",
|
|
68
|
+
"test:unit": "vitest run",
|
|
69
|
+
"typecheck": "tsc --noEmit"
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
}
|