@tencent-rtc/mcp 1.3.1 → 1.3.3
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/index.js +4 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/resource/doc/chatuikit/faq/web_sdk/faq.md +125 -0
- package/resource/doc/chatuikit/flutter/faq.md +17 -114
- package/resource/doc/chatuikit/flutter/integrate_tuikit_Flutter.md +86 -722
- package/resource/doc/livekit/live/android/live-audience-list.md +334 -0
- package/resource/doc/livekit/live/android/live-audio-effect.md +380 -0
- package/resource/doc/livekit/live/android/live-barrage.md +565 -0
- package/resource/doc/livekit/live/android/live-base-beauty.md +275 -0
- package/resource/doc/livekit/live/android/live-co-guest-interaction.md +629 -0
- package/resource/doc/livekit/live/android/live-gift.md +822 -0
- package/resource/doc/livekit/live/android/live-host-interaction.md +888 -0
- package/resource/doc/livekit/live/android/live-integration.md +972 -0
- package/resource/doc/livekit/live/android/live-live-list.md +575 -0
- package/resource/doc/livekit/live/android/workflow.md +189 -0
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +256 -0
- package/resource/doc/roomkit/vue/features/device-detection.md +388 -0
- package/resource/doc/roomkit/vue/features/device-state.md +480 -0
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +238 -0
- package/resource/doc/roomkit/vue/features/room-chat.md +427 -0
- package/resource/doc/roomkit/vue/features/room-participant-state.md +407 -0
- package/resource/doc/roomkit/vue/features/room-state.md +291 -0
- package/resource/doc/roomkit/vue/features/room-view.md +338 -0
- package/resource/doc/roomkit/vue/features/schedule-room.md +349 -0
- package/resource/doc/roomkit/vue/features/screen-share.md +333 -0
- package/resource/doc/roomkit/vue/features/virtual-background.md +287 -0
- package/resource/doc/roomkit/vue/features/workflow.md +553 -0
- package/resource/doc/roomkit/vue/integration.md +479 -0
- package/resource/doc/roomkit/vue/workflow.md +487 -0
- package/resource/doc/tuicallkit/react/api.md +21 -0
- package/resource/doc/tuicallkit/vue/api.md +21 -0
- package/tools/common/record-prompt.js +2 -2
- package/tools/common/record-prompt.js.map +1 -1
- package/tools/definitions/get_native_live_extra_features_def.js +87 -0
- package/tools/definitions/get_native_live_extra_features_def.js.map +1 -0
- package/tools/definitions/get_native_live_interaction_def.js +74 -0
- package/tools/definitions/get_native_live_interaction_def.js.map +1 -0
- package/tools/definitions/get_native_live_uikit_integration_def.js +49 -0
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +1 -0
- package/tools/definitions/get_web_room_feature_detail_def.js +95 -0
- package/tools/definitions/get_web_room_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +44 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -0
- package/tools/definitions/record_prompt_def.js +1 -1
- package/tools/definitions/record_prompt_def.js.map +1 -1
- package/tools/index.js +10 -2
- package/tools/index.js.map +1 -1
- package/tools/live/get-native-live-uikit-integration.js +101 -0
- package/tools/live/get-native-live-uikit-integration.js.map +1 -0
- package/tools/live/get-web-live-component-detail.js +1 -1
- package/tools/live/get-web-live-component-detail.js.map +1 -1
- package/tools/live/get-web-live-state-detail.js +1 -1
- package/tools/live/get-web-live-state-detail.js.map +1 -1
- package/tools/live/get-web-live-uikit-integration.js +6 -6
- package/tools/live/get-web-live-uikit-integration.js.map +1 -1
- package/tools/live/get_native_live_extra_features.js +105 -0
- package/tools/live/get_native_live_extra_features.js.map +1 -0
- package/tools/live/get_native_live_interaction.js +101 -0
- package/tools/live/get_native_live_interaction.js.map +1 -0
- package/tools/room/get-web-room-feature-detail.js +68 -0
- package/tools/room/get-web-room-feature-detail.js.map +1 -0
- package/tools/room/get-web-room-integration.js +43 -0
- package/tools/room/get-web-room-integration.js.map +1 -0
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/doc/chatuikit/flutter/integrate_only_tuichat_Flutter.md +0 -333
- package/resource/doc/chatuikit/flutter/quick_start_Flutter.md +0 -217
- package/resource/doc/roomkit/vue/states/device-state.md +0 -369
- package/resource/doc/roomkit/vue/states/login-state.md +0 -59
- package/resource/doc/roomkit/vue/states/room-list-state.md +0 -355
- package/resource/doc/roomkit/vue/states/room-participant-state.md +0 -388
- package/tools/room/get-web-room-state-detail.js +0 -31
- package/tools/room/get-web-room-state-detail.js.map +0 -1
- /package/resource/doc/livekit/{vue → live/vue}/components/barrage.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/components/co-guest-panel.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/components/live-audience-list.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/components/live-scene-panel.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/components/live-view.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/components/stream-mixer.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/faq.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/live-list-integration.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/live-player-desk-integration.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/live-player-h5-integration.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/live-pusher-integration.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/states/live-state.md +0 -0
- /package/resource/doc/livekit/{vue → live/vue}/workflow.md +0 -0
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
# Room Participant State Documentation
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Room list State API document
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
dependency installation
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
You can choose any of the following methods for dependency installation:
|
|
11
|
-
[npm]
|
|
12
|
-
``` bash
|
|
13
|
-
npm install tuikit-atomicx-vue3@latest --save
|
|
14
|
-
```
|
|
15
|
-
[pnpm]
|
|
16
|
-
``` bash
|
|
17
|
-
pnpm add tuikit-atomicx-vue3@latest
|
|
18
|
-
```
|
|
19
|
-
[yarn]
|
|
20
|
-
``` bash
|
|
21
|
-
yarn add tuikit-atomicx-vue3@latest
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## Enums
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### DeviceType
|
|
29
|
-
Device Type Enumeration
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
export enum DeviceType {
|
|
34
|
-
Microphone
|
|
35
|
-
Camera = "Camera", // Camera
|
|
36
|
-
ScreenShare = "ScreenShare", // Screen sharing
|
|
37
|
-
}
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### DeviceStatus
|
|
42
|
-
Device Status Enumeration
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
```typescript
|
|
46
|
-
export enum DeviceStatus {
|
|
47
|
-
On = "On", // Enable
|
|
48
|
-
Off = "Off", // Disable
|
|
49
|
-
}
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### NetworkQuality
|
|
54
|
-
Network quality enumeration
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
```typescript
|
|
58
|
-
export enum NetworkQuality {
|
|
59
|
-
Unknown = 0, // Unknown
|
|
60
|
-
Excellent = 1, // Excellent
|
|
61
|
-
Good = 2, // Good
|
|
62
|
-
3 // Poor
|
|
63
|
-
Bad = 4, // Bad
|
|
64
|
-
VeryBad = 5, // Poor
|
|
65
|
-
Down = 6, // Disconnected
|
|
66
|
-
}
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### ParticipantRole
|
|
71
|
-
Participant Role Enumeration
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
```typescript
|
|
75
|
-
export enum ParticipantRole {
|
|
76
|
-
Owner = 0, // Room owner
|
|
77
|
-
Admin = 1, // Admin
|
|
78
|
-
GeneralUser = 2, // Regular user
|
|
79
|
-
}
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
### KickedOutOfRoomReason
|
|
84
|
-
Reasons for being kicked out of the room
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
```typescript
|
|
88
|
-
export enum KickedOutOfRoomReason {
|
|
89
|
-
KickedByAdmin = "KickedByAdmin", // Kicked out by admin
|
|
90
|
-
ReplacedByAnotherDevice = "ReplacedByAnotherDevice", // Replaced by another device
|
|
91
|
-
KickedByServer = "KickedByServer", // Kicked out by server
|
|
92
|
-
ConnectionTimeout = "ConnectionTimeout", // Connection timeout
|
|
93
|
-
InvalidStatusOnReconnect = "InvalidStatusOnReconnect", // Invalid status on reconnect
|
|
94
|
-
RoomLimitExceeded = "RoomLimitExceeded", // Room occupancy limit exceeded
|
|
95
|
-
}
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
## Interfaces
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
### NetworkInfo
|
|
103
|
-
Network information interface
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
```typescript
|
|
107
|
-
export interface NetworkInfo {
|
|
108
|
-
quality: NetworkQuality; // Network quality
|
|
109
|
-
upLoss: number; // upstream packet loss rate
|
|
110
|
-
downLoss: number; // downstream packet loss rate
|
|
111
|
-
delay: number; // delay
|
|
112
|
-
}
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
### RoomParticipant
|
|
117
|
-
Participant Information (inherits from RoomUser)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
```typescript
|
|
121
|
-
export interface RoomParticipant extends RoomUser {
|
|
122
|
-
nameCard: string; // Business card/Nickname
|
|
123
|
-
role: ParticipantRole; // Role
|
|
124
|
-
microphoneStatus: DeviceStatus; // Mic status
|
|
125
|
-
cameraStatus: DeviceStatus; // Camera status
|
|
126
|
-
screenShareStatus: DeviceStatus; // Screen sharing status
|
|
127
|
-
isMessageDisabled: boolean; // Whether to disable messages
|
|
128
|
-
metaData: Record<string, string>; // Metadata
|
|
129
|
-
}
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
### DeviceRequestInfo
|
|
134
|
-
Device request info
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
```typescript
|
|
138
|
-
export interface DeviceRequestInfo {
|
|
139
|
-
timestamp: number; // Timestamp
|
|
140
|
-
senderUserId: string; // Sender UID
|
|
141
|
-
senderUserName: string; // Sender username
|
|
142
|
-
senderNameCard: string; // Sender business card
|
|
143
|
-
senderAvatarURL: string; // Sender avatar URL
|
|
144
|
-
content: string; // Request content
|
|
145
|
-
deviceType: DeviceType; // Device type
|
|
146
|
-
}
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
## IRoomParticipantState Interface
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
Room participant status management API
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
### Properties
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
```typescript
|
|
160
|
-
export interface IRoomParticipantState {
|
|
161
|
-
participantList: RoomParticipant[]; // Participant list
|
|
162
|
-
participantListCursor: string; // Participant list cursor
|
|
163
|
-
participantListWithVideo: RoomParticipant[]; // List of participants with video enabled
|
|
164
|
-
participantWithScreen: RoomParticipant | null; // Participant with ongoing screen sharing
|
|
165
|
-
pendingDeviceApplications: DeviceRequestInfo[]; // Pending equipment applications
|
|
166
|
-
pendingDeviceInvitations: DeviceRequestInfo[]; // Pending device invitations
|
|
167
|
-
speakingUsers: Map<string, number>; // Users currently speaking (uid -> volume)
|
|
168
|
-
networkQualities: Map<string, NetworkInfo>; // Network quality information (uid -> network info)
|
|
169
|
-
|
|
170
|
-
readonly localParticipant: RoomParticipant | null; // Local participant information (read-only)
|
|
171
|
-
}
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
### Methods
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
#### Participant Management
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
- **getParticipantList(options: { cursor?: string, count?: number }): Promise<RoomParticipant[]>**
|
|
182
|
-
-Get the participant list
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
#### Role Management
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
- **transferOwner(options: { userId: string }): Promise<void>**
|
|
189
|
-
-Transfer owner permission
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
- **setAdmin(options: { userId: string }): Promise<void>**
|
|
193
|
-
-Set administrator
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
- **revokeAdmin(options: { userId: string }): Promise<void>**
|
|
197
|
-
- Revoke admin permission
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
- **kickParticipant(options: { userId: string }): Promise<void>**
|
|
201
|
-
- Kick out participant
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
#### Participant Information Management
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
- **updateParticipantNameCard(options: { userId: string, nameCard: string }): Promise<void>**
|
|
208
|
-
- Update participant business card
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
- **updateParticipantMetaData(options: { userId: string, metaData: Record<string, string> }): Promise<void>**
|
|
212
|
-
- Update participant metadata
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
Device control
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
- **closeParticipantDevice(options: { userId: string, deviceType: DeviceType }): Promise<void>**
|
|
219
|
-
-Turn off participant device
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
- **muteParticipantMessage(options: { userId: string, mute: boolean }): Promise<void>**
|
|
223
|
-
- Mute/Unblock participant
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
- **disableAllDevices(options: { deviceType: DeviceType, disable: boolean }): Promise<void>**
|
|
227
|
-
- Disable/Enable all devices
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
- **disableAllMessages(options: { disable: boolean }): Promise<void>**
|
|
231
|
-
-Disable/Enable all messages
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
#### Device Request Management
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
- **requestToOpenDevice(options: { device: DeviceType; timeout?: number }): Promise<void>**
|
|
238
|
-
-Request to turn on the device
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
- **cancelOpenDeviceRequest(options: { device: DeviceType }): Promise<void>**
|
|
242
|
-
-Cancel device start request
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
- **approveOpenDeviceRequest(options: { device: DeviceType; userId: string }): Promise<void>**
|
|
246
|
-
- Approve device start request
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
- **rejectOpenDeviceRequest(options: { device: DeviceType; userId: string; }): Promise<void>**
|
|
250
|
-
- Deny device start request
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
#### Device Invitation Management
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
- **inviteToOpenDevice(options: { device: DeviceType; userId: string; timeout?: number }): Promise<void>**
|
|
257
|
-
- Device enabling invitation
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
- **cancelOpenDeviceInvitation(options: { device: DeviceType; userId: string }): Promise<void>**
|
|
261
|
-
- Cancel device enabling invitation
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
- **acceptOpenDeviceInvitation(options: {device: DeviceType; userId: string; }): Promise<void>**
|
|
265
|
-
-Accept device enabling invitation
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
- **declineOpenDeviceInvitation(options: {device: DeviceType; userId: string; }): Promise<void>**
|
|
269
|
-
- Deny device enabling invitation
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
### Event Handlers
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
#### Participant status event
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
- **onParticipantJoined: (options: { participant: RoomParticipant }) => void**
|
|
279
|
-
- Trigger when a participant joins
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
- **onParticipantLeft: (options: { participant: RoomParticipant }) => void**
|
|
283
|
-
- Trigger when a participant leaves
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
#### Role change event
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
- **onOwnerChanged: (options: { newOwner: RoomParticipant }) => void**
|
|
290
|
-
- Trigger on host change
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
- **onAdminSet: (options: { userInfo: RoomParticipant }) => void**
|
|
294
|
-
- Trigger when setting administrator
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
- **onAdminRevoked: (options: { userInfo: RoomParticipant }) => void**
|
|
298
|
-
- Trigger when revoking admin
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
#### Room management event
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
- **onKickedFromRoom: (options: { reason: KickedOutOfRoomReason, message: string }) => void**
|
|
305
|
-
- Trigger when being kicked out of the room
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
#### Device control event
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
- **onParticipantDeviceClosed: (options: { userId: string, device: DeviceType, operator: RoomUser }) => void**
|
|
312
|
-
- Trigger when a participant's device is closed
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
- **onParticipantMessageMuted: (options: { userId: string, muted: boolean, operator: RoomUser }) => void**
|
|
316
|
-
- Trigger when a participant is muted/unblocked
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
- **onAllDevicesDisabled: (options: { device: DeviceType, disable: boolean, operator: RoomUser }) => void**
|
|
320
|
-
-Trigger when all devices are disabled/enabled
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
- **onAllMessagesDisabled: (options: { disable: boolean, operator: RoomUser }) => void**
|
|
324
|
-
- Trigger when all messages are disabled/enabled
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
#### Device Request Event
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
- **onDeviceRequestReceived: (options: { request: DeviceRequestInfo }) => void**
|
|
331
|
-
- Trigger when a device request is received
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
- **onDeviceRequestCancelled: (options: { request: DeviceRequestInfo }) => void**
|
|
335
|
-
- Trigger when a device request is canceled
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
- **onDeviceRequestTimeout: (options: { request: DeviceRequestInfo }) => void**
|
|
339
|
-
- Trigger when a device request times out
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
- **onDeviceRequestApproved: (options: { request: DeviceRequestInfo, operator: RoomUser }) => void**
|
|
343
|
-
- Trigger when a device request is approved
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
- **onDeviceRequestRejected: (options: { request: DeviceRequestInfo, operator: RoomUser }) => void**
|
|
347
|
-
-Trigger when a device request is rejected
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
- **onDeviceRequestProcessed: (options: { request: DeviceRequestInfo, operator: RoomUser }) => void**
|
|
351
|
-
- Trigger when a device request is processed
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
#### Device Invitation Event
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
- **onDeviceInvitationReceived: (options: { invitation: DeviceRequestInfo }) => void**
|
|
358
|
-
- Trigger when a device invitation is received
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
- **onDeviceInvitationCancelled: (options: { invitation: DeviceRequestInfo }) => void**
|
|
362
|
-
- Trigger when a device invitation is cancelled
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
- **onDeviceInvitationTimeout: (options: { invitation: DeviceRequestInfo }) => void**
|
|
366
|
-
- Trigger when a device invitation times out
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
- **onDeviceInvitationAccepted: (options: { invitation: DeviceRequestInfo, operator: RoomUser }) => void**
|
|
370
|
-
- Trigger when a device invitation is accepted
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
- **onDeviceInvitationDeclined: (options: { invitation: DeviceRequestInfo, operator: RoomUser }) => void**
|
|
374
|
-
- Trigger when a device invitation is rejected
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
### Example
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
API and event usage example
|
|
381
|
-
```typescript
|
|
382
|
-
import { useRoomParticipantState } from 'tuikit-atomicx-vue3';
|
|
383
|
-
const {
|
|
384
|
-
getParticipantList,
|
|
385
|
-
subscribeEvent,
|
|
386
|
-
unsubscribeEvent
|
|
387
|
-
} = useRoomParticipantState();
|
|
388
|
-
```
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { GET_WEB_ROOM_STATE_DETAIL_DEFINITION } from '../definitions/get_web_room_state_detail_def.js';
|
|
3
|
-
import { getDocContent } from '../../utils/get-doc-content.js';
|
|
4
|
-
import { reportCLSClient } from '../../utils/report-cls-client.js';
|
|
5
|
-
import { handleFramework } from '../../utils/handle-framework.js';
|
|
6
|
-
import { handleStateName } from '../../utils/handle-state-name.js';
|
|
7
|
-
function getResultText(params) {
|
|
8
|
-
const { framework, componentName = '' } = params;
|
|
9
|
-
reportCLSClient({
|
|
10
|
-
method: 'get_web_room_state_detail',
|
|
11
|
-
info: componentName,
|
|
12
|
-
framework: framework,
|
|
13
|
-
});
|
|
14
|
-
return getDocContent(['roomkit', `${handleFramework(framework)}`, 'states', `${handleStateName(componentName)}.md`]);
|
|
15
|
-
}
|
|
16
|
-
const registryGetWebRoomStateDetailTool = (mcpServer) => {
|
|
17
|
-
const { name, description, parameter_descriptions } = GET_WEB_ROOM_STATE_DETAIL_DEFINITION;
|
|
18
|
-
mcpServer.tool(name, description, {
|
|
19
|
-
framework: z.enum(['vue']).describe(parameter_descriptions.framework),
|
|
20
|
-
componentName: z.string().describe(parameter_descriptions.componentName),
|
|
21
|
-
}, (params) => ({
|
|
22
|
-
content: [
|
|
23
|
-
{
|
|
24
|
-
type: 'text',
|
|
25
|
-
text: getResultText(params),
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}));
|
|
29
|
-
};
|
|
30
|
-
export { registryGetWebRoomStateDetailTool };
|
|
31
|
-
//# sourceMappingURL=get-web-room-state-detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-web-room-state-detail.js","sourceRoot":"","sources":["../../../src/tools/room/get-web-room-state-detail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oCAAoC,EAAE,MAAM,iDAAiD,CAAC;AACvG,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,EAAE,aAAa,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IACjD,eAAe,CAAC;QACd,MAAM,EAAE,2BAA2B;QACnC,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,SAAS,EAAE,GAAG,eAAe,CAAC,SAAS,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,eAAe,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AACvH,CAAC;AAED,MAAM,iCAAiC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACjE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,oCAAoC,CAAC;IAC3F,SAAS,CAAC,IAAI,CACZ,IAAI,EACJ,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,SAAS,CAAC;QACrE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,aAAa,CAAC;KACzE,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,iCAAiC,EAAE,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|