@tencentcloud/sdk-mcp 1.0.7 → 1.0.8

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 (320) hide show
  1. package/package.json +1 -1
  2. package/resource/doc/chatuikit/react/components/chat.md +38 -0
  3. package/resource/doc/chatuikit/react/components/chatheader.md +153 -0
  4. package/resource/doc/chatuikit/react/components/conversation-list.md +765 -0
  5. package/resource/doc/chatuikit/react/components/message-input.md +799 -0
  6. package/resource/doc/chatuikit/react/components/message-list.md +385 -0
  7. package/resource/doc/chatuikit/react/components/tuikit.md +64 -0
  8. package/resource/doc/chatuikit/react/login.md +25 -0
  9. package/resource/doc/chatuikit/vue/components/MessageInput.md +546 -0
  10. package/resource/doc/chatuikit/vue/components/avatar.md +105 -0
  11. package/resource/doc/chatuikit/vue/components/chat.md +38 -0
  12. package/resource/doc/chatuikit/vue/components/chatheader.md +153 -0
  13. package/resource/doc/chatuikit/vue/components/component-list.md +90 -0
  14. package/resource/doc/chatuikit/vue/components/conversation-list.md +590 -0
  15. package/resource/doc/chatuikit/vue/components/login.md +29 -0
  16. package/resource/doc/chatuikit/vue/components/message-input.md +546 -0
  17. package/resource/doc/chatuikit/vue/components/message-list.md +548 -0
  18. package/resource/doc/chatuikit/vue/components/tuikit.md +110 -0
  19. package/resource/doc/chatuikit/vue/components/userpicker.md +256 -0
  20. package/resource/doc/chatuikit/vue/integration.md +218 -0
  21. package/resource/doc/chatuikit/vue/login.md +29 -0
  22. package/resource/doc/chatuikit/vue3/components/MessageList.md +385 -0
  23. package/resource/doc/chatuikit/vue3/integration.md +7 -4
  24. package/tools/call/get-native-call-integration-guide.js +2 -2
  25. package/tools/call/get-native-call-integration-guide.js.map +1 -1
  26. package/tools/call/get-native-call-integration.js +35 -0
  27. package/tools/call/get-native-call-integration.js.map +1 -0
  28. package/tools/call/get-web-call-integration-guide.js +4 -4
  29. package/tools/call/get-web-call-integration-guide.js.map +1 -1
  30. package/tools/call/get-web-call-integration.js +34 -0
  31. package/tools/call/get-web-call-integration.js.map +1 -0
  32. package/tools/chat/get-native-chat-integration-guide.js +2 -2
  33. package/tools/chat/get-native-chat-integration-guide.js.map +1 -1
  34. package/tools/chat/get-native-chat-integration.js +33 -0
  35. package/tools/chat/get-native-chat-integration.js.map +1 -0
  36. package/tools/chat/get-web-chat-component-detail.js +8 -5
  37. package/tools/chat/get-web-chat-component-detail.js.map +1 -1
  38. package/tools/chat/get-web-chat-integration-guide.js +16 -8
  39. package/tools/chat/get-web-chat-integration-guide.js.map +1 -1
  40. package/tools/chat/get-web-chat-integration.js +36 -0
  41. package/tools/chat/get-web-chat-integration.js.map +1 -0
  42. package/tools/chat/get-web-chat-uikit-login.js +30 -0
  43. package/tools/chat/get-web-chat-uikit-login.js.map +1 -0
  44. package/tools/common/present-framework-choice.js +6 -6
  45. package/tools/common/present-framework-choice.js.map +1 -1
  46. package/tools/common/record-result.js +2 -2
  47. package/tools/common/record-result.js.map +1 -1
  48. package/tools/index.js +10 -8
  49. package/tools/index.js.map +1 -1
  50. package/utils/handle-component-name.js +12 -0
  51. package/utils/handle-component-name.js.map +1 -0
  52. package/utils/handle-framework.js +9 -0
  53. package/utils/handle-framework.js.map +1 -0
  54. package/@tencent/aegis-node-sdk/CHANGELOG.md +0 -8
  55. package/@tencent/aegis-node-sdk/LICENSE +0 -21
  56. package/@tencent/aegis-node-sdk/README.md +0 -562
  57. package/@tencent/aegis-node-sdk/lib/aegis.min.js +0 -1
  58. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +0 -14
  59. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +0 -1
  60. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +0 -9
  61. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +0 -2
  62. package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +0 -85
  63. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +0 -3
  64. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +0 -9
  65. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +0 -3
  66. package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +0 -9
  67. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +0 -62
  68. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +0 -11
  69. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +0 -4
  70. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +0 -130
  71. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +0 -34
  72. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +0 -2
  73. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +0 -18
  74. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +0 -8
  75. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +0 -8
  76. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +0 -2
  77. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +0 -4
  78. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +0 -10
  79. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +0 -3
  80. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +0 -3
  81. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +0 -34
  82. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +0 -12
  83. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +0 -14
  84. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +0 -2
  85. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +0 -12
  86. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +0 -3
  87. package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +0 -33
  88. package/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts +0 -0
  89. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +0 -2
  90. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +0 -18
  91. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +0 -60
  92. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +0 -15
  93. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +0 -5
  94. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +0 -6
  95. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +0 -18
  96. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +0 -12
  97. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +0 -10
  98. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +0 -20
  99. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +0 -27
  100. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +0 -2
  101. package/@tencent/aegis-node-sdk/package.json +0 -19
  102. package/@tencent/polaris/README.md +0 -407
  103. package/@tencent/polaris/dist/consumer/health.d.ts +0 -126
  104. package/@tencent/polaris/dist/consumer/health.js +0 -283
  105. package/@tencent/polaris/dist/consumer/health.js.map +0 -1
  106. package/@tencent/polaris/dist/consumer/index.d.ts +0 -120
  107. package/@tencent/polaris/dist/consumer/index.js +0 -348
  108. package/@tencent/polaris/dist/consumer/index.js.map +0 -1
  109. package/@tencent/polaris/dist/consumer/monitor.d.ts +0 -145
  110. package/@tencent/polaris/dist/consumer/monitor.js +0 -343
  111. package/@tencent/polaris/dist/consumer/monitor.js.map +0 -1
  112. package/@tencent/polaris/dist/consumer/selector.d.ts +0 -73
  113. package/@tencent/polaris/dist/consumer/selector.js +0 -316
  114. package/@tencent/polaris/dist/consumer/selector.js.map +0 -1
  115. package/@tencent/polaris/dist/errors.d.ts +0 -373
  116. package/@tencent/polaris/dist/errors.js +0 -154
  117. package/@tencent/polaris/dist/errors.js.map +0 -1
  118. package/@tencent/polaris/dist/global.d.ts +0 -16
  119. package/@tencent/polaris/dist/global.js +0 -18
  120. package/@tencent/polaris/dist/global.js.map +0 -1
  121. package/@tencent/polaris/dist/index.d.ts +0 -62
  122. package/@tencent/polaris/dist/index.js +0 -145
  123. package/@tencent/polaris/dist/index.js.map +0 -1
  124. package/@tencent/polaris/dist/instance.d.ts +0 -109
  125. package/@tencent/polaris/dist/instance.js +0 -38
  126. package/@tencent/polaris/dist/instance.js.map +0 -1
  127. package/@tencent/polaris/dist/limiter/bucket.d.ts +0 -51
  128. package/@tencent/polaris/dist/limiter/bucket.js +0 -152
  129. package/@tencent/polaris/dist/limiter/bucket.js.map +0 -1
  130. package/@tencent/polaris/dist/limiter/index.d.ts +0 -73
  131. package/@tencent/polaris/dist/limiter/index.js +0 -149
  132. package/@tencent/polaris/dist/limiter/index.js.map +0 -1
  133. package/@tencent/polaris/dist/limiter/ratelimit.d.ts +0 -27
  134. package/@tencent/polaris/dist/limiter/ratelimit.js +0 -134
  135. package/@tencent/polaris/dist/limiter/ratelimit.js.map +0 -1
  136. package/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +0 -17
  137. package/@tencent/polaris/dist/limiter/ratelimiter/base.js +0 -15
  138. package/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +0 -1
  139. package/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +0 -59
  140. package/@tencent/polaris/dist/limiter/ratelimiter/global.js +0 -397
  141. package/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +0 -1
  142. package/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +0 -3
  143. package/@tencent/polaris/dist/limiter/ratelimiter/index.js +0 -19
  144. package/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +0 -1
  145. package/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +0 -17
  146. package/@tencent/polaris/dist/limiter/ratelimiter/local.js +0 -52
  147. package/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +0 -1
  148. package/@tencent/polaris/dist/location.d.ts +0 -48
  149. package/@tencent/polaris/dist/location.js +0 -67
  150. package/@tencent/polaris/dist/location.js.map +0 -1
  151. package/@tencent/polaris/dist/logging.d.ts +0 -106
  152. package/@tencent/polaris/dist/logging.js +0 -130
  153. package/@tencent/polaris/dist/logging.js.map +0 -1
  154. package/@tencent/polaris/dist/metadata.d.ts +0 -78
  155. package/@tencent/polaris/dist/metadata.js +0 -119
  156. package/@tencent/polaris/dist/metadata.js.map +0 -1
  157. package/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +0 -47
  158. package/@tencent/polaris/dist/plugins/breaker/polaris.js +0 -162
  159. package/@tencent/polaris/dist/plugins/breaker/polaris.js.map +0 -1
  160. package/@tencent/polaris/dist/plugins/lb/base.d.ts +0 -24
  161. package/@tencent/polaris/dist/plugins/lb/base.js +0 -32
  162. package/@tencent/polaris/dist/plugins/lb/base.js.map +0 -1
  163. package/@tencent/polaris/dist/plugins/lb/edf.d.ts +0 -24
  164. package/@tencent/polaris/dist/plugins/lb/edf.js +0 -77
  165. package/@tencent/polaris/dist/plugins/lb/edf.js.map +0 -1
  166. package/@tencent/polaris/dist/plugins/lb/hashring.d.ts +0 -24
  167. package/@tencent/polaris/dist/plugins/lb/hashring.js +0 -53
  168. package/@tencent/polaris/dist/plugins/lb/hashring.js.map +0 -1
  169. package/@tencent/polaris/dist/plugins/lb/sticky.d.ts +0 -31
  170. package/@tencent/polaris/dist/plugins/lb/sticky.js +0 -88
  171. package/@tencent/polaris/dist/plugins/lb/sticky.js.map +0 -1
  172. package/@tencent/polaris/dist/plugins/lb/swrr.d.ts +0 -25
  173. package/@tencent/polaris/dist/plugins/lb/swrr.js +0 -72
  174. package/@tencent/polaris/dist/plugins/lb/swrr.js.map +0 -1
  175. package/@tencent/polaris/dist/plugins/lb/wr.d.ts +0 -17
  176. package/@tencent/polaris/dist/plugins/lb/wr.js +0 -50
  177. package/@tencent/polaris/dist/plugins/lb/wr.js.map +0 -1
  178. package/@tencent/polaris/dist/plugins/lb/wrr.d.ts +0 -19
  179. package/@tencent/polaris/dist/plugins/lb/wrr.js +0 -81
  180. package/@tencent/polaris/dist/plugins/lb/wrr.js.map +0 -1
  181. package/@tencent/polaris/dist/plugins/logging/console.d.ts +0 -10
  182. package/@tencent/polaris/dist/plugins/logging/console.js +0 -38
  183. package/@tencent/polaris/dist/plugins/logging/console.js.map +0 -1
  184. package/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +0 -32
  185. package/@tencent/polaris/dist/plugins/naming/local-server/index.js +0 -88
  186. package/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +0 -1
  187. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +0 -124
  188. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +0 -398
  189. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +0 -1
  190. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +0 -27
  191. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +0 -287
  192. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +0 -1
  193. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +0 -15
  194. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +0 -43
  195. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +0 -1
  196. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +0 -28
  197. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +0 -249
  198. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +0 -1
  199. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +0 -19
  200. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +0 -222
  201. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +0 -1
  202. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +0 -26
  203. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +0 -99
  204. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +0 -1
  205. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +0 -60
  206. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +0 -259
  207. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +0 -1
  208. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +0 -24
  209. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +0 -18
  210. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +0 -12
  211. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +0 -39
  212. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +0 -115
  213. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +0 -1
  214. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +0 -24
  215. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +0 -22
  216. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +0 -28
  217. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +0 -80
  218. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +0 -18
  219. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +0 -65
  220. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +0 -66
  221. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +0 -95
  222. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +0 -1568
  223. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +0 -36
  224. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +0 -51
  225. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +0 -1
  226. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +0 -18
  227. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +0 -67
  228. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +0 -82
  229. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +0 -11
  230. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +0 -46
  231. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +0 -16
  232. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +0 -10
  233. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +0 -1102
  234. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +0 -29
  235. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +0 -77
  236. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +0 -1
  237. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +0 -12
  238. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +0 -28
  239. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +0 -395
  240. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +0 -13
  241. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +0 -116
  242. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +0 -1
  243. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +0 -67
  244. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +0 -67
  245. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +0 -1
  246. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +0 -99
  247. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +0 -217
  248. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +0 -1
  249. package/@tencent/polaris/dist/plugins/registry/memory.d.ts +0 -10
  250. package/@tencent/polaris/dist/plugins/registry/memory.js +0 -50
  251. package/@tencent/polaris/dist/plugins/registry/memory.js.map +0 -1
  252. package/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +0 -51
  253. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js +0 -145
  254. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +0 -1
  255. package/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +0 -11
  256. package/@tencent/polaris/dist/plugins/router/polaris/rule.js +0 -174
  257. package/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +0 -1
  258. package/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +0 -25
  259. package/@tencent/polaris/dist/plugins/router/trpc/canary.js +0 -36
  260. package/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +0 -1
  261. package/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +0 -10
  262. package/@tencent/polaris/dist/plugins/router/trpc/env.js +0 -34
  263. package/@tencent/polaris/dist/plugins/router/trpc/env.js.map +0 -1
  264. package/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +0 -56
  265. package/@tencent/polaris/dist/plugins/router/trpc/set.js +0 -106
  266. package/@tencent/polaris/dist/plugins/router/trpc/set.js.map +0 -1
  267. package/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +0 -31
  268. package/@tencent/polaris/dist/plugins/shaping/unirate.js +0 -124
  269. package/@tencent/polaris/dist/plugins/shaping/unirate.js.map +0 -1
  270. package/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +0 -61
  271. package/@tencent/polaris/dist/plugins/shaping/warmup.js +0 -171
  272. package/@tencent/polaris/dist/plugins/shaping/warmup.js.map +0 -1
  273. package/@tencent/polaris/dist/plugins/weight/polaris.d.ts +0 -23
  274. package/@tencent/polaris/dist/plugins/weight/polaris.js +0 -159
  275. package/@tencent/polaris/dist/plugins/weight/polaris.js.map +0 -1
  276. package/@tencent/polaris/dist/plugins.d.ts +0 -619
  277. package/@tencent/polaris/dist/plugins.js +0 -91
  278. package/@tencent/polaris/dist/plugins.js.map +0 -1
  279. package/@tencent/polaris/dist/polaris.d.ts +0 -33
  280. package/@tencent/polaris/dist/polaris.js +0 -59
  281. package/@tencent/polaris/dist/polaris.js.map +0 -1
  282. package/@tencent/polaris/dist/provider/index.d.ts +0 -102
  283. package/@tencent/polaris/dist/provider/index.js +0 -168
  284. package/@tencent/polaris/dist/provider/index.js.map +0 -1
  285. package/@tencent/polaris/dist/registry.d.ts +0 -174
  286. package/@tencent/polaris/dist/registry.js +0 -660
  287. package/@tencent/polaris/dist/registry.js.map +0 -1
  288. package/@tencent/polaris/dist/rules.d.ts +0 -163
  289. package/@tencent/polaris/dist/rules.js +0 -24
  290. package/@tencent/polaris/dist/rules.js.map +0 -1
  291. package/@tencent/polaris/dist/scripts/postinstall.d.ts +0 -1
  292. package/@tencent/polaris/dist/scripts/postinstall.js +0 -71
  293. package/@tencent/polaris/dist/scripts/postinstall.js.map +0 -1
  294. package/@tencent/polaris/dist/service.d.ts +0 -18
  295. package/@tencent/polaris/dist/service.js +0 -3
  296. package/@tencent/polaris/dist/service.js.map +0 -1
  297. package/@tencent/polaris/dist/skeleton.d.ts +0 -87
  298. package/@tencent/polaris/dist/skeleton.js +0 -282
  299. package/@tencent/polaris/dist/skeleton.js.map +0 -1
  300. package/@tencent/polaris/dist/utils.d.ts +0 -36
  301. package/@tencent/polaris/dist/utils.js +0 -74
  302. package/@tencent/polaris/dist/utils.js.map +0 -1
  303. package/@tencent/polaris/dist/weak.d.ts +0 -11
  304. package/@tencent/polaris/dist/weak.js +0 -44
  305. package/@tencent/polaris/dist/weak.js.map +0 -1
  306. package/@tencent/polaris/package.json +0 -114
  307. package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +0 -185
  308. package/resource/doc/chatuikit/react/integrate_tuichat_react.md +0 -212
  309. package/resource/doc/chatuikit/vue/integrate_tuichat_only_vue.md +0 -149
  310. package/resource/doc/chatuikit/vue/integrate_tuichat_vue.md +0 -248
  311. package/streamableHttp.js +0 -74
  312. package/streamableHttp.js.map +0 -1
  313. /package/resource/doc/chatuikit/{iOS → ios}/client_api_iOS.md +0 -0
  314. /package/resource/doc/chatuikit/{iOS → ios}/integrate_tuichat_only_iOS.md +0 -0
  315. /package/resource/doc/chatuikit/{iOS → ios}/integrate_tuikit_iOS.md +0 -0
  316. /package/resource/doc/chatuikit/{iOS → ios}/ui_api_iOS.md +0 -0
  317. /package/resource/doc/tuicallkit/{iOS → ios}/api_TUICallKit.md +0 -0
  318. /package/resource/doc/tuicallkit/{iOS → ios}/api_TUICallObserver.md +0 -0
  319. /package/resource/doc/tuicallkit/{iOS → ios}/how_to_integrated_iOS_callkit.md +0 -0
  320. /package/resource/doc/tuicallkit/{iOS → ios}/how_to_run_iOS_callkit_demo.md +0 -0
@@ -0,0 +1,385 @@
1
+ ## 组件概述
2
+
3
+ MessageList 是一个功能强大的聊天消息列表组件,提供了完整的消息展示、交互和自定义功能。该组件支持消息分组、已读回执、消息操作、滚动控制等核心聊天功能,同时提供了丰富的自定义选项来满足不同的业务需求。
4
+
5
+ ## Props 配置
6
+ <table>
7
+ <tr>
8
+ <td rowspan="1" colSpan="1" >字段</td>
9
+
10
+ <td rowspan="1" colSpan="1" >类型</td>
11
+
12
+ <td rowspan="1" colSpan="1" >默认值</td>
13
+
14
+ <td rowspan="1" colSpan="1" >描述</td>
15
+ </tr>
16
+
17
+ <tr>
18
+ <td rowspan="1" colSpan="1" >[alignment](https://write.woa.com/document/181344255270170624)</td>
19
+
20
+ <td rowspan="1" colSpan="1" >'left' \| 'right' \| 'two-sided'</td>
21
+
22
+ <td rowspan="1" colSpan="1" >'two-sided'</td>
23
+
24
+ <td rowspan="1" colSpan="1" >消息对齐方式。<br>- left: 所有消息左对齐。<br>- right: 所有消息右对齐。<br>- two-sided: 发送消息右对齐,接收消息左对齐。</td>
25
+ </tr>
26
+
27
+ <tr>
28
+ <td rowspan="1" colSpan="1" >[enableReadReceipt](https://write.woa.com/document/181344255270170624)</td>
29
+
30
+ <td rowspan="1" colSpan="1" >boolean</td>
31
+
32
+ <td rowspan="1" colSpan="1" >false</td>
33
+
34
+ <td rowspan="1" colSpan="1" >是否启用已读回执功能。</td>
35
+ </tr>
36
+
37
+ <tr>
38
+ <td rowspan="1" colSpan="1" >[messageActionList](https://write.woa.com/document/181344255270170624)</td>
39
+
40
+ <td rowspan="1" colSpan="1" >IMessageAction[]</td>
41
+
42
+ <td rowspan="1" colSpan="1" >undefined</td>
43
+
44
+ <td rowspan="1" colSpan="1" >自定义消息操作列表,例如复制、撤回、删除等。</td>
45
+ </tr>
46
+
47
+ <tr>
48
+ <td rowspan="1" colSpan="1" >[messageAggregationTime](https://write.woa.com/document/181344255270170624)</td>
49
+
50
+ <td rowspan="1" colSpan="1" >number</td>
51
+
52
+ <td rowspan="1" colSpan="1" >300 (5分钟)</td>
53
+
54
+ <td rowspan="1" colSpan="1" >消息聚合时间间隔(秒),相同发送者在此时间内的连续消息会被聚合显示。</td>
55
+ </tr>
56
+
57
+ <tr>
58
+ <td rowspan="1" colSpan="1" >[filter](https://write.woa.com/document/181344255270170624)</td>
59
+
60
+ <td rowspan="1" colSpan="1" >(message: IMessageModel) => boolean</td>
61
+
62
+ <td rowspan="1" colSpan="1" >undefined</td>
63
+
64
+ <td rowspan="1" colSpan="1" >消息过滤函数,用于控制哪些消息需要显示。</td>
65
+ </tr>
66
+
67
+ <tr>
68
+ <td rowspan="1" colSpan="1" >[className](https://write.woa.com/document/181344255270170624)</td>
69
+
70
+ <td rowspan="1" colSpan="1" >string</td>
71
+
72
+ <td rowspan="1" colSpan="1" >undefined</td>
73
+
74
+ <td rowspan="1" colSpan="1" >自定义 CSS 类名。</td>
75
+ </tr>
76
+
77
+ <tr>
78
+ <td rowspan="1" colSpan="1" >[style](https://write.woa.com/document/181344255270170624)</td>
79
+
80
+ <td rowspan="1" colSpan="1" >React.CSSProperties</td>
81
+
82
+ <td rowspan="1" colSpan="1" >undefined</td>
83
+
84
+ <td rowspan="1" colSpan="1" >自定义内联样式。</td>
85
+ </tr>
86
+
87
+ <tr>
88
+ <td rowspan="1" colSpan="1" >[Message](https://write.woa.com/document/181344255270170624)</td>
89
+
90
+ <td rowspan="1" colSpan="1" >React.ComponentType</td>
91
+
92
+ <td rowspan="1" colSpan="1" >Message</td>
93
+
94
+ <td rowspan="1" colSpan="1" >自定义消息组件。</td>
95
+ </tr>
96
+
97
+ <tr>
98
+ <td rowspan="1" colSpan="1" >[MessageTimeDivider](https://write.woa.com/document/181344255270170624)</td>
99
+
100
+ <td rowspan="1" colSpan="1" >React.ComponentType</td>
101
+
102
+ <td rowspan="1" colSpan="1" >MessageTimeDivider</td>
103
+
104
+ <td rowspan="1" colSpan="1" >自定义时间分隔线组件。</td>
105
+ </tr>
106
+ </table>
107
+
108
+
109
+ ## Prop 字段详解
110
+
111
+ ### alignment
112
+
113
+ 参数类型: `'left' | 'right' | 'two-sided'`
114
+
115
+ alignment 用于设置消息对齐方式,支持 `left`、`right`、`two-sided` 三种模式。默认值为 `'two-sided'`。
116
+ - `two-sided`: 非本人的消息位于左侧,本人的消息位于右侧
117
+
118
+ - `left`: 所有消息位于左侧
119
+
120
+ - `right`: 所有消息位于右侧
121
+
122
+
123
+ ### enableReadReceipt
124
+
125
+ 参数类型: `boolean`
126
+
127
+ enableReadReceipt 用于设置是否开启单条消息已读回执功能,默认值为 `false`。
128
+
129
+ ### messageActionList
130
+
131
+ 参数类型: `IMessageAction[]`
132
+
133
+ messageActionList 用于设置消息操作列表,例如复制、撤回、删除等操作,默认值为完整的消息操作列表 `['copy', 'recall', 'quote', 'forward', 'delete']`。
134
+ ``` tsx
135
+ interface IMessageAction {
136
+ key: 'copy' | 'recall' | 'quote' | 'forward' | 'delete' | string;
137
+ label?: string;
138
+ icon?: React.ReactNode;
139
+ onClick?: (message: IMessageModel) => void;
140
+ visible?: ((message: IMessageModel) => boolean) | boolean;
141
+ component?: React.ComponentType<{ message: IMessageModel }>;
142
+ style?: React.CSSProperties;
143
+ }
144
+ ```
145
+
146
+ 可以使用 `useMessageAction` 获取完整的消息操作列表,然后根据需要进行自定义。
147
+
148
+ #### 示例1: 变更消息操作列表的顺序
149
+
150
+ 假设按照 `forward`、`copy`、`recall`、`quote`、`delete` 的顺序显示消息操作列表。
151
+ ``` tsx
152
+ import { Chat, MessageList, useMessageActions } from '@tencentcloud/chat-uikit-react';
153
+
154
+ const App = () => {
155
+ const actions = useMessageActions(['forward', 'copy', 'recall', 'quote', 'delete']);
156
+ return (
157
+ <Chat>
158
+ <MessageList messageActionList={actions} />
159
+ </Chat>
160
+ );
161
+ }
162
+ ```
163
+
164
+ #### 示例2: 仅展示部分消息操作
165
+
166
+ 假设仅展示 `forward`、`copy`、`recall` 三个操作。
167
+ ``` tsx
168
+ import { Chat, MessageList, useMessageActions } from '@tencentcloud/chat-uikit-react';
169
+
170
+ const App = () => {
171
+ const actions = useMessageActions(['forward', 'copy', 'recall']);
172
+ return (
173
+ <Chat>
174
+ <MessageList messageActionList={actions} />
175
+ </Chat>
176
+ );
177
+ }
178
+
179
+ ```
180
+
181
+ #### 示例3: 自定义消息操作的样式
182
+
183
+ 下面是一个自定义撤回操作的示例:
184
+ 1. 将标签修改为'撤回 ⚠️'
185
+
186
+ 2. 将颜色修改为橙色
187
+
188
+ 3. 只有文本消息可以撤回
189
+
190
+ ``` tsx
191
+ import TUIChatEngine from '@tencentcloud/chat-uikit-engine';
192
+ import { Chat, MessageList, useMessageActions } from '@tencentcloud/chat-uikit-react';
193
+
194
+ const ChatApp = () => {
195
+ const actions = useMessageActions(['copy', {
196
+ key: 'recall',
197
+ label: 'Recall ⚠️',
198
+ style: {
199
+ color: 'orange'
200
+ },
201
+ visible: (message) => message.type === TUIChatEngine.TYPES.MSG_TEXT,
202
+ }, 'quote', 'forward', 'delete']);
203
+
204
+ return (
205
+ <Chat>
206
+ <MessageList messageActionList={actions} />
207
+ </Chat>
208
+ );
209
+ }
210
+ ```
211
+
212
+ #### 示例4: 新增自定义消息操作
213
+
214
+ 假设需要自定义消息操作,如仅其他人发送的消息可以标记'喜欢',且插入在'撤回'操作之后。
215
+ ``` tsx
216
+ import { useMessageAction } from '@tencentcloud/chat-uikit-react';
217
+ import { yourApi } from '@/api/yourApi';
218
+
219
+ const customActions = {
220
+ key: 'like',
221
+ label: 'Like',
222
+ icon: <span>👍</span>,
223
+ style: {
224
+ color: '#E53888',
225
+ },
226
+ visible: (message) => message.flow === 'in',
227
+ onClick: (message) => {
228
+ yourApi.likeMessage(message.ID);
229
+ }
230
+ }
231
+
232
+ function ChatApp() {
233
+ const actions = useMessageAction(['forward', 'copy', 'recall', customActions, 'quote', 'delete']);
234
+ return <MessageList messageActionList={actions} />;
235
+ }
236
+ ```
237
+
238
+ ### messageAggregationTime
239
+
240
+ 参数类型: `number`
241
+
242
+ messageAggregationTime 用于设置消息聚合时间间隔,将相同发送者的连续消息聚合显示,默认值为 `300`(秒)。
243
+
244
+ ### filter
245
+
246
+ 参数类型: `(message: IMessageModel) => boolean`
247
+
248
+ filter 用于设置消息过滤函数,控制哪些消息需要显示,默认值为 `undefined`。
249
+
250
+ #### 示例: 过滤掉机器人发送的错误消息
251
+ ``` tsx
252
+ import { MessageList } from '@/components/MessageList';
253
+ import TUIChatEngine from '@tencentcloud/chat-uikit-engine';
254
+
255
+ const messageFilter = (message) => {
256
+ // 过滤掉发送者昵称包含 '_robot' 且内容包含 'operation-failed' 的文本消息
257
+ if (
258
+ message.nick?.includes('_robot')
259
+ && message.type === TUIChatEngine.TYPES.MSG_TEXT
260
+ && message.payload?.text?.includes('operation-failed')
261
+ ) {
262
+ return false;
263
+ }
264
+ return true;
265
+ };
266
+
267
+ function ChatApp() {
268
+ return <MessageList filter={messageFilter} />;
269
+ }
270
+ ```
271
+
272
+ ### className
273
+
274
+ 参数类型: `string`
275
+
276
+ className 用于设置根容器自定义 CSS 类名,默认值为 `undefined`。
277
+
278
+ ### style
279
+
280
+ 参数类型: `React.CSSProperties`
281
+
282
+ style 用于设置根容器自定义内联样式,默认值为 `undefined`。
283
+
284
+ ### Message
285
+
286
+ 参数类型: `React.ComponentType`
287
+
288
+ Message 用于设置自定义消息组件,替换默认的消息渲染组件,默认值为内置的 `Message` 组件。
289
+
290
+ #### 示例: 自定义 CUSTOM 消息点击跳转的消息组件
291
+ ``` tsx
292
+ import TUIChatEngine from '@tencentcloud/chat-uikit-engine';
293
+ import { Chat, MessageList, Message } from '@tencentcloud/chat-uikit-react';
294
+
295
+ function CustomMessage(props) {
296
+ const { message } = props;
297
+
298
+ if (message.type === TUIChatEngine.TYPES.MSG_CUSTOM) {
299
+ const { businessID, ...restData } = JSON.parse(message.payload.data);
300
+ if (businessID === 'text_link') {
301
+ return (
302
+ <div>
303
+ <div>{restData.text}</div>
304
+ <a href={restData.link}>
305
+ 跳转到外部网址 {restData.link}
306
+ </a>
307
+ </div>
308
+ );
309
+ }
310
+ } else {
311
+ // 其他消息类型使用默认消息组件
312
+ return <Message {...props} />;
313
+ }
314
+ }
315
+
316
+ function ChatApp() {
317
+ return (
318
+ <Chat>
319
+ <MessageList Message={CustomMessage} />
320
+ </Chat>
321
+ );
322
+ }
323
+ ```
324
+
325
+ ### MessageTimeDivider
326
+
327
+ 参数类型: `React.ComponentType`
328
+
329
+ MessageTimeDivider 用于设置自定义时间分隔线组件,默认值为内置的 `MessageTimeDivider` 组件。
330
+
331
+ #### 示例: 区分工作时间的时间分隔线
332
+ ``` tsx
333
+ import { Chat, MessageList, MessageTimeDivider } from '@tencentcloud/chat-uikit-react';
334
+
335
+ const BusinessTimeDivider: typeof MessageTimeDivider = ({ prevMessage, currentMessage }) => {
336
+ if (!prevMessage || !currentMessage) return null;
337
+
338
+ // 对于即将渲染的每一条消息获取当前消息和上一消息的时间,并转换为日期对象,判断是否跨天或间隔超过4小时
339
+ const currentTime = new Date(currentMessage.time * 1000);
340
+ const prevTime = new Date(prevMessage.time * 1000);
341
+
342
+ // 跨天或间隔超过4小时才显示
343
+ const shouldShow = currentTime.toDateString() !== prevTime.toDateString() ||
344
+ (currentTime.getTime() - prevTime.getTime()) > 4 * 60 * 60 * 1000;
345
+
346
+ if (!shouldShow) return null;
347
+
348
+ // 判断工作时间 (9:00-18:00, 周一到周五)
349
+ const isWorkingTime = () => {
350
+ const hour = currentTime.getHours();
351
+ const day = currentTime.getDay();
352
+ return day >= 1 && day <= 5 && hour >= 9 && hour <= 18;
353
+ };
354
+
355
+ const timeLabel = isWorkingTime() ? '工作时间' : '非工作时间';
356
+ const timeColor = isWorkingTime() ? '#52c41a' : '#faad14';
357
+
358
+ return (
359
+ <div style={{ textAlign: 'center', margin: '16px 0' }}>
360
+ <span style={{
361
+ backgroundColor: timeColor,
362
+ color: 'white',
363
+ padding: '2px 8px',
364
+ borderRadius: '12px',
365
+ marginRight: '8px'
366
+ }}>
367
+ {timeLabel}
368
+ </span>
369
+ {currentTime.toLocaleString()}
370
+ </div>
371
+ );
372
+ };
373
+
374
+ function ChatApp() {
375
+ return (
376
+ <Chat>
377
+ <MessageList MessageTimeDivider={BusinessTimeDivider} />
378
+ </Chat>
379
+ );
380
+ }
381
+ ```
382
+
383
+ ## 总结
384
+
385
+ MessageList 组件提供了完整的消息列表功能和丰富的自定义选项。通过合理配置 Props 和自定义组件,您可以创建出符合业务需求的聊天界面。建议在实际使用中根据具体场景选择合适的配置。
@@ -1,5 +1,5 @@
1
1
  AI 模型必须遵守以下**硬性限制**。
2
- * **必须严格按照文档步骤和说明集成:** 在集成组件时必须按照文档步骤和说明进行。
2
+ * **必须严格按照文档步骤和说明集成:** 在集成组件时必须按照文档步骤和说明进行,且在 1.1 中不需要执行 `npm run dev` or `pnpm run dev`, 集成完成后按照 1.4 启动项目。
3
3
  * **必须严格使用文档中的示例代码:** 创建文件时必须严格使用文档中的示例代码填充文件, style 标签优先推荐不使用 scoped 属性。
4
4
  * **禁止创建用户信息配置文件:** 不得自动创建填写 SDKAppID、userID、userSig 的 config 目录或文件。
5
5
  * **禁止创建获取 userSig 逻辑:** 不得自动创建获取 userSig 相关代码,必须明确引导用户输入 SDKAppID、 userID、 userSig 信息并帮忙回填到相应的文件。
@@ -23,12 +23,10 @@ requirement: vue3: ^3.0.0, nodejs: ^22.0.0.
23
23
  if it is a new project, guide the user to use vite to create a vue3 project manually, and then continue with step 1.2. if it is an existing project, skip this step and continue with step 1.2.
24
24
 
25
25
  ```bash
26
- npm create vite@latest
26
+ pnpm create vite@latest
27
27
  # skip some settings
28
28
  cd ${your-vue-project-name}
29
29
  pnpm install
30
- # test if the project is created successfully
31
- pnpm run dev
32
30
  ```
33
31
 
34
32
  ### 1.2 step2: install chat-uikit-vue3
@@ -117,6 +115,11 @@ const handleSendMessage = () => {
117
115
  </style>
118
116
  ```
119
117
 
118
+ ### 1.4 step4: start your project
119
+ ```bash
120
+ pnpm run dev
121
+ ```
122
+
120
123
  ## 2. 最佳实践
121
124
 
122
125
  以下提到的组件通过 MCP Tools get_component_detail ${componenetname.tolowercase()} 获取。
@@ -11,14 +11,14 @@ This is a tool specifically designed for creating native mobile audio and video
11
11
  function getResultText(params) {
12
12
  const { sdkAppId = '', framework = '' } = params;
13
13
  aegisClient.report({
14
- name: 'get_native_call_uikit_integration_guide',
14
+ name: 'get_native_call_uikit_integration',
15
15
  ext1: sdkAppId,
16
16
  ext2: framework,
17
17
  });
18
18
  return getDocContent(['tuicallkit', `${framework}`]);
19
19
  }
20
20
  const registryGetNativeCallIntegrationGuideTool = (mcpServer) => {
21
- mcpServer.tool('get_native_call_uikit_integration_guide', description, {
21
+ mcpServer.tool('get_native_call_uikit_integration', description, {
22
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。'),
23
23
  sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID。`),
24
24
  secretKey: z.string().describe(`The secretKey of your SDKAppID. |您的 SDKAppID 的 secretKey。`),
@@ -1 +1 @@
1
- {"version":3,"file":"get-native-call-integration-guide.js","sourceRoot":"","sources":["../../../src/tools/call/get-native-call-integration-guide.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;;;;;;CAMnB,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,yCAAyC;QAC/C,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,yCAAyC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACzE,SAAS,CAAC,IAAI,CACZ,yCAAyC,EACzC,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,yCAAyC,EAAE,CAAC"}
1
+ {"version":3,"file":"get-native-call-integration-guide.js","sourceRoot":"","sources":["../../../src/tools/call/get-native-call-integration-guide.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;;;;;;CAMnB,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;KAChB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,yCAAyC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACzE,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,yCAAyC,EAAE,CAAC"}
@@ -0,0 +1,35 @@
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
+
6
+ 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
+ 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
+ 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
9
+ 3. If no specific platform or framework is specified, to implement the function, you must first use the tools tool present_framework_choice to display the framework type selection interface | 3. 在没有指定特定平台或框架的情况下,要实现功能,必须优先使用 tools 工具 present_framework_choice 展示选择框架类型界面 \n
10
+ `;
11
+ function getResultText(params) {
12
+ const { sdkAppId = '', framework = '' } = params;
13
+ aegisClient.report({
14
+ name: 'get_native_call_uikit_integration',
15
+ ext1: sdkAppId,
16
+ ext2: framework,
17
+ });
18
+ return getDocContent(['tuicallkit', `${framework}`]);
19
+ }
20
+ const registryGetNativeCallIntegrationTool = (mcpServer) => {
21
+ mcpServer.tool('get_native_call_uikit_integration', description, {
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。'),
23
+ sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID。`),
24
+ secretKey: z.string().describe(`The secretKey of your SDKAppID. |您的 SDKAppID 的 secretKey。`),
25
+ }, (params) => ({
26
+ content: [
27
+ {
28
+ type: 'text',
29
+ text: getResultText(params),
30
+ }
31
+ ]
32
+ }));
33
+ };
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;;;;;;CAMnB,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;KAChB,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,17 +10,17 @@ 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
  });
17
17
  return getDocContent(['tuicallkit', `${framework}`]);
18
18
  }
19
19
  const registryGetWebCallIntegrationGuideTool = (mcpServer) => {
20
- mcpServer.tool('get_web_call_uikit_integration_guide', description, {
20
+ mcpServer.tool('get_web_call_uikit_integration', description, {
21
21
  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。'),
22
- sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID。`),
23
- secretKey: z.string().describe(`The secretKey of your SDKAppID. |您的 SDKAppID 的 secretKey。`),
22
+ sdkAppId: z.string().optional().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID。`),
23
+ // secretKey: z.string().describe(`The secretKey of your SDKAppID. |您的 SDKAppID 的 secretKey。`),
24
24
  }, (params) => ({
25
25
  content: [
26
26
  {
@@ -1 +1 @@
1
- {"version":3,"file":"get-web-call-integration-guide.js","sourceRoot":"","sources":["../../../src/tools/call/get-web-call-integration-guide.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,sCAAsC;QAC5C,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,sCAAsC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACtE,SAAS,CAAC,IAAI,CACZ,sCAAsC,EACtC,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,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,sCAAsC,EAAE,CAAC"}
1
+ {"version":3,"file":"get-web-call-integration-guide.js","sourceRoot":"","sources":["../../../src/tools/call/get-web-call-integration-guide.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;KAChB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,sCAAsC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACtE,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,sCAAsC,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 web audio and video call applications. With the tool, you can achieve the following functions: | 这是一个专门负责创建 web 音视频通话应用的工具,通过工具您可以实现以下功能:\n
6
+ 1. Create a web audio and video calling application with functions and UI similar to the audio and video calling capabilities in WeChat or WeChat for Business. | 1. 创建一个 web 音视频通话应用,功能和 UI 界面类似微信(WeChat)或者企业微信(企微)中音视频通话能力。 \n
7
+ 2. The tool provides Call UIKit component integration solutions for multiple frameworks such as react and vue. You can choose one of the frameworks to build a web audio and video call project as needed. | 2. 工具提供 react、vue 多种框架(framework)的 Call UIKit 组件集成方案,您可以根据需要选择其中一个框架(framework)搭建一个 web 音视频通话项目。 \n
8
+ 3. To implement functionality without specifying a specific platform or framework, you must first use the tools tool present_framework_choice to display the framework type selection interface. | 3. 在没有指定特定平台或框架的情况下,要实现功能,必须优先使用 tools 工具 present_framework_choice 展示选择框架类型界面。\n
9
+ `;
10
+ function getResultText(params) {
11
+ const { sdkAppId = '', framework = '' } = params;
12
+ aegisClient.report({
13
+ name: 'get_web_call_uikit_integration',
14
+ ext1: sdkAppId,
15
+ ext2: framework,
16
+ });
17
+ return getDocContent(['tuicallkit', `${framework}`]);
18
+ }
19
+ const registryGetWebCallIntegrationTool = (mcpServer) => {
20
+ mcpServer.tool('get_web_call_uikit_integration', description, {
21
+ 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。'),
22
+ sdkAppId: z.string().optional().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID。`),
23
+ // secretKey: z.string().describe(`The secretKey of your SDKAppID. |您的 SDKAppID 的 secretKey。`),
24
+ }, (params) => ({
25
+ content: [
26
+ {
27
+ type: 'text',
28
+ text: getResultText(params),
29
+ }
30
+ ]
31
+ }));
32
+ };
33
+ export { registryGetWebCallIntegrationTool };
34
+ //# 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;KAChB,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"}
@@ -10,14 +10,14 @@ This is a tool specifically designed for creating native mobile chat application
10
10
  function getResultText(params) {
11
11
  const { sdkAppId = '', framework = '' } = params;
12
12
  aegisClient.report({
13
- name: 'get_native_chat_uikit_integration_guide',
13
+ name: 'get_native_chat_uikit_integration',
14
14
  ext1: sdkAppId,
15
15
  ext2: framework,
16
16
  });
17
17
  return getDocContent(['chatuikit', `${framework}`]);
18
18
  }
19
19
  const registryGetNativeChatIntegrationGuideTool = (mcpServer) => {
20
- mcpServer.tool('get_native_chat_uikit_integration_guide', description, {
20
+ mcpServer.tool('get_native_chat_uikit_integration', description, {
21
21
  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。'),
22
22
  sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID`),
23
23
  }, (params) => ({
@@ -1 +1 @@
1
- {"version":3,"file":"get-native-chat-integration-guide.js","sourceRoot":"","sources":["../../../src/tools/chat/get-native-chat-integration-guide.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,yCAAyC;QAC/C,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,yCAAyC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACzE,SAAS,CAAC,IAAI,CACZ,yCAAyC,EACzC,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,yCAAyC,EAAE,CAAC"}
1
+ {"version":3,"file":"get-native-chat-integration-guide.js","sourceRoot":"","sources":["../../../src/tools/chat/get-native-chat-integration-guide.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;KAChB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,yCAAyC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACzE,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,yCAAyC,EAAE,CAAC"}
@@ -0,0 +1,33 @@
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. Through the tool, you can achieve the following functions: | 这是一个专门负责创建移动端 native 聊天应用的工具,通过工具您可以实现以下功能:\n
6
+ 1. Create a native chat app with functionality and UI similar to WeChat or WeChat for Business (WeChat) | 1. 创建一个 native 聊天应用,功能和 UI 界面类似微信(WeChat)或者企业微信(企微)\n
7
+ 2. The tool provides Chat UIKit component integration solutions for multiple platforms (flutter (cross-platform), Android (native), and iOS (native). You can choose one of the platforms (platform) or frameworks (framework) as needed to build a mobile native chat project. | 2. 工具提供 flutter(跨平台)、android(原生)、ios(原生) 多种平台(platform)或框架(framework)的 Chat UIKit 组件集成方案,您可以根据需要选择其中一个平台(platform)或框架(framework)搭建一个移动端 native 聊天项目 \n
8
+ 3. If no specific platform or framework is specified, to implement the function, you must first use the tools tool present_framework_choice to display the framework type selection interface | 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
+ });
17
+ return getDocContent(['chatuikit', `${framework}`]);
18
+ }
19
+ const registryGetNativeChatIntegrationTool = (mcpServer) => {
20
+ mcpServer.tool('get_native_chat_uikit_integration', description, {
21
+ 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。'),
22
+ sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID`),
23
+ }, (params) => ({
24
+ content: [
25
+ {
26
+ type: 'text',
27
+ text: getResultText(params),
28
+ }
29
+ ]
30
+ }));
31
+ };
32
+ export { registryGetNativeChatIntegrationTool };
33
+ //# 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;KAChB,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"}