@voxket-ai/voxket-live 1.0.126 → 1.0.137
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/components/chat-view.d.ts +2 -1
- package/dist/components/session-timer.d.ts +15 -0
- package/dist/components/session-view.d.ts +1 -28
- package/dist/index.cjs +81 -85
- package/dist/index.d.ts +3 -1
- package/dist/index.js +30957 -18494
- package/dist/lib/types.d.ts +21 -0
- package/dist/lib/utils.d.ts +38 -0
- package/dist/types/core.d.ts +2 -0
- package/package.json +10 -3
package/dist/lib/types.d.ts
CHANGED
|
@@ -30,3 +30,24 @@ export interface SandboxConfig {
|
|
|
30
30
|
value: boolean;
|
|
31
31
|
} | null;
|
|
32
32
|
}
|
|
33
|
+
export interface SessionSettings {
|
|
34
|
+
session_timer?: number | null;
|
|
35
|
+
}
|
|
36
|
+
export interface VideoCapabilities {
|
|
37
|
+
user_video_enabled?: boolean;
|
|
38
|
+
agent_avatar_enabled?: boolean;
|
|
39
|
+
screenshare_session_enabled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface ChatCapabilities {
|
|
42
|
+
suggested_reply_enabled?: boolean;
|
|
43
|
+
support_in_chat_attachments?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface VoiceCapabilities {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}
|
|
48
|
+
export type SessionCapabilities = VideoCapabilities | ChatCapabilities | VoiceCapabilities;
|
|
49
|
+
export interface SessionFixture {
|
|
50
|
+
sessionSettings: SessionSettings;
|
|
51
|
+
capabilities: SessionCapabilities;
|
|
52
|
+
modality: 'video' | 'chat' | 'voice';
|
|
53
|
+
}
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,7 +1,45 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
import { Room } from 'livekit-client';
|
|
3
3
|
import { ReceivedChatMessage, TextStreamData } from '@livekit/components-react';
|
|
4
|
+
import { SessionFixture } from './types';
|
|
4
5
|
export declare const THEME_STORAGE_KEY = "theme-mode";
|
|
5
6
|
export declare const THEME_MEDIA_QUERY = "(prefers-color-scheme: dark)";
|
|
6
7
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
7
8
|
export declare function transcriptionToChatMessage(textStream: TextStreamData, room: Room): ReceivedChatMessage;
|
|
9
|
+
/**
|
|
10
|
+
* Session Fixture Utility - Handles session settings and capabilities for different modalities
|
|
11
|
+
*/
|
|
12
|
+
export declare function createSessionFixture(agentInfo: any): SessionFixture;
|
|
13
|
+
/**
|
|
14
|
+
* Check if a capability is enabled
|
|
15
|
+
*/
|
|
16
|
+
export declare function isCapabilityEnabled(fixture: SessionFixture, capability: string): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Check if session timer is enabled and get the timer value
|
|
19
|
+
*/
|
|
20
|
+
export declare function getSessionTimer(fixture: SessionFixture): number | null;
|
|
21
|
+
/**
|
|
22
|
+
* Video-specific capability checks
|
|
23
|
+
*/
|
|
24
|
+
export declare function getVideoCapabilities(fixture: SessionFixture): {
|
|
25
|
+
userVideoEnabled: boolean;
|
|
26
|
+
agentAvatarEnabled: boolean;
|
|
27
|
+
screenshareEnabled: boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Chat-specific capability checks
|
|
31
|
+
*/
|
|
32
|
+
export declare function getChatCapabilities(fixture: SessionFixture): {
|
|
33
|
+
suggestedReplyEnabled: boolean;
|
|
34
|
+
attachmentsEnabled: boolean;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Voice-specific capability checks
|
|
38
|
+
*/
|
|
39
|
+
export declare function getVoiceCapabilities(fixture: SessionFixture): {
|
|
40
|
+
[key: string]: boolean;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Format session timer for display
|
|
44
|
+
*/
|
|
45
|
+
export declare function formatSessionTimer(timeInSeconds: number): string;
|
package/dist/types/core.d.ts
CHANGED
|
@@ -100,6 +100,8 @@ export interface AgentInfo {
|
|
|
100
100
|
avatar?: string;
|
|
101
101
|
capabilities: AgentCapability[];
|
|
102
102
|
metadata?: Record<string, any>;
|
|
103
|
+
modality_supported: SessionModality[];
|
|
104
|
+
session_settings: Record<string, any>;
|
|
103
105
|
}
|
|
104
106
|
export type AgentCapability = 'voice_interaction' | 'text_chat' | 'video_call' | 'screen_share' | 'file_upload' | 'custom_ui';
|
|
105
107
|
export interface AgentResponse {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voxket-ai/voxket-live",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.137",
|
|
4
4
|
"description": "A React widget for embedding Voxket-powered audio/video/chat experiences.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
19
20
|
"import": "./dist/index.js",
|
|
20
21
|
"require": "./dist/index.cjs",
|
|
21
|
-
"
|
|
22
|
+
"default": "./dist/index.js"
|
|
22
23
|
},
|
|
23
24
|
"./style.css": "./dist/index.css"
|
|
24
25
|
},
|
|
@@ -69,7 +70,11 @@
|
|
|
69
70
|
"build": "vite build --base=./",
|
|
70
71
|
"lint": "eslint .",
|
|
71
72
|
"preview": "vite preview",
|
|
72
|
-
"
|
|
73
|
+
"start": "vite preview --host 0.0.0.0 --port $PORT",
|
|
74
|
+
"prepublishOnly": "rm -rf ./dist && npm run build"
|
|
75
|
+
},
|
|
76
|
+
"engines": {
|
|
77
|
+
"node": ">=18"
|
|
73
78
|
},
|
|
74
79
|
"dependencies": {
|
|
75
80
|
"@emotion/react": "~11.14.0",
|
|
@@ -84,10 +89,12 @@
|
|
|
84
89
|
"ajv-draft-04": "~1.0.0",
|
|
85
90
|
"class-variance-authority": "~0.7.1",
|
|
86
91
|
"clsx": "~2.1.1",
|
|
92
|
+
"highlight.js": "~11.11.1",
|
|
87
93
|
"lucide-react": "~0.522.0",
|
|
88
94
|
"motion": "~12.18.1",
|
|
89
95
|
"path": "~0.12.7",
|
|
90
96
|
"react-markdown": "~10.1.0",
|
|
97
|
+
"rehype-highlight": "~7.0.2",
|
|
91
98
|
"remark-gfm": "~4.0.1",
|
|
92
99
|
"sonner": "~2.0.5",
|
|
93
100
|
"tailwind-merge": "~3.3.1",
|