@prestyj/voice 4.6.33 → 4.6.34
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/bridges/ezboss.d.cts +3 -2
- package/dist/bridges/ezboss.d.ts +3 -2
- package/dist/bridges/ezcoder-rpc.d.cts +3 -2
- package/dist/bridges/ezcoder-rpc.d.ts +3 -2
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/providers/openai-codex-realtime.d.cts +3 -2
- package/dist/providers/openai-codex-realtime.d.ts +3 -2
- package/dist/providers/openai-realtime.d.cts +3 -2
- package/dist/providers/openai-realtime.d.ts +3 -2
- package/dist/{types-Dc4Q3Z6X.d.cts → types-CaNKhyj1.d.cts} +1 -1
- package/dist/{types-Dc4Q3Z6X.d.ts → types-CaNKhyj1.d.ts} +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoiceBridgeCommand, VoiceBridgeEvent, VoiceTool, JsonObject } from '../index.cjs';
|
|
2
2
|
|
|
3
3
|
interface EzBossPromptTarget {
|
|
4
4
|
enqueueUserMessage(text: string): Promise<void> | void;
|
|
@@ -10,4 +10,5 @@ interface EzBossBridge {
|
|
|
10
10
|
declare function createEzBossBridge(target: EzBossPromptTarget): EzBossBridge;
|
|
11
11
|
declare function createRelayEzBossTool(send: (command: VoiceBridgeCommand) => Promise<JsonObject>): VoiceTool;
|
|
12
12
|
|
|
13
|
-
export {
|
|
13
|
+
export { createEzBossBridge, createRelayEzBossTool };
|
|
14
|
+
export type { EzBossBridge, EzBossPromptTarget };
|
package/dist/bridges/ezboss.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoiceBridgeCommand, VoiceBridgeEvent, VoiceTool, JsonObject } from '../index.js';
|
|
2
2
|
|
|
3
3
|
interface EzBossPromptTarget {
|
|
4
4
|
enqueueUserMessage(text: string): Promise<void> | void;
|
|
@@ -10,4 +10,5 @@ interface EzBossBridge {
|
|
|
10
10
|
declare function createEzBossBridge(target: EzBossPromptTarget): EzBossBridge;
|
|
11
11
|
declare function createRelayEzBossTool(send: (command: VoiceBridgeCommand) => Promise<JsonObject>): VoiceTool;
|
|
12
12
|
|
|
13
|
-
export {
|
|
13
|
+
export { createEzBossBridge, createRelayEzBossTool };
|
|
14
|
+
export type { EzBossBridge, EzBossPromptTarget };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoiceBridgeCommand, VoiceTool, JsonObject, VoiceBridgeEvent } from '../index.cjs';
|
|
2
2
|
|
|
3
3
|
interface EZCoderRpcMessageSink {
|
|
4
4
|
send(message: JsonObject, signal?: AbortSignal): Promise<void>;
|
|
@@ -15,4 +15,5 @@ declare function createEZCoderRpcBridge(options: EZCoderRpcBridgeOptions): EZCod
|
|
|
15
15
|
declare function toEZCoderRpcCommand(id: string, command: VoiceBridgeCommand): JsonObject;
|
|
16
16
|
declare function normalizeEZCoderRpcEvent(message: unknown): VoiceBridgeEvent | null;
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { createEZCoderRpcBridge, normalizeEZCoderRpcEvent, toEZCoderRpcCommand };
|
|
19
|
+
export type { EZCoderRpcBridge, EZCoderRpcBridgeOptions, EZCoderRpcMessageSink };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoiceBridgeCommand, VoiceTool, JsonObject, VoiceBridgeEvent } from '../index.js';
|
|
2
2
|
|
|
3
3
|
interface EZCoderRpcMessageSink {
|
|
4
4
|
send(message: JsonObject, signal?: AbortSignal): Promise<void>;
|
|
@@ -15,4 +15,5 @@ declare function createEZCoderRpcBridge(options: EZCoderRpcBridgeOptions): EZCod
|
|
|
15
15
|
declare function toEZCoderRpcCommand(id: string, command: VoiceBridgeCommand): JsonObject;
|
|
16
16
|
declare function normalizeEZCoderRpcEvent(message: unknown): VoiceBridgeEvent | null;
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { createEZCoderRpcBridge, normalizeEZCoderRpcEvent, toEZCoderRpcCommand };
|
|
19
|
+
export type { EZCoderRpcBridge, EZCoderRpcBridgeOptions, EZCoderRpcMessageSink };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { T as ToolConfirmationDecision,
|
|
1
|
+
import { c as VoiceTransport, d as VoiceSessionMetadata, e as VoiceToolResult, A as AudioInputChunk, f as VoiceSessionConfig, g as VoiceSession, b as VoiceTool, h as VoiceToolCall, i as VoiceToolContext, R as RealtimeFunctionToolDefinition, j as VoiceProvider, k as VoiceEvent, l as VoiceProviderConnectOptions, m as AudioOutputChunk, J as JsonObject } from './types-CaNKhyj1.cjs';
|
|
2
|
+
export { T as ToolConfirmationDecision, n as ToolConfirmationPolicy, o as ToolConfirmationRequest, p as ToolConfirmationResolver, q as VoiceAuthConfig, V as VoiceBridgeCommand, a as VoiceBridgeEvent, r as VoiceConnectionState, s as VoiceEventHandler, t as VoiceToolExecutionError, u as VoiceToolExecutionResult, v as VoiceTransportConnectOptions, w as VoiceTransportEvent, x as VoiceTransportEventHandler, y as VoiceTransportSendEvent } from './types-CaNKhyj1.cjs';
|
|
3
3
|
import { AgentTool } from '@prestyj/agent';
|
|
4
4
|
import { Tool } from '@prestyj/ai';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -87,4 +87,5 @@ interface RelayHttpClient {
|
|
|
87
87
|
send(request: RelayRequest, signal?: AbortSignal): Promise<RelayResponse>;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export { AudioInputChunk, AudioOutputChunk,
|
|
90
|
+
export { AudioInputChunk, AudioOutputChunk, JsonObject, RealtimeFunctionToolDefinition, VoiceEvent, VoiceProvider, VoiceProviderConnectOptions, VoiceSession, VoiceSessionConfig, VoiceSessionMetadata, VoiceTool, VoiceToolCall, VoiceToolContext, VoiceToolResult, VoiceTransport, agentToolToVoiceTool, createInMemoryVoiceProvider, createVoiceSession, executeVoiceToolCall, ggAiToolToRealtimeFunctionTool, ggAiToolToVoiceTool, normalizeVoiceProviderError, voiceToolToRealtimeFunctionTool };
|
|
91
|
+
export type { ExecuteVoiceToolCallOptions, InMemoryVoiceProvider, InMemoryVoiceProviderOptions, InMemoryVoiceSession, OpenUrlRequest, PlatformAudioAdapter, PlatformNotification, PlatformSecureTokenStore, PlatformUrlOpener, RelayHttpClient, RelayRequest, RelayResponse, VoiceSessionControllerOptions, VoiceToolSource };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { T as ToolConfirmationDecision,
|
|
1
|
+
import { c as VoiceTransport, d as VoiceSessionMetadata, e as VoiceToolResult, A as AudioInputChunk, f as VoiceSessionConfig, g as VoiceSession, b as VoiceTool, h as VoiceToolCall, i as VoiceToolContext, R as RealtimeFunctionToolDefinition, j as VoiceProvider, k as VoiceEvent, l as VoiceProviderConnectOptions, m as AudioOutputChunk, J as JsonObject } from './types-CaNKhyj1.js';
|
|
2
|
+
export { T as ToolConfirmationDecision, n as ToolConfirmationPolicy, o as ToolConfirmationRequest, p as ToolConfirmationResolver, q as VoiceAuthConfig, V as VoiceBridgeCommand, a as VoiceBridgeEvent, r as VoiceConnectionState, s as VoiceEventHandler, t as VoiceToolExecutionError, u as VoiceToolExecutionResult, v as VoiceTransportConnectOptions, w as VoiceTransportEvent, x as VoiceTransportEventHandler, y as VoiceTransportSendEvent } from './types-CaNKhyj1.js';
|
|
3
3
|
import { AgentTool } from '@prestyj/agent';
|
|
4
4
|
import { Tool } from '@prestyj/ai';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -87,4 +87,5 @@ interface RelayHttpClient {
|
|
|
87
87
|
send(request: RelayRequest, signal?: AbortSignal): Promise<RelayResponse>;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export { AudioInputChunk, AudioOutputChunk,
|
|
90
|
+
export { AudioInputChunk, AudioOutputChunk, JsonObject, RealtimeFunctionToolDefinition, VoiceEvent, VoiceProvider, VoiceProviderConnectOptions, VoiceSession, VoiceSessionConfig, VoiceSessionMetadata, VoiceTool, VoiceToolCall, VoiceToolContext, VoiceToolResult, VoiceTransport, agentToolToVoiceTool, createInMemoryVoiceProvider, createVoiceSession, executeVoiceToolCall, ggAiToolToRealtimeFunctionTool, ggAiToolToVoiceTool, normalizeVoiceProviderError, voiceToolToRealtimeFunctionTool };
|
|
91
|
+
export type { ExecuteVoiceToolCallOptions, InMemoryVoiceProvider, InMemoryVoiceProviderOptions, InMemoryVoiceSession, OpenUrlRequest, PlatformAudioAdapter, PlatformNotification, PlatformSecureTokenStore, PlatformUrlOpener, RelayHttpClient, RelayRequest, RelayResponse, VoiceSessionControllerOptions, VoiceToolSource };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OpenAIRealtimeSessionConfig, OpenAIRealtimeProviderOptions, OpenAIRealtimeCallRequest } from './openai-realtime.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { VoiceProvider, VoiceSessionConfig, JsonObject } from '../index.cjs';
|
|
3
3
|
|
|
4
4
|
interface ExperimentalCodexRealtimeProviderOptions extends OpenAIRealtimeProviderOptions {
|
|
5
5
|
readonly baseUrl?: string;
|
|
@@ -12,4 +12,5 @@ declare function createExperimentalCodexRealtimeProvider(options?: ExperimentalC
|
|
|
12
12
|
declare function toExperimentalCodexRealtimeCallRequest(request: OpenAIRealtimeCallRequest): ExperimentalCodexRealtimeCallRequest;
|
|
13
13
|
declare function toExperimentalCodexSessionConfig(config: VoiceSessionConfig): JsonObject;
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { createExperimentalCodexRealtimeProvider, toExperimentalCodexRealtimeCallRequest, toExperimentalCodexSessionConfig };
|
|
16
|
+
export type { ExperimentalCodexRealtimeCallRequest, ExperimentalCodexRealtimeProviderOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OpenAIRealtimeSessionConfig, OpenAIRealtimeProviderOptions, OpenAIRealtimeCallRequest } from './openai-realtime.js';
|
|
2
|
-
import {
|
|
2
|
+
import { VoiceProvider, VoiceSessionConfig, JsonObject } from '../index.js';
|
|
3
3
|
|
|
4
4
|
interface ExperimentalCodexRealtimeProviderOptions extends OpenAIRealtimeProviderOptions {
|
|
5
5
|
readonly baseUrl?: string;
|
|
@@ -12,4 +12,5 @@ declare function createExperimentalCodexRealtimeProvider(options?: ExperimentalC
|
|
|
12
12
|
declare function toExperimentalCodexRealtimeCallRequest(request: OpenAIRealtimeCallRequest): ExperimentalCodexRealtimeCallRequest;
|
|
13
13
|
declare function toExperimentalCodexSessionConfig(config: VoiceSessionConfig): JsonObject;
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { createExperimentalCodexRealtimeProvider, toExperimentalCodexRealtimeCallRequest, toExperimentalCodexSessionConfig };
|
|
16
|
+
export type { ExperimentalCodexRealtimeCallRequest, ExperimentalCodexRealtimeProviderOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JsonObject, RealtimeFunctionToolDefinition, VoiceProvider, VoiceEvent, VoiceSessionConfig } from '../index.cjs';
|
|
2
2
|
|
|
3
3
|
interface OpenAIRealtimeProviderOptions {
|
|
4
4
|
readonly baseUrl?: string;
|
|
@@ -31,4 +31,5 @@ declare function createOpenAIRealtimeProvider(options?: OpenAIRealtimeProviderOp
|
|
|
31
31
|
declare function toOpenAISessionConfig(config: VoiceSessionConfig): OpenAIRealtimeSessionConfig;
|
|
32
32
|
declare function normalizeOpenAIRealtimeEvent(event: unknown): VoiceEvent | null;
|
|
33
33
|
|
|
34
|
-
export {
|
|
34
|
+
export { createOpenAIRealtimeProvider, normalizeOpenAIRealtimeEvent, toOpenAISessionConfig };
|
|
35
|
+
export type { OpenAIClientSecretRequest, OpenAIRealtimeCallRequest, OpenAIRealtimeHttpClient, OpenAIRealtimeProviderOptions, OpenAIRealtimeSessionConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JsonObject, RealtimeFunctionToolDefinition, VoiceProvider, VoiceEvent, VoiceSessionConfig } from '../index.js';
|
|
2
2
|
|
|
3
3
|
interface OpenAIRealtimeProviderOptions {
|
|
4
4
|
readonly baseUrl?: string;
|
|
@@ -31,4 +31,5 @@ declare function createOpenAIRealtimeProvider(options?: OpenAIRealtimeProviderOp
|
|
|
31
31
|
declare function toOpenAISessionConfig(config: VoiceSessionConfig): OpenAIRealtimeSessionConfig;
|
|
32
32
|
declare function normalizeOpenAIRealtimeEvent(event: unknown): VoiceEvent | null;
|
|
33
33
|
|
|
34
|
-
export {
|
|
34
|
+
export { createOpenAIRealtimeProvider, normalizeOpenAIRealtimeEvent, toOpenAISessionConfig };
|
|
35
|
+
export type { OpenAIClientSecretRequest, OpenAIRealtimeCallRequest, OpenAIRealtimeHttpClient, OpenAIRealtimeProviderOptions, OpenAIRealtimeSessionConfig };
|
|
@@ -254,4 +254,4 @@ type VoiceBridgeEvent = {
|
|
|
254
254
|
readonly sessionId?: string;
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
-
export type { AudioInputChunk as A, JsonObject as J, RealtimeFunctionToolDefinition as R, ToolConfirmationDecision as T,
|
|
257
|
+
export type { AudioInputChunk as A, JsonObject as J, RealtimeFunctionToolDefinition as R, ToolConfirmationDecision as T, VoiceBridgeCommand as V, VoiceBridgeEvent as a, VoiceTool as b, VoiceTransport as c, VoiceSessionMetadata as d, VoiceToolResult as e, VoiceSessionConfig as f, VoiceSession as g, VoiceToolCall as h, VoiceToolContext as i, VoiceProvider as j, VoiceEvent as k, VoiceProviderConnectOptions as l, AudioOutputChunk as m, ToolConfirmationPolicy as n, ToolConfirmationRequest as o, ToolConfirmationResolver as p, VoiceAuthConfig as q, VoiceConnectionState as r, VoiceEventHandler as s, VoiceToolExecutionError as t, VoiceToolExecutionResult as u, VoiceTransportConnectOptions as v, VoiceTransportEvent as w, VoiceTransportEventHandler as x, VoiceTransportSendEvent as y };
|
|
@@ -254,4 +254,4 @@ type VoiceBridgeEvent = {
|
|
|
254
254
|
readonly sessionId?: string;
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
-
export type { AudioInputChunk as A, JsonObject as J, RealtimeFunctionToolDefinition as R, ToolConfirmationDecision as T,
|
|
257
|
+
export type { AudioInputChunk as A, JsonObject as J, RealtimeFunctionToolDefinition as R, ToolConfirmationDecision as T, VoiceBridgeCommand as V, VoiceBridgeEvent as a, VoiceTool as b, VoiceTransport as c, VoiceSessionMetadata as d, VoiceToolResult as e, VoiceSessionConfig as f, VoiceSession as g, VoiceToolCall as h, VoiceToolContext as i, VoiceProvider as j, VoiceEvent as k, VoiceProviderConnectOptions as l, AudioOutputChunk as m, ToolConfirmationPolicy as n, ToolConfirmationRequest as o, ToolConfirmationResolver as p, VoiceAuthConfig as q, VoiceConnectionState as r, VoiceEventHandler as s, VoiceToolExecutionError as t, VoiceToolExecutionResult as u, VoiceTransportConnectOptions as v, VoiceTransportEvent as w, VoiceTransportEventHandler as x, VoiceTransportSendEvent as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prestyj/voice",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.34",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Provider-agnostic realtime voice orchestration for EZ tools and agents",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"zod": "^4.5.4",
|
|
48
|
-
"@prestyj/
|
|
49
|
-
"@prestyj/
|
|
48
|
+
"@prestyj/ai": "5.35.0",
|
|
49
|
+
"@prestyj/agent": "5.35.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^6.0.3",
|