@tencent-rtc/mcp 1.0.6 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/index.js +7 -8
- package/index.js.map +1 -1
- package/libs/@tencent/aegis-node-sdk/CHANGELOG.md +8 -0
- package/libs/@tencent/aegis-node-sdk/LICENSE +21 -0
- package/libs/@tencent/aegis-node-sdk/README.md +562 -0
- package/libs/@tencent/aegis-node-sdk/lib/aegis.min.js +1 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +14 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +1 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +9 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +2 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +85 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +3 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +9 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +3 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +9 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +62 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +11 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +4 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +130 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +34 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +2 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +18 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +8 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +8 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +2 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +4 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +10 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +3 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +3 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +34 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +12 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +14 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +2 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +12 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +3 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +33 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts +0 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +2 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +18 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +60 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +15 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +5 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +6 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +18 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +12 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +10 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +20 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +27 -0
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +2 -0
- package/libs/@tencent/aegis-node-sdk/package.json +19 -0
- package/libs/@tencent/polaris/README.md +407 -0
- package/libs/@tencent/polaris/dist/consumer/health.d.ts +126 -0
- package/libs/@tencent/polaris/dist/consumer/health.js +283 -0
- package/libs/@tencent/polaris/dist/consumer/health.js.map +1 -0
- package/libs/@tencent/polaris/dist/consumer/index.d.ts +120 -0
- package/libs/@tencent/polaris/dist/consumer/index.js +348 -0
- package/libs/@tencent/polaris/dist/consumer/index.js.map +1 -0
- package/libs/@tencent/polaris/dist/consumer/monitor.d.ts +145 -0
- package/libs/@tencent/polaris/dist/consumer/monitor.js +343 -0
- package/libs/@tencent/polaris/dist/consumer/monitor.js.map +1 -0
- package/libs/@tencent/polaris/dist/consumer/selector.d.ts +73 -0
- package/libs/@tencent/polaris/dist/consumer/selector.js +316 -0
- package/libs/@tencent/polaris/dist/consumer/selector.js.map +1 -0
- package/libs/@tencent/polaris/dist/errors.d.ts +373 -0
- package/libs/@tencent/polaris/dist/errors.js +154 -0
- package/libs/@tencent/polaris/dist/errors.js.map +1 -0
- package/libs/@tencent/polaris/dist/global.d.ts +16 -0
- package/libs/@tencent/polaris/dist/global.js +18 -0
- package/libs/@tencent/polaris/dist/global.js.map +1 -0
- package/libs/@tencent/polaris/dist/index.d.ts +62 -0
- package/libs/@tencent/polaris/dist/index.js +145 -0
- package/libs/@tencent/polaris/dist/index.js.map +1 -0
- package/libs/@tencent/polaris/dist/instance.d.ts +109 -0
- package/libs/@tencent/polaris/dist/instance.js +38 -0
- package/libs/@tencent/polaris/dist/instance.js.map +1 -0
- package/libs/@tencent/polaris/dist/limiter/bucket.d.ts +51 -0
- package/libs/@tencent/polaris/dist/limiter/bucket.js +152 -0
- package/libs/@tencent/polaris/dist/limiter/bucket.js.map +1 -0
- package/libs/@tencent/polaris/dist/limiter/index.d.ts +73 -0
- package/libs/@tencent/polaris/dist/limiter/index.js +149 -0
- package/libs/@tencent/polaris/dist/limiter/index.js.map +1 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimit.d.ts +27 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimit.js +134 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimit.js.map +1 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +17 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/base.js +15 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +1 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +59 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/global.js +397 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +1 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +3 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/index.js +19 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +1 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +17 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/local.js +52 -0
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +1 -0
- package/libs/@tencent/polaris/dist/location.d.ts +48 -0
- package/libs/@tencent/polaris/dist/location.js +67 -0
- package/libs/@tencent/polaris/dist/location.js.map +1 -0
- package/libs/@tencent/polaris/dist/logging.d.ts +106 -0
- package/libs/@tencent/polaris/dist/logging.js +130 -0
- package/libs/@tencent/polaris/dist/logging.js.map +1 -0
- package/libs/@tencent/polaris/dist/metadata.d.ts +78 -0
- package/libs/@tencent/polaris/dist/metadata.js +119 -0
- package/libs/@tencent/polaris/dist/metadata.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +47 -0
- package/libs/@tencent/polaris/dist/plugins/breaker/polaris.js +162 -0
- package/libs/@tencent/polaris/dist/plugins/breaker/polaris.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/lb/base.d.ts +24 -0
- package/libs/@tencent/polaris/dist/plugins/lb/base.js +32 -0
- package/libs/@tencent/polaris/dist/plugins/lb/base.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/lb/edf.d.ts +24 -0
- package/libs/@tencent/polaris/dist/plugins/lb/edf.js +77 -0
- package/libs/@tencent/polaris/dist/plugins/lb/edf.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/lb/hashring.d.ts +24 -0
- package/libs/@tencent/polaris/dist/plugins/lb/hashring.js +53 -0
- package/libs/@tencent/polaris/dist/plugins/lb/hashring.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/lb/sticky.d.ts +31 -0
- package/libs/@tencent/polaris/dist/plugins/lb/sticky.js +88 -0
- package/libs/@tencent/polaris/dist/plugins/lb/sticky.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/lb/swrr.d.ts +25 -0
- package/libs/@tencent/polaris/dist/plugins/lb/swrr.js +72 -0
- package/libs/@tencent/polaris/dist/plugins/lb/swrr.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/lb/wr.d.ts +17 -0
- package/libs/@tencent/polaris/dist/plugins/lb/wr.js +50 -0
- package/libs/@tencent/polaris/dist/plugins/lb/wr.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/lb/wrr.d.ts +19 -0
- package/libs/@tencent/polaris/dist/plugins/lb/wrr.js +81 -0
- package/libs/@tencent/polaris/dist/plugins/lb/wrr.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/logging/console.d.ts +10 -0
- package/libs/@tencent/polaris/dist/plugins/logging/console.js +38 -0
- package/libs/@tencent/polaris/dist/plugins/logging/console.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +32 -0
- package/libs/@tencent/polaris/dist/plugins/naming/local-server/index.js +88 -0
- package/libs/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +124 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +398 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +27 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +287 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +15 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +43 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +28 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +249 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +19 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +222 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +26 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +99 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +60 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +259 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +24 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +18 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +12 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +39 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +115 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +24 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +22 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +28 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +80 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +18 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +65 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +66 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +95 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +1568 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +36 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +51 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +18 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +67 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +82 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +11 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +46 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +16 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +10 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +1102 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +29 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +77 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +12 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +28 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +395 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +13 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +116 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +67 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +67 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +99 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +217 -0
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/registry/memory.d.ts +10 -0
- package/libs/@tencent/polaris/dist/plugins/registry/memory.js +50 -0
- package/libs/@tencent/polaris/dist/plugins/registry/memory.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +51 -0
- package/libs/@tencent/polaris/dist/plugins/router/polaris/nearby.js +145 -0
- package/libs/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +11 -0
- package/libs/@tencent/polaris/dist/plugins/router/polaris/rule.js +174 -0
- package/libs/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +25 -0
- package/libs/@tencent/polaris/dist/plugins/router/trpc/canary.js +36 -0
- package/libs/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +10 -0
- package/libs/@tencent/polaris/dist/plugins/router/trpc/env.js +34 -0
- package/libs/@tencent/polaris/dist/plugins/router/trpc/env.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +56 -0
- package/libs/@tencent/polaris/dist/plugins/router/trpc/set.js +106 -0
- package/libs/@tencent/polaris/dist/plugins/router/trpc/set.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +31 -0
- package/libs/@tencent/polaris/dist/plugins/shaping/unirate.js +124 -0
- package/libs/@tencent/polaris/dist/plugins/shaping/unirate.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +61 -0
- package/libs/@tencent/polaris/dist/plugins/shaping/warmup.js +171 -0
- package/libs/@tencent/polaris/dist/plugins/shaping/warmup.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins/weight/polaris.d.ts +23 -0
- package/libs/@tencent/polaris/dist/plugins/weight/polaris.js +159 -0
- package/libs/@tencent/polaris/dist/plugins/weight/polaris.js.map +1 -0
- package/libs/@tencent/polaris/dist/plugins.d.ts +619 -0
- package/libs/@tencent/polaris/dist/plugins.js +91 -0
- package/libs/@tencent/polaris/dist/plugins.js.map +1 -0
- package/libs/@tencent/polaris/dist/polaris.d.ts +33 -0
- package/libs/@tencent/polaris/dist/polaris.js +59 -0
- package/libs/@tencent/polaris/dist/polaris.js.map +1 -0
- package/libs/@tencent/polaris/dist/provider/index.d.ts +102 -0
- package/libs/@tencent/polaris/dist/provider/index.js +168 -0
- package/libs/@tencent/polaris/dist/provider/index.js.map +1 -0
- package/libs/@tencent/polaris/dist/registry.d.ts +174 -0
- package/libs/@tencent/polaris/dist/registry.js +660 -0
- package/libs/@tencent/polaris/dist/registry.js.map +1 -0
- package/libs/@tencent/polaris/dist/rules.d.ts +163 -0
- package/libs/@tencent/polaris/dist/rules.js +24 -0
- package/libs/@tencent/polaris/dist/rules.js.map +1 -0
- package/libs/@tencent/polaris/dist/scripts/postinstall.d.ts +1 -0
- package/libs/@tencent/polaris/dist/scripts/postinstall.js +71 -0
- package/libs/@tencent/polaris/dist/scripts/postinstall.js.map +1 -0
- package/libs/@tencent/polaris/dist/service.d.ts +18 -0
- package/libs/@tencent/polaris/dist/service.js +3 -0
- package/libs/@tencent/polaris/dist/service.js.map +1 -0
- package/libs/@tencent/polaris/dist/skeleton.d.ts +87 -0
- package/libs/@tencent/polaris/dist/skeleton.js +282 -0
- package/libs/@tencent/polaris/dist/skeleton.js.map +1 -0
- package/libs/@tencent/polaris/dist/utils.d.ts +36 -0
- package/libs/@tencent/polaris/dist/utils.js +74 -0
- package/libs/@tencent/polaris/dist/utils.js.map +1 -0
- package/libs/@tencent/polaris/dist/weak.d.ts +11 -0
- package/libs/@tencent/polaris/dist/weak.js +44 -0
- package/libs/@tencent/polaris/dist/weak.js.map +1 -0
- package/libs/@tencent/polaris/package.json +114 -0
- package/libs/lib-generate-test-usersig-es.min.d.ts +6 -0
- package/libs/lib-generate-test-usersig-es.min.js +2 -0
- package/package.json +2 -1
- package/resource/doc/chatuikit/react/components/avatar.md +137 -0
- package/resource/doc/chatuikit/react/components/chat.md +44 -0
- package/resource/doc/chatuikit/react/components/chatheader.md +189 -0
- package/resource/doc/chatuikit/react/components/component-list.md +48 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +1017 -0
- package/resource/doc/chatuikit/react/components/message-input.md +950 -0
- package/resource/doc/chatuikit/react/components/message-list.md +485 -0
- package/resource/doc/chatuikit/react/components/tuikit.md +80 -0
- package/resource/doc/chatuikit/react/create-group.md +23 -0
- package/resource/doc/chatuikit/react/integration.md +83 -0
- package/resource/doc/chatuikit/react/login.md +26 -0
- package/resource/doc/chatuikit/vue/components/avatar.md +137 -0
- package/resource/doc/chatuikit/vue/components/chat.md +42 -0
- package/resource/doc/chatuikit/vue/components/chatheader.md +189 -0
- package/resource/doc/chatuikit/vue/components/component-list.md +102 -0
- package/resource/doc/chatuikit/vue/components/conversation-list.md +765 -0
- package/resource/doc/chatuikit/vue/components/message-input.md +1272 -0
- package/resource/doc/chatuikit/vue/components/message-list.md +662 -0
- package/resource/doc/chatuikit/vue/components/tuikit.md +45 -0
- package/resource/doc/chatuikit/vue/components/userpicker.md +315 -0
- package/resource/doc/chatuikit/vue/create-group.md +25 -0
- package/resource/doc/chatuikit/vue/integration.md +256 -0
- package/resource/doc/chatuikit/vue/login.md +31 -0
- package/resource/doc/chatuikit/vue3/components/MessageInput.md +1272 -0
- package/resource/doc/chatuikit/vue3/components/avatar.md +137 -0
- package/resource/doc/chatuikit/vue3/components/chatheader.md +189 -0
- package/resource/doc/chatuikit/vue3/components/component-list.md +102 -0
- package/resource/doc/chatuikit/vue3/components/userpicker.md +315 -0
- package/resource/doc/chatuikit/vue3/integration.md +256 -0
- package/server.js +10 -181
- package/server.js.map +1 -1
- package/streamable-http.js +69 -0
- package/streamable-http.js.map +1 -0
- package/tools/call/get-call-faq.js +32 -0
- package/tools/call/get-call-faq.js.map +1 -0
- package/tools/call/get-native-call-integration-guide.js +36 -0
- package/tools/call/get-native-call-integration-guide.js.map +1 -0
- package/tools/call/get-native-call-integration.js +35 -0
- package/tools/call/get-native-call-integration.js.map +1 -0
- package/tools/call/get-web-call-integration-guide.js +35 -0
- package/tools/call/get-web-call-integration-guide.js.map +1 -0
- package/tools/call/get-web-call-integration.js +35 -0
- package/tools/call/get-web-call-integration.js.map +1 -0
- package/tools/chat/create-group.js +30 -0
- package/tools/chat/create-group.js.map +1 -0
- package/tools/chat/get-chat-faq.js +32 -0
- package/tools/chat/get-chat-faq.js.map +1 -0
- package/tools/chat/get-native-chat-integration-guide.js +34 -0
- package/tools/chat/get-native-chat-integration-guide.js.map +1 -0
- package/tools/chat/get-native-chat-integration.js +34 -0
- package/tools/chat/get-native-chat-integration.js.map +1 -0
- package/tools/chat/get-web-chat-component-detail.js +36 -0
- package/tools/chat/get-web-chat-component-detail.js.map +1 -0
- package/tools/chat/get-web-chat-integration-guide.js +35 -0
- package/tools/chat/get-web-chat-integration-guide.js.map +1 -0
- package/tools/chat/get-web-chat-integration.js +37 -0
- package/tools/chat/get-web-chat-integration.js.map +1 -0
- package/tools/chat/get-web-chat-uikit-login.js +30 -0
- package/tools/chat/get-web-chat-uikit-login.js.map +1 -0
- package/tools/common/get-usersig.js +35 -0
- package/tools/common/get-usersig.js.map +1 -0
- package/tools/common/present-framework-choice.js +23 -0
- package/tools/common/present-framework-choice.js.map +1 -0
- package/tools/common/record-prompt.js +31 -0
- package/tools/common/record-prompt.js.map +1 -0
- package/tools/common/record-result.js +36 -0
- package/tools/common/record-result.js.map +1 -0
- package/tools/index.js +41 -0
- package/tools/index.js.map +1 -0
- package/tools/rtcengine/get-rtcengine-integration-guide.js +33 -0
- package/tools/rtcengine/get-rtcengine-integration-guide.js.map +1 -0
- package/tools/rtcengine/get-rtcenigne-faq.js +32 -0
- package/tools/rtcengine/get-rtcenigne-faq.js.map +1 -0
- package/utils/aegis-client.js +8 -0
- package/utils/aegis-client.js.map +1 -0
- package/utils/generate-usersig.js +14 -0
- package/utils/generate-usersig.js.map +1 -0
- package/utils/get-doc-content.js +47 -0
- package/utils/get-doc-content.js.map +1 -0
- package/utils/handle-component-name.js +12 -0
- package/utils/handle-component-name.js.map +1 -0
- package/utils/handle-framework.js +9 -0
- package/utils/handle-framework.js.map +1 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
The AI model must comply with the following **hard limits**.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* **Use the example code in the document as the preferred approach:** When creating a file, use the example code in the document to fill the file as the preferred approach. For the style tag, non-use of the scoped property is recommended.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Overview
|
|
8
|
+
|
|
9
|
+
ChatHeader is the top navigation component of the chat UI, displaying basic info of the current session. It can show the session title, avatar, online status, input state notification, etc. The component uses a container component mode and provides a flexible slot mechanism for custom left-right operation areas.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Props quick reference table
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
| Field | Type | Default Value | Description |
|
|
16
|
+
|------|------|--------|------|
|
|
17
|
+
| [title](https://write.woa.com/#title) | string | undefined | Custom Title, session information used when not provided. |
|
|
18
|
+
| [avatarUrl](https://write.woa.com/#avatarUrl) | string | undefined | Custom avatar image URL. |
|
|
19
|
+
| [enableUserStatus](https://write.woa.com/#enableUserStatus) | boolean | false | Whether to display user status. |
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## Slot quick reference table
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
| Name | Description |
|
|
28
|
+
|------|------|
|
|
29
|
+
| [ChatHeaderLeft](https://write.woa.com/#ChatHeaderLeft) | Custom content area in the left side of the header. |
|
|
30
|
+
| [ChatHeaderRight](https://write.woa.com/#ChatHeaderRight) | Custom content area on the right side of the header. |
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## Props detailed introduction
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### title
|
|
39
|
+
-**Type**: string.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
- **Description**: Custom session title. When this property is not provided, the component will automatically display the title based on the session type (showing user nickname or remark for single chat, group name for group chat). Default value is `undefined`.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### avatarUrl
|
|
48
|
+
-**Type**: string.
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
- **Description**: URL address of the custom avatar image. When this property is not provided, the component will automatically display the avatar based on the session type (showing user avatar for single chat, group profile photo for group chat). Default value is `undefined`.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### enableUserStatus
|
|
57
|
+
- **Type**: boolean.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
- **Description**: Whether to enable the display user online status feature, which only takes effect in single chat mode. When enabled, it shows the user's online/offline status. Default value is `false`.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## Slots detailed introduction
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### ChatHeaderLeft
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
**Description**: Header left-side custom content slot, usually used for placing navigation controls such as back button and menu button.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
#### Example: Customize the left sidebar menu
|
|
75
|
+
``` typescript
|
|
76
|
+
<template>
|
|
77
|
+
<ChatHeader>
|
|
78
|
+
<template #ChatHeaderLeft>
|
|
79
|
+
Back button, clear active session
|
|
80
|
+
<button
|
|
81
|
+
class="nav-button"
|
|
82
|
+
@click="handleBack"
|
|
83
|
+
>
|
|
84
|
+
⬅️
|
|
85
|
+
</button>
|
|
86
|
+
</template>
|
|
87
|
+
</ChatHeader>
|
|
88
|
+
</template>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
<script setup lang="ts">
|
|
92
|
+
import { ChatHeader, useConversationListState } from '@tencentcloud/chat-uikit-react';
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
const { setActiveConversation } = useConversationListState();
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
const handleBack = () => {
|
|
99
|
+
Set active session ID to empty
|
|
100
|
+
setActiveConversation('');
|
|
101
|
+
};
|
|
102
|
+
</script>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
<style scoped>
|
|
106
|
+
.header-left-actions {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
gap: 8px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
.nav-button {
|
|
114
|
+
width: 32px;
|
|
115
|
+
height: 32px;
|
|
116
|
+
border: none;
|
|
117
|
+
background: transparent;
|
|
118
|
+
border-radius: 4px;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
transition: background-color 0.2s;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
.nav-button:hover {
|
|
128
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
129
|
+
}
|
|
130
|
+
</style>
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### ChatHeaderRight
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
**Description**: Header right-side custom content slot, usually used for placing feature buttons such as the menu toggle of the ChatSetting component and custom call buttons.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
#### Example: Integrate the ChatSetting component through the ChatHeaderRight slot and drawer component
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
[App.vue]
|
|
144
|
+
``` typescript
|
|
145
|
+
<template>
|
|
146
|
+
<ChatHeader>
|
|
147
|
+
<template #ChatHeaderRight>
|
|
148
|
+
<div style="display: flex; align-items: center;">
|
|
149
|
+
<IconHorizontalMore2
|
|
150
|
+
:size="20"
|
|
151
|
+
@click="setIsChatSettingOpen(true)" />
|
|
152
|
+
</div>
|
|
153
|
+
</template>
|
|
154
|
+
</ChatHeader>
|
|
155
|
+
<TUIDrawer
|
|
156
|
+
:model-value="isChatSettingOpen"
|
|
157
|
+
:title="Setting"
|
|
158
|
+
@close="setIsChatSettingOpen(false)"
|
|
159
|
+
>
|
|
160
|
+
<ChatSetting style="flex: 1;" />
|
|
161
|
+
</TUIDrawer>
|
|
162
|
+
</template>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
<script setup lang="ts">
|
|
166
|
+
import {
|
|
167
|
+
ChatHeader,
|
|
168
|
+
ChatSetting
|
|
169
|
+
} from '@tencentcloud/chat-uikit-vue3';
|
|
170
|
+
import { TUIDrawer, IconHorizontalMore2 } from '@tencentcloud/uikit-base-component-vue3';
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
const isChatSettingOpen = ref(false);
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
const setIsSettingOpen = (isOpen: boolean) => {
|
|
177
|
+
isChatSettingOpen.value = isOpen;
|
|
178
|
+
};
|
|
179
|
+
</script>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<style>
|
|
183
|
+
.chat-container {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
height: 100vh;
|
|
187
|
+
}
|
|
188
|
+
</style>
|
|
189
|
+
```
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# atomicx component library Application scenarios and considerations for components
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## component list
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
25 components:
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Components suitable for chat scenario
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
1. ConversationList
|
|
14
|
+
Session list component, suitable for chat scenario, in vertical list form, can switch sessions through click. If only chat is needed, this component is optional.
|
|
15
|
+
2. MessageInput
|
|
16
|
+
Message input component, the core component for chat scenario, can send chat messages. To send messages, this component must be used.
|
|
17
|
+
3. MessageList
|
|
18
|
+
Message list component, the core component for chat scenario, can display chat message list and support swipe. This component must use in chat scenario.
|
|
19
|
+
4. ContactList
|
|
20
|
+
Contact list component, suitable for chat scenario, can display and manage user contacts. If only chat is needed, this component is optional.
|
|
21
|
+
5. ChatSetting
|
|
22
|
+
Chat settings component, suitable for chat scenario, manages chat-related configuration such as pin to top, do not disturb, add/remove users in group chat, admin management and muting. If only chat is needed, this component is optional.
|
|
23
|
+
6. Search
|
|
24
|
+
Search component, used for message search, user search, etc. If only chat is needed, this component is optional.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Microphone control button, suitable for meeting and live-streaming scenarios, used for mute/unmute.
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
universal component
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
1. Avatar
|
|
34
|
+
Common avatar component, displays user profile photo/online status/message unread count
|
|
35
|
+
2. UserPicker
|
|
36
|
+
User selector, used for initiating group chat, group video, or group voice calls in user selection scenarios.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
Must-Knows
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
1. When receiving user needs, the response should be divided into two parts: the first part is the minimum components to meet the requirements, and the second part is the recommended additional extension components. Do not enlarge user needs.
|
|
43
|
+
2. Components for different scenarios have intersection.
|
|
44
|
+
3. Determine if it might be a comprehensive scenario according to user needs, such as chat + live stream, with low probability. Proceed with caution.
|
|
45
|
+
4. To learn about the method of use for specific components, ask the user: "You can ask how to use ${components[0].name}?"
|
|
46
|
+
5. When creating a real project, call MCP Tools get_component_detail ${integration} integration guide of components
|
|
47
|
+
|
|
48
|
+
|