@tencent-rtc/mcp 1.0.7 → 1.1.6

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.
Files changed (365) hide show
  1. package/README.md +8 -4
  2. package/index.js +2 -0
  3. package/index.js.map +1 -1
  4. package/libs/TLSSigAPIv2.d.ts +134 -0
  5. package/libs/TLSSigAPIv2.js +243 -0
  6. package/package.json +1 -1
  7. package/resource/doc/chatuikit/react/chat_window_integration.md +92 -0
  8. package/resource/doc/chatuikit/react/components/chat.md +44 -0
  9. package/resource/doc/chatuikit/react/components/chatheader.md +189 -0
  10. package/resource/doc/chatuikit/react/components/conversation-list.md +1017 -0
  11. package/resource/doc/chatuikit/react/components/message-input.md +950 -0
  12. package/resource/doc/chatuikit/react/components/message-list.md +485 -0
  13. package/resource/doc/chatuikit/react/components/tuikit.md +80 -0
  14. package/resource/doc/chatuikit/react/create-group.md +23 -0
  15. package/resource/doc/chatuikit/react/init.md +26 -0
  16. package/resource/doc/chatuikit/react/integration.md +14 -10
  17. package/resource/doc/chatuikit/vue/chat_window_integration.md +155 -0
  18. package/resource/doc/chatuikit/vue/components/chat.md +50 -0
  19. package/resource/doc/chatuikit/{vue3 → vue}/components/chatheader.md +1 -1
  20. package/resource/doc/chatuikit/vue/components/conversation-list.md +770 -0
  21. package/resource/doc/chatuikit/{vue3/components/MessageInput.md → vue/components/message-input.md} +4 -1
  22. package/resource/doc/chatuikit/vue/components/message-list.md +662 -0
  23. package/resource/doc/chatuikit/vue/components/tuikit.md +45 -0
  24. package/resource/doc/chatuikit/vue/create-group.md +25 -0
  25. package/resource/doc/chatuikit/vue/init.md +40 -0
  26. package/resource/doc/chatuikit/{vue3 → vue}/integration.md +34 -74
  27. package/resource/doc/livekit/vue/components/barrage.md +616 -0
  28. package/resource/doc/livekit/vue/components/broadcast.md +595 -0
  29. package/resource/doc/livekit/vue/components/co-guest-panel.md +130 -0
  30. package/resource/doc/livekit/vue/components/live-audience-list.md +282 -0
  31. package/resource/doc/livekit/vue/components/live-list.md +200 -0
  32. package/resource/doc/livekit/vue/components/live-player.md +269 -0
  33. package/resource/doc/livekit/vue/components/live-scene-panel.md +175 -0
  34. package/resource/doc/livekit/vue/components/live-view.md +398 -0
  35. package/resource/doc/livekit/vue/components/stream-mixer.md +446 -0
  36. package/resource/doc/livekit/vue/states/live-state.md +3591 -0
  37. package/resource/doc/roomkit/vue/states/device-state.md +369 -0
  38. package/resource/doc/roomkit/vue/states/login-state.md +59 -0
  39. package/resource/doc/roomkit/vue/states/room-list-state.md +355 -0
  40. package/resource/doc/roomkit/vue/states/room-participant-state.md +388 -0
  41. package/server-config.js +35 -0
  42. package/server-config.js.map +1 -0
  43. package/tools/call/{get-native-call-integration-guide.js → get-native-call-integration.js} +5 -6
  44. package/tools/call/get-native-call-integration.js.map +1 -0
  45. package/tools/call/{get-web-call-integration-guide.js → get-web-call-integration.js} +7 -7
  46. package/tools/call/get-web-call-integration.js.map +1 -0
  47. package/tools/chat/create-group.js +30 -0
  48. package/tools/chat/create-group.js.map +1 -0
  49. package/tools/chat/get-chat-faq.js +3 -3
  50. package/tools/chat/get-chat-faq.js.map +1 -1
  51. package/tools/chat/get-native-chat-integration.js +34 -0
  52. package/tools/chat/get-native-chat-integration.js.map +1 -0
  53. package/tools/chat/get-web-chat-component-detail.js +9 -5
  54. package/tools/chat/get-web-chat-component-detail.js.map +1 -1
  55. package/tools/chat/get-web-chat-integration.js +37 -0
  56. package/tools/chat/get-web-chat-integration.js.map +1 -0
  57. package/tools/chat/get-web-chat-uikit-init.js +30 -0
  58. package/tools/chat/get-web-chat-uikit-init.js.map +1 -0
  59. package/tools/chat/get-web-chat-window-integration.js +37 -0
  60. package/tools/chat/get-web-chat-window-integration.js.map +1 -0
  61. package/tools/common/get-usersig.js +31 -26
  62. package/tools/common/get-usersig.js.map +1 -1
  63. package/tools/common/present-framework-choice.js +9 -19
  64. package/tools/common/present-framework-choice.js.map +1 -1
  65. package/tools/common/record-prompt.js +7 -8
  66. package/tools/common/record-prompt.js.map +1 -1
  67. package/tools/common/record-result.js +9 -8
  68. package/tools/common/record-result.js.map +1 -1
  69. package/tools/index.js +32 -13
  70. package/tools/index.js.map +1 -1
  71. package/tools/live/get-web-live-component-detail.js +34 -0
  72. package/tools/live/get-web-live-component-detail.js.map +1 -0
  73. package/tools/live/get-web-live-state-detail.js +34 -0
  74. package/tools/live/get-web-live-state-detail.js.map +1 -0
  75. package/tools/room/get-web-room-state-detail.js +34 -0
  76. package/tools/room/get-web-room-state-detail.js.map +1 -0
  77. package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js +35 -0
  78. package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js.map +1 -0
  79. package/tools/rtcengine/{get-rtcenigne-faq.js → get-trtc-web-sdk-faq.js} +5 -5
  80. package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +1 -0
  81. package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js +36 -0
  82. package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js.map +1 -0
  83. package/utils/generate-usersig.js +7 -9
  84. package/utils/generate-usersig.js.map +1 -1
  85. package/utils/handle-component-name.js +57 -0
  86. package/utils/handle-component-name.js.map +1 -0
  87. package/utils/handle-framework.js +9 -0
  88. package/utils/handle-framework.js.map +1 -0
  89. package/utils/handle-state-name.js +29 -0
  90. package/utils/handle-state-name.js.map +1 -0
  91. package/@tencent/aegis-node-sdk/CHANGELOG.md +0 -8
  92. package/@tencent/aegis-node-sdk/LICENSE +0 -21
  93. package/@tencent/aegis-node-sdk/README.md +0 -562
  94. package/@tencent/aegis-node-sdk/lib/aegis.min.js +0 -1
  95. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +0 -14
  96. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +0 -1
  97. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +0 -9
  98. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +0 -2
  99. package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +0 -85
  100. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +0 -3
  101. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +0 -9
  102. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +0 -3
  103. package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +0 -9
  104. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +0 -62
  105. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +0 -11
  106. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +0 -4
  107. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +0 -130
  108. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +0 -34
  109. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +0 -2
  110. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +0 -18
  111. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +0 -8
  112. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +0 -8
  113. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +0 -2
  114. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +0 -4
  115. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +0 -10
  116. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +0 -3
  117. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +0 -3
  118. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +0 -34
  119. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +0 -12
  120. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +0 -14
  121. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +0 -2
  122. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +0 -12
  123. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +0 -3
  124. package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +0 -33
  125. package/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts +0 -0
  126. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +0 -2
  127. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +0 -18
  128. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +0 -60
  129. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +0 -15
  130. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +0 -5
  131. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +0 -6
  132. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +0 -18
  133. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +0 -12
  134. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +0 -10
  135. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +0 -20
  136. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +0 -27
  137. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +0 -2
  138. package/@tencent/aegis-node-sdk/package.json +0 -19
  139. package/@tencent/polaris/README.md +0 -407
  140. package/@tencent/polaris/dist/consumer/health.d.ts +0 -126
  141. package/@tencent/polaris/dist/consumer/health.js +0 -283
  142. package/@tencent/polaris/dist/consumer/health.js.map +0 -1
  143. package/@tencent/polaris/dist/consumer/index.d.ts +0 -120
  144. package/@tencent/polaris/dist/consumer/index.js +0 -348
  145. package/@tencent/polaris/dist/consumer/index.js.map +0 -1
  146. package/@tencent/polaris/dist/consumer/monitor.d.ts +0 -145
  147. package/@tencent/polaris/dist/consumer/monitor.js +0 -343
  148. package/@tencent/polaris/dist/consumer/monitor.js.map +0 -1
  149. package/@tencent/polaris/dist/consumer/selector.d.ts +0 -73
  150. package/@tencent/polaris/dist/consumer/selector.js +0 -316
  151. package/@tencent/polaris/dist/consumer/selector.js.map +0 -1
  152. package/@tencent/polaris/dist/errors.d.ts +0 -373
  153. package/@tencent/polaris/dist/errors.js +0 -154
  154. package/@tencent/polaris/dist/errors.js.map +0 -1
  155. package/@tencent/polaris/dist/global.d.ts +0 -16
  156. package/@tencent/polaris/dist/global.js +0 -18
  157. package/@tencent/polaris/dist/global.js.map +0 -1
  158. package/@tencent/polaris/dist/index.d.ts +0 -62
  159. package/@tencent/polaris/dist/index.js +0 -145
  160. package/@tencent/polaris/dist/index.js.map +0 -1
  161. package/@tencent/polaris/dist/instance.d.ts +0 -109
  162. package/@tencent/polaris/dist/instance.js +0 -38
  163. package/@tencent/polaris/dist/instance.js.map +0 -1
  164. package/@tencent/polaris/dist/limiter/bucket.d.ts +0 -51
  165. package/@tencent/polaris/dist/limiter/bucket.js +0 -152
  166. package/@tencent/polaris/dist/limiter/bucket.js.map +0 -1
  167. package/@tencent/polaris/dist/limiter/index.d.ts +0 -73
  168. package/@tencent/polaris/dist/limiter/index.js +0 -149
  169. package/@tencent/polaris/dist/limiter/index.js.map +0 -1
  170. package/@tencent/polaris/dist/limiter/ratelimit.d.ts +0 -27
  171. package/@tencent/polaris/dist/limiter/ratelimit.js +0 -134
  172. package/@tencent/polaris/dist/limiter/ratelimit.js.map +0 -1
  173. package/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +0 -17
  174. package/@tencent/polaris/dist/limiter/ratelimiter/base.js +0 -15
  175. package/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +0 -1
  176. package/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +0 -59
  177. package/@tencent/polaris/dist/limiter/ratelimiter/global.js +0 -397
  178. package/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +0 -1
  179. package/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +0 -3
  180. package/@tencent/polaris/dist/limiter/ratelimiter/index.js +0 -19
  181. package/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +0 -1
  182. package/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +0 -17
  183. package/@tencent/polaris/dist/limiter/ratelimiter/local.js +0 -52
  184. package/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +0 -1
  185. package/@tencent/polaris/dist/location.d.ts +0 -48
  186. package/@tencent/polaris/dist/location.js +0 -67
  187. package/@tencent/polaris/dist/location.js.map +0 -1
  188. package/@tencent/polaris/dist/logging.d.ts +0 -106
  189. package/@tencent/polaris/dist/logging.js +0 -130
  190. package/@tencent/polaris/dist/logging.js.map +0 -1
  191. package/@tencent/polaris/dist/metadata.d.ts +0 -78
  192. package/@tencent/polaris/dist/metadata.js +0 -119
  193. package/@tencent/polaris/dist/metadata.js.map +0 -1
  194. package/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +0 -47
  195. package/@tencent/polaris/dist/plugins/breaker/polaris.js +0 -162
  196. package/@tencent/polaris/dist/plugins/breaker/polaris.js.map +0 -1
  197. package/@tencent/polaris/dist/plugins/lb/base.d.ts +0 -24
  198. package/@tencent/polaris/dist/plugins/lb/base.js +0 -32
  199. package/@tencent/polaris/dist/plugins/lb/base.js.map +0 -1
  200. package/@tencent/polaris/dist/plugins/lb/edf.d.ts +0 -24
  201. package/@tencent/polaris/dist/plugins/lb/edf.js +0 -77
  202. package/@tencent/polaris/dist/plugins/lb/edf.js.map +0 -1
  203. package/@tencent/polaris/dist/plugins/lb/hashring.d.ts +0 -24
  204. package/@tencent/polaris/dist/plugins/lb/hashring.js +0 -53
  205. package/@tencent/polaris/dist/plugins/lb/hashring.js.map +0 -1
  206. package/@tencent/polaris/dist/plugins/lb/sticky.d.ts +0 -31
  207. package/@tencent/polaris/dist/plugins/lb/sticky.js +0 -88
  208. package/@tencent/polaris/dist/plugins/lb/sticky.js.map +0 -1
  209. package/@tencent/polaris/dist/plugins/lb/swrr.d.ts +0 -25
  210. package/@tencent/polaris/dist/plugins/lb/swrr.js +0 -72
  211. package/@tencent/polaris/dist/plugins/lb/swrr.js.map +0 -1
  212. package/@tencent/polaris/dist/plugins/lb/wr.d.ts +0 -17
  213. package/@tencent/polaris/dist/plugins/lb/wr.js +0 -50
  214. package/@tencent/polaris/dist/plugins/lb/wr.js.map +0 -1
  215. package/@tencent/polaris/dist/plugins/lb/wrr.d.ts +0 -19
  216. package/@tencent/polaris/dist/plugins/lb/wrr.js +0 -81
  217. package/@tencent/polaris/dist/plugins/lb/wrr.js.map +0 -1
  218. package/@tencent/polaris/dist/plugins/logging/console.d.ts +0 -10
  219. package/@tencent/polaris/dist/plugins/logging/console.js +0 -38
  220. package/@tencent/polaris/dist/plugins/logging/console.js.map +0 -1
  221. package/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +0 -32
  222. package/@tencent/polaris/dist/plugins/naming/local-server/index.js +0 -88
  223. package/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +0 -1
  224. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +0 -124
  225. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +0 -398
  226. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +0 -1
  227. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +0 -27
  228. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +0 -287
  229. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +0 -1
  230. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +0 -15
  231. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +0 -43
  232. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +0 -1
  233. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +0 -28
  234. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +0 -249
  235. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +0 -1
  236. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +0 -19
  237. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +0 -222
  238. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +0 -1
  239. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +0 -26
  240. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +0 -99
  241. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +0 -1
  242. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +0 -60
  243. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +0 -259
  244. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +0 -1
  245. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +0 -24
  246. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +0 -18
  247. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +0 -12
  248. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +0 -39
  249. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +0 -115
  250. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +0 -1
  251. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +0 -24
  252. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +0 -22
  253. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +0 -28
  254. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +0 -80
  255. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +0 -18
  256. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +0 -65
  257. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +0 -66
  258. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +0 -95
  259. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +0 -1568
  260. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +0 -36
  261. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +0 -51
  262. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +0 -1
  263. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +0 -18
  264. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +0 -67
  265. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +0 -82
  266. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +0 -11
  267. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +0 -46
  268. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +0 -16
  269. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +0 -10
  270. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +0 -1102
  271. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +0 -29
  272. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +0 -77
  273. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +0 -1
  274. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +0 -12
  275. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +0 -28
  276. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +0 -395
  277. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +0 -13
  278. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +0 -116
  279. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +0 -1
  280. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +0 -67
  281. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +0 -67
  282. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +0 -1
  283. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +0 -99
  284. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +0 -217
  285. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +0 -1
  286. package/@tencent/polaris/dist/plugins/registry/memory.d.ts +0 -10
  287. package/@tencent/polaris/dist/plugins/registry/memory.js +0 -50
  288. package/@tencent/polaris/dist/plugins/registry/memory.js.map +0 -1
  289. package/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +0 -51
  290. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js +0 -145
  291. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +0 -1
  292. package/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +0 -11
  293. package/@tencent/polaris/dist/plugins/router/polaris/rule.js +0 -174
  294. package/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +0 -1
  295. package/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +0 -25
  296. package/@tencent/polaris/dist/plugins/router/trpc/canary.js +0 -36
  297. package/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +0 -1
  298. package/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +0 -10
  299. package/@tencent/polaris/dist/plugins/router/trpc/env.js +0 -34
  300. package/@tencent/polaris/dist/plugins/router/trpc/env.js.map +0 -1
  301. package/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +0 -56
  302. package/@tencent/polaris/dist/plugins/router/trpc/set.js +0 -106
  303. package/@tencent/polaris/dist/plugins/router/trpc/set.js.map +0 -1
  304. package/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +0 -31
  305. package/@tencent/polaris/dist/plugins/shaping/unirate.js +0 -124
  306. package/@tencent/polaris/dist/plugins/shaping/unirate.js.map +0 -1
  307. package/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +0 -61
  308. package/@tencent/polaris/dist/plugins/shaping/warmup.js +0 -171
  309. package/@tencent/polaris/dist/plugins/shaping/warmup.js.map +0 -1
  310. package/@tencent/polaris/dist/plugins/weight/polaris.d.ts +0 -23
  311. package/@tencent/polaris/dist/plugins/weight/polaris.js +0 -159
  312. package/@tencent/polaris/dist/plugins/weight/polaris.js.map +0 -1
  313. package/@tencent/polaris/dist/plugins.d.ts +0 -619
  314. package/@tencent/polaris/dist/plugins.js +0 -91
  315. package/@tencent/polaris/dist/plugins.js.map +0 -1
  316. package/@tencent/polaris/dist/polaris.d.ts +0 -33
  317. package/@tencent/polaris/dist/polaris.js +0 -59
  318. package/@tencent/polaris/dist/polaris.js.map +0 -1
  319. package/@tencent/polaris/dist/provider/index.d.ts +0 -102
  320. package/@tencent/polaris/dist/provider/index.js +0 -168
  321. package/@tencent/polaris/dist/provider/index.js.map +0 -1
  322. package/@tencent/polaris/dist/registry.d.ts +0 -174
  323. package/@tencent/polaris/dist/registry.js +0 -660
  324. package/@tencent/polaris/dist/registry.js.map +0 -1
  325. package/@tencent/polaris/dist/rules.d.ts +0 -163
  326. package/@tencent/polaris/dist/rules.js +0 -24
  327. package/@tencent/polaris/dist/rules.js.map +0 -1
  328. package/@tencent/polaris/dist/scripts/postinstall.d.ts +0 -1
  329. package/@tencent/polaris/dist/scripts/postinstall.js +0 -71
  330. package/@tencent/polaris/dist/scripts/postinstall.js.map +0 -1
  331. package/@tencent/polaris/dist/service.d.ts +0 -18
  332. package/@tencent/polaris/dist/service.js +0 -3
  333. package/@tencent/polaris/dist/service.js.map +0 -1
  334. package/@tencent/polaris/dist/skeleton.d.ts +0 -87
  335. package/@tencent/polaris/dist/skeleton.js +0 -282
  336. package/@tencent/polaris/dist/skeleton.js.map +0 -1
  337. package/@tencent/polaris/dist/utils.d.ts +0 -36
  338. package/@tencent/polaris/dist/utils.js +0 -74
  339. package/@tencent/polaris/dist/utils.js.map +0 -1
  340. package/@tencent/polaris/dist/weak.d.ts +0 -11
  341. package/@tencent/polaris/dist/weak.js +0 -44
  342. package/@tencent/polaris/dist/weak.js.map +0 -1
  343. package/@tencent/polaris/package.json +0 -114
  344. package/libs/lib-generate-test-usersig-es.min.d.ts +0 -6
  345. package/libs/lib-generate-test-usersig-es.min.js +0 -2
  346. package/resource/doc/chatuikit/react/generate_UserSig.md +0 -306
  347. package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +0 -202
  348. package/resource/doc/chatuikit/react/integrate_tuichat_react.md +0 -279
  349. package/resource/doc/chatuikit/vue/generate_UserSig.md +0 -306
  350. package/resource/doc/chatuikit/vue/integrate_only_tuichat_Vue_web.md +0 -124
  351. package/resource/doc/chatuikit/vue/integrate_tuikit_Vue_web.md +0 -552
  352. package/streamableHttp.js +0 -74
  353. package/streamableHttp.js.map +0 -1
  354. package/tools/call/get-native-call-integration-guide.js.map +0 -1
  355. package/tools/call/get-web-call-integration-guide.js.map +0 -1
  356. package/tools/chat/get-native-chat-integration-guide.js +0 -34
  357. package/tools/chat/get-native-chat-integration-guide.js.map +0 -1
  358. package/tools/chat/get-web-chat-integration-guide.js +0 -35
  359. package/tools/chat/get-web-chat-integration-guide.js.map +0 -1
  360. package/tools/rtcengine/get-rtcengine-integration-guide.js +0 -33
  361. package/tools/rtcengine/get-rtcengine-integration-guide.js.map +0 -1
  362. package/tools/rtcengine/get-rtcenigne-faq.js.map +0 -1
  363. /package/resource/doc/chatuikit/{vue3 → vue}/components/avatar.md +0 -0
  364. /package/resource/doc/chatuikit/{vue3 → vue}/components/component-list.md +0 -0
  365. /package/resource/doc/chatuikit/{vue3 → vue}/components/userpicker.md +0 -0
@@ -0,0 +1,388 @@
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
+ ```
@@ -0,0 +1,35 @@
1
+ import { aegisClient } from './utils/aegis-client.js';
2
+ class ServerConfig {
3
+ static instance;
4
+ config;
5
+ constructor() {
6
+ this.config = this.parseEnvConfig();
7
+ }
8
+ static getInstance() {
9
+ if (!ServerConfig.instance) {
10
+ ServerConfig.instance = new ServerConfig();
11
+ }
12
+ return ServerConfig.instance;
13
+ }
14
+ parseEnvConfig() {
15
+ const config = {};
16
+ const { SDKAPPID, SECRETKEY } = process.env || {};
17
+ if (SDKAPPID) {
18
+ config.SDKAppID = SDKAPPID;
19
+ aegisClient.report({
20
+ name: 'mcp_config',
21
+ ext1: SDKAPPID,
22
+ from: 'en',
23
+ });
24
+ }
25
+ if (SECRETKEY) {
26
+ config.secretKey = SECRETKEY;
27
+ }
28
+ return config;
29
+ }
30
+ getConfig() {
31
+ return { ...this.config };
32
+ }
33
+ }
34
+ export { ServerConfig, };
35
+ //# sourceMappingURL=server-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-config.js","sourceRoot":"","sources":["../src/server-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,YAAY;IAChB,MAAM,CAAC,QAAQ,CAAe;IACtB,MAAM,CAAsB;IACpC;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;IACtC,CAAC;IAEM,MAAM,CAAC,WAAW;QACvB,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;YAC3B,YAAY,CAAC,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAC;QAC7C,CAAC;QACD,OAAO,YAAY,CAAC,QAAQ,CAAC;IAC/B,CAAC;IAEO,cAAc;QACpB,MAAM,MAAM,GAAwB,EAAE,CAAC;QACvC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC;QAClD,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC3B,WAAW,CAAC,MAAM,CAAC;gBACjB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,IAAI;aACX,CAAC,CAAC;QACL,CAAC;QACD,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;QAC/B,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,SAAS;QACd,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IAC5B,CAAC;CACF;AAED,OAAO,EACL,YAAY,GACb,CAAC"}
@@ -2,7 +2,6 @@ import { z } from 'zod';
2
2
  import { getDocContent } from '../../utils/get-doc-content.js';
3
3
  import { aegisClient } from '../../utils/aegis-client.js';
4
4
  const description = `
5
-
6
5
  This is a tool specifically designed for creating native mobile audio and video call applications. With the tool, you can achieve the following functions: | 这是一个专门负责创建移动端 native 音视频通话应用的工具,通过工具您可以实现以下功能:\n
7
6
  1. Create a native audio and video calling app with functionality and UI similar to the audio and video calling capabilities in WeChat or WeChat for Business. | 1. 创建一个 native 音视频通话应用,功能和 UI 界面类似微信(WeChat)或者企业微信(企微)中音视频通话能力 \n
8
7
  2. The tool provides Call UIKit component integration solutions for multiple platforms or frameworks, including flutter (cross-platform), android (native), and ios (native). You can choose one of these platforms or frameworks to build a mobile native audio and video call project. | 2. 工具提供 flutter(跨平台)、android(原生)、ios(原生) 多种平台或框架的 Call UIKit 组件集成方案,您可以根据需要选择其中一个平台或框架搭建一个移动端 native 音视频通话项目 \n
@@ -11,15 +10,15 @@ This is a tool specifically designed for creating native mobile audio and video
11
10
  function getResultText(params) {
12
11
  const { sdkAppId = '', framework = '' } = params;
13
12
  aegisClient.report({
14
- name: 'get_native_call_uikit_integration_guide',
13
+ name: 'get_native_call_uikit_integration',
15
14
  ext1: sdkAppId,
16
15
  ext2: framework,
17
16
  from: 'en',
18
17
  });
19
18
  return getDocContent(['tuicallkit', `${framework}`]);
20
19
  }
21
- const registryGetNativeCallIntegrationGuideTool = (mcpServer) => {
22
- mcpServer.tool('get_native_call_uikit_integration_guide', description, {
20
+ const registryGetNativeCallIntegrationTool = (mcpServer) => {
21
+ mcpServer.tool('get_native_call_uikit_integration', description, {
23
22
  framework: z.enum(['flutter', 'android', 'ios']).describe('The platform type of the native call UIKit component library. You first need to choose which platform to use to create your chat application. Currently supported frameworks are: Flutter, Android, and iOS. | native call uikit 组件库的平台类型,您首先需要选择使用哪一种来平台来创建您的聊天应用,目前支持的框架有:flutter, android, ios。'),
24
23
  sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID。`),
25
24
  secretKey: z.string().describe(`The secretKey of your SDKAppID. |您的 SDKAppID 的 secretKey。`),
@@ -32,5 +31,5 @@ const registryGetNativeCallIntegrationGuideTool = (mcpServer) => {
32
31
  ]
33
32
  }));
34
33
  };
35
- export { registryGetNativeCallIntegrationGuideTool };
36
- //# sourceMappingURL=get-native-call-integration-guide.js.map
34
+ export { registryGetNativeCallIntegrationTool };
35
+ //# sourceMappingURL=get-native-call-integration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-native-call-integration.js","sourceRoot":"","sources":["../../../src/tools/call/get-native-call-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,WAAW,GAAG;;;;;CAKnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAG,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAClD,WAAW,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,mCAAmC;QACzC,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,oCAAoC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACpE,SAAS,CAAC,IAAI,CACZ,mCAAmC,EACnC,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,oSAAoS,CAAC;QAC/V,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;QAC/E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;KAC5F,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,oCAAoC,EAAE,CAAC"}
@@ -10,18 +10,18 @@ This is a tool specifically designed for creating web audio and video call appli
10
10
  function getResultText(params) {
11
11
  const { sdkAppId = '', framework = '' } = params;
12
12
  aegisClient.report({
13
- name: 'get_web_call_uikit_integration_guide',
13
+ name: 'get_web_call_uikit_integration',
14
14
  ext1: sdkAppId,
15
15
  ext2: framework,
16
16
  from: 'en',
17
17
  });
18
18
  return getDocContent(['tuicallkit', `${framework}`]);
19
19
  }
20
- const registryGetWebCallIntegrationGuideTool = (mcpServer) => {
21
- mcpServer.tool('get_web_call_uikit_integration_guide', description, {
20
+ const registryGetWebCallIntegrationTool = (mcpServer) => {
21
+ mcpServer.tool('get_web_call_uikit_integration', description, {
22
22
  framework: z.enum(['react', 'vue']).describe('The platform type of the web call UIKit component library. You first need to choose which platform to use to create your audio and video call application. Currently supported frameworks are: React and Vue. | web call uikit 组件库的平台类型,您首先需要选择使用哪一种来平台来创建您的音视频通话应用,目前支持的框架有:react、 vue。'),
23
- sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID。`),
24
- secretKey: z.string().describe(`The secretKey of your SDKAppID. |您的 SDKAppID 的 secretKey。`),
23
+ sdkAppId: z.string().optional().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID。`),
24
+ // secretKey: z.string().describe(`The secretKey of your SDKAppID. |您的 SDKAppID 的 secretKey。`),
25
25
  }, (params) => ({
26
26
  content: [
27
27
  {
@@ -31,5 +31,5 @@ const registryGetWebCallIntegrationGuideTool = (mcpServer) => {
31
31
  ]
32
32
  }));
33
33
  };
34
- export { registryGetWebCallIntegrationGuideTool };
35
- //# sourceMappingURL=get-web-call-integration-guide.js.map
34
+ export { registryGetWebCallIntegrationTool };
35
+ //# sourceMappingURL=get-web-call-integration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-web-call-integration.js","sourceRoot":"","sources":["../../../src/tools/call/get-web-call-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,WAAW,GAAG;;;;;CAKnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAG,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAChD,WAAW,CAAC,MAAM,CAAC;QACnB,IAAI,EAAE,gCAAgC;QACtC,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,iCAAiC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACjE,SAAS,CAAC,IAAI,CACZ,gCAAgC,EAChC,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,0RAA0R,CAAC;QACxU,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;QAC1F,+FAA+F;KAChG,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"}
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ import { getDocContent } from '../../utils/get-doc-content.js';
3
+ import { aegisClient } from '../../utils/aegis-client.js';
4
+ import { handleFramework } from '../../utils/handle-framework.js';
5
+ const description = `
6
+ This is a tool specifically responsible for helping users create group conversations. When the tool is called, an experience group is automatically created through the sample code in the document. | 这是一个专门负责帮用户创建群组会话的工具,调用工具时通过文档中的示例代码自动一个体验群组。\n
7
+ `;
8
+ function getResultText(params) {
9
+ const { framework = '' } = params;
10
+ aegisClient.report({
11
+ name: 'get_web_create_group_doc',
12
+ ext2: framework,
13
+ from: 'en',
14
+ });
15
+ return getDocContent(['chatuikit', `${handleFramework(framework)}`, 'create-group.md']);
16
+ }
17
+ const registryGetWebCreateGroupTool = (mcpServer) => {
18
+ mcpServer.tool('get_web_create_group_doc', description, {
19
+ framework: z.enum(['react', 'vue']).describe('Chat UIKit creates a group API. Frameworks supported are: React, Vue. | Chat UIKit 创建群组 API 支持的框架有:react、vue。'),
20
+ }, (params) => ({
21
+ content: [
22
+ {
23
+ type: 'text',
24
+ text: getResultText(params),
25
+ }
26
+ ]
27
+ }));
28
+ };
29
+ export { registryGetWebCreateGroupTool };
30
+ //# sourceMappingURL=create-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-group.js","sourceRoot":"","sources":["../../../src/tools/chat/create-group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,MAAM,WAAW,GAAG;;CAEnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAClC,WAAW,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,WAAW,EAAE,GAAG,eAAe,CAAC,SAAS,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAC1F,CAAC;AAED,MAAM,6BAA6B,GAAG,CAAC,SAAoB,EAAE,EAAE;IAC7D,SAAS,CAAC,IAAI,CACZ,0BAA0B,EAC1B,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,+GAA+G,CAAC;KAC9J,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,6BAA6B,EAAE,CAAC"}
@@ -2,8 +2,8 @@ import { z } from 'zod';
2
2
  import { getDocContent } from '../../utils/get-doc-content.js';
3
3
  import { aegisClient } from '../../utils/aegis-client.js';
4
4
  const description = `
5
- This is a tool specifically designed to solve common problems with Chat applications. Through the tool, you can get the following: | 这是一个专门负责解决 Chat 聊天应用常见问题的工具,通过工具您可以获取以下内容:\n
6
- 1. Get answers to frequently asked questions about building chat apps on mobile (native), web, react, vue, and other related platforms or frameworks | 1. 可以获取到移动端(native)、web 端 react、vue 等相关平台或框架搭建聊天应用的常见问题解答 \n
5
+ This is a tool specifically designed to provide solutions to common problems encountered in chat applications. Users can access this tool when they need a solution to a problem. | 这是一个专门负责提供 Chat 聊天应用中常见问题解决方案的工具,当用户查询某个问题解决方案时,可以调用这个工具:\n
6
+ 1. Get answers to frequently asked questions about building chat apps on mobile (native), web, react, vue, and other related platforms or frameworks. | 1. 可以获取到移动端(native)、web 端 react、vue 等相关平台或框架搭建聊天应用的常见问题解答 \n
7
7
  `;
8
8
  function getResultText(params) {
9
9
  const { sdkAppId = '', question = '' } = params;
@@ -18,7 +18,7 @@ function getResultText(params) {
18
18
  const registryGetChatFaqTool = (mcpServer) => {
19
19
  mcpServer.tool('get_chat_faq', description, {
20
20
  question: z.string().describe('Please describe your issue. | 请描述你的问题'),
21
- sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID`)
21
+ sdkAppId: z.string().optional().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID`)
22
22
  }, (params) => ({
23
23
  content: [
24
24
  {
@@ -1 +1 @@
1
- {"version":3,"file":"get-chat-faq.js","sourceRoot":"","sources":["../../../src/tools/chat/get-chat-faq.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,WAAW,GAAG;;;CAGnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAChD,WAAW,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,sBAAsB,GAAG,CAAC,SAAoB,EAAE,EAAE;IACtD,SAAS,CAAC,IAAI,CACZ,cAAc,EACd,WAAW,EACX;QACE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QACtE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;KAC/E,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,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"get-chat-faq.js","sourceRoot":"","sources":["../../../src/tools/chat/get-chat-faq.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,WAAW,GAAG;;;CAGnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAChD,WAAW,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,sBAAsB,GAAG,CAAC,SAAoB,EAAE,EAAE;IACtD,SAAS,CAAC,IAAI,CACZ,cAAc,EACd,WAAW,EACX;QACE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QACtE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;KAC1F,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,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ import { getDocContent } from '../../utils/get-doc-content.js';
3
+ import { aegisClient } from '../../utils/aegis-client.js';
4
+ const description = `
5
+ This is a tool specifically designed for creating native mobile chat applications. Users can use this tool when they need to create a native chat application, and it provides the following functions: | 这是一个专门负责创建移动端 native 聊天应用的工具,当用户需要创建一个 native 聊天应用时可以调用这个工具,提供以下功能:\n
6
+ 1. Create a native chat app with functionality and UI similar to WeChat or WeCom. | 1. 创建一个 native 聊天应用,功能和 UI 界面类似微信(WeChat)或者企业微信(企微)。\n
7
+ 2. The tool provides Chat TUIKit component integration solutions for multiple platforms or frameworks, including Flutter (cross-platform), Android (native), and iOS (native). A mobile native chat project needs to be built based on the user's choice. | 2. 工具提供 flutter(跨平台)、android(原生)、ios(原生) 多种平台(platform)或框架(framework)的 Chat TUIKit 组件集成方案,需要根据用户的选择来搭实现一个移动端 native 聊天项目。\n
8
+ 3. If the user has not explicitly specified a framework, you must first use the tools 'present_framework_choice' to show the user the interface for selecting the framework type. | 3. 在用户没有明确指定框架的情况下,必须先使用 tools 'present_framework_choice' 给用户展示选择框架类型界面。\n
9
+ `;
10
+ function getResultText(params) {
11
+ const { sdkAppId = '', framework = '' } = params;
12
+ aegisClient.report({
13
+ name: 'get_native_chat_uikit_integration',
14
+ ext1: sdkAppId,
15
+ ext2: framework,
16
+ from: 'en',
17
+ });
18
+ return getDocContent(['chatuikit', `${framework}`]);
19
+ }
20
+ const registryGetNativeChatIntegrationTool = (mcpServer) => {
21
+ mcpServer.tool('get_native_chat_uikit_integration', description, {
22
+ framework: z.enum(['flutter', 'android', 'ios']).describe('The platform type of the Native Chat UIKit component library. You first need to choose which platform to use to create your chat application. Currently supported frameworks or platforms are: Flutter, Android, and iOS. | native chat uikit 组件库的平台类型,您首先需要选择使用哪一种来平台来创建您的聊天应用,目前支持的框架或平台有:flutter, android, ios。'),
23
+ sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID`),
24
+ }, (params) => ({
25
+ content: [
26
+ {
27
+ type: 'text',
28
+ text: getResultText(params),
29
+ }
30
+ ]
31
+ }));
32
+ };
33
+ export { registryGetNativeChatIntegrationTool };
34
+ //# sourceMappingURL=get-native-chat-integration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-native-chat-integration.js","sourceRoot":"","sources":["../../../src/tools/chat/get-native-chat-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,WAAW,GAAG;;;;;CAKnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IACjD,WAAW,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,mCAAmC;QACzC,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,oCAAoC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACpE,SAAS,CAAC,IAAI,CACZ,mCAAmC,EACnC,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,oTAAoT,CAAC;QAC/W,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;KAC/E,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,oCAAoC,EAAE,CAAC"}
@@ -1,10 +1,14 @@
1
1
  import { z } from 'zod';
2
2
  import { getDocContent } from '../../utils/get-doc-content.js';
3
3
  import { aegisClient } from '../../utils/aegis-client.js';
4
+ import { handleFramework } from '../../utils/handle-framework.js';
5
+ import { handleComponentName } from '../../utils/handle-component-name.js';
4
6
  const description = `
5
- This is a tool that provides detailed descriptions of UI components for web chat applications. You will get the following: | 这是一个专门负责提供 web 聊天应用 UI 组件详情说明的工具,通过工具您获得以下内容:\n
6
- 1. The tool provides detailed usage and examples of Chat UIKit components for react and vue3. You can choose one of the frameworks to learn more about the component details as needed. | 1. 工具提供 react、vue3 两种框架的 Chat UIKit 组件详细用法和案例,您可以根据需要选择其中一个框架的组件详情进行了解 \n
7
- 2. If no specific framework is specified, you must first use the tools tool present_framework_choice to display the framework type selection interface. | 2. 在没有指定特定框架(framework)的情况下,必须优先使用 tools 工具 present_framework_choice 展示选择框架类型界面。 \n
7
+
8
+ This is a tool specifically designed to provide detailed descriptions of UIKit components for online chat applications. Through this tool, you will obtain the following: | 这是一个专门负责提供 web 聊天应用 UIKit 组件详情说明的工具,通过工具您获得以下内容:\n
9
+ 1. The tool provides detailed instructions and examples for components such as the TUIKit component list overview, conversation list component, chat component, chat header component, message list component, message input component, and avatar component. | 1. 工具提供了 TUIKit 组件列表概览、会话列表组件、聊天组件、聊天头部组件、消息列表组件、消息输入组件、头像组件等组件的详细使用说明和示例。 \n
10
+ 2. The tool provides detailed usage examples and case studies for Chat TUIKit components in both React and Vue frameworks. Users can choose the component details for one of the frameworks according to their needs. | 2. 工具提供 react、vue 两种框架的 Chat TUIKit 组件详细用法和案例,根据用户的需要选择其中一个框架的组件详情。\n
11
+ 3. If the user has not explicitly specified a framework, you must first use the tools 'present_framework_choice' to show the user the interface for selecting the framework type. | 3. 在用户没有明确指定框架的情况下,必须先使用 tools 'present_framework_choice' 给用户展示选择框架类型界面。\n
8
12
  `;
9
13
  function getResultText(params) {
10
14
  const { framework, componentName = '' } = params;
@@ -14,11 +18,11 @@ function getResultText(params) {
14
18
  ext2: framework,
15
19
  from: 'en',
16
20
  });
17
- return getDocContent(['chatuikit', `${framework}`, 'components', `${componentName.toLowerCase()}.md`]);
21
+ return getDocContent(['chatuikit', `${handleFramework(framework)}`, 'components', `${handleComponentName(componentName)}.md`]);
18
22
  }
19
23
  const registryGetWebChatComponentDetailTool = (mcpServer) => {
20
24
  mcpServer.tool('get_web_chat_uikit_component_detail', description, {
21
- framework: z.enum(['react', 'vue3']).describe('Web Chat UIKit component details framework type, currently supported frameworks are: react, vue3 | web chat uikit 组件详情框架类型,目前支持的框架有: react、vue3'),
25
+ framework: z.enum(['react', 'vue']).describe('Web Chat UIKit component details framework type, currently supported frameworks are: react, vue | web chat uikit 组件详情框架类型,目前支持的框架有: react、vue'),
22
26
  componentName: z.string().describe('The specific component name of the web chat UIKit component, such as avatar | web chat uikit 组件的具体组件名称,比如 avatar'),
23
27
  }, (params) => ({
24
28
  content: [
@@ -1 +1 @@
1
- {"version":3,"file":"get-web-chat-component-detail.js","sourceRoot":"","sources":["../../../src/tools/chat/get-web-chat-component-detail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,WAAW,GAAG;;;;CAInB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,EAAE,aAAa,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IACjD,WAAW,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,qCAAqC;QAC3C,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,EAAE,EAAE,YAAY,EAAE,GAAG,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AACzG,CAAC;AAED,MAAM,qCAAqC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACrE,SAAS,CAAC,IAAI,CACZ,qCAAqC,EACrC,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,iJAAiJ,CAAC;QAChM,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kHAAkH,CAAC;KACvJ,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,qCAAqC,EAAE,CAAC"}
1
+ {"version":3,"file":"get-web-chat-component-detail.js","sourceRoot":"","sources":["../../../src/tools/chat/get-web-chat-component-detail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAE3E,MAAM,WAAW,GAAG;;;;;;CAMnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,EAAE,aAAa,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IACjD,WAAW,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,qCAAqC;QAC3C,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,WAAW,EAAE,GAAG,eAAe,CAAC,SAAS,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,mBAAmB,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AACjI,CAAC;AAED,MAAM,qCAAqC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACrE,SAAS,CAAC,IAAI,CACZ,qCAAqC,EACrC,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,+IAA+I,CAAC;QAC7L,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kHAAkH,CAAC;KACvJ,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,qCAAqC,EAAE,CAAC"}