qt-human 4.7.1 → 4.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/bundle.iife.js +1 -1
  2. package/dist/bundle.umd.js +1 -1
  3. package/dist/esm/chunks/human-core-BSA4ZmZs.js +1 -0
  4. package/dist/esm/chunks/{index-Bp3rLDd6.js → index-BENZf9WS.js} +1 -1
  5. package/dist/esm/chunks/{render-CP7R5bRG.js → render-rcw-5L7j.js} +1 -1
  6. package/dist/esm/chunks/{shared-D_MdCm2Q.js → shared-CbQL-gXg.js} +1 -1
  7. package/dist/esm/index.js +1 -1
  8. package/dist/esm/types/modules/human/AudioDebugger.d.ts +2 -0
  9. package/dist/esm/types/modules/human/AudioDebugger.d.ts.map +1 -1
  10. package/dist/esm/types/modules/human/ChatOrchestrator.d.ts +3 -0
  11. package/dist/esm/types/modules/human/ChatOrchestrator.d.ts.map +1 -1
  12. package/dist/esm/types/modules/human/WebRTCLipSync.d.ts +2 -0
  13. package/dist/esm/types/modules/human/WebRTCLipSync.d.ts.map +1 -1
  14. package/dist/esm/types/modules/human.d.ts.map +1 -1
  15. package/dist/esm/types/modules/voice/TextProcessor.d.ts +4 -0
  16. package/dist/esm/types/modules/voice/TextProcessor.d.ts.map +1 -1
  17. package/dist/esm/types/modules/voice/animation-helpers.d.ts +2 -0
  18. package/dist/esm/types/modules/voice/animation-helpers.d.ts.map +1 -0
  19. package/dist/esm/types/modules/voice/barge-in-helpers.d.ts +18 -0
  20. package/dist/esm/types/modules/voice/barge-in-helpers.d.ts.map +1 -0
  21. package/dist/esm/types/modules/voice/graceful-exit-helpers.d.ts +4 -0
  22. package/dist/esm/types/modules/voice/graceful-exit-helpers.d.ts.map +1 -0
  23. package/dist/esm/types/modules/voice/llm-helpers.d.ts +2 -0
  24. package/dist/esm/types/modules/voice/llm-helpers.d.ts.map +1 -0
  25. package/dist/esm/types/modules/voice/state-generation.d.ts +8 -0
  26. package/dist/esm/types/modules/voice/state-generation.d.ts.map +1 -0
  27. package/dist/esm/types/modules/voice/tts-transport-helpers.d.ts +2 -0
  28. package/dist/esm/types/modules/voice/tts-transport-helpers.d.ts.map +1 -0
  29. package/dist/esm/types/modules/voice/vad-gate-helpers.d.ts +3 -0
  30. package/dist/esm/types/modules/voice/vad-gate-helpers.d.ts.map +1 -0
  31. package/dist/esm/types/modules/voice/voice-state-helpers.d.ts +7 -0
  32. package/dist/esm/types/modules/voice/voice-state-helpers.d.ts.map +1 -0
  33. package/dist/esm/types/modules/voice-conversation-e2e.d.ts +2 -0
  34. package/dist/esm/types/modules/voice-conversation-e2e.d.ts.map +1 -1
  35. package/dist/esm/types/modules/voice-conversation.d.ts +1 -0
  36. package/dist/esm/types/modules/voice-conversation.d.ts.map +1 -1
  37. package/dist/esm/types/types/config.d.ts +6 -5
  38. package/dist/esm/types/utils/aes.d.ts +0 -6
  39. package/dist/esm/types/utils/aes.d.ts.map +1 -1
  40. package/dist/index.d.ts +9 -5
  41. package/dist/types/types/config.d.ts +6 -5
  42. package/package.json +4 -1
  43. package/dist/esm/chunks/human-core-B9jUVm0w.js +0 -1
@@ -215,12 +215,13 @@ export interface ModelRenderConfig {
215
215
 
216
216
  /**
217
217
  * 加密配置
218
- * 用于模型加载时的 AES 解密
218
+ * @deprecated audit #22: 静态 salt/iv 路径已废弃,运行时不再使用(真模型解密走服务端
219
+ * 按授权下发的 key)。保留类型仅为向后兼容,传入将被忽略(no-op)。
219
220
  */
220
221
  export interface CryptoConfig {
221
- /** AES 加密盐值 */
222
+ /** @deprecated 已废弃,忽略 */
222
223
  salt?: string;
223
- /** AES 初始化向量 */
224
+ /** @deprecated 已废弃,忽略 */
224
225
  iv?: string;
225
226
  }
226
227
 
@@ -549,8 +550,8 @@ export interface HumanConfig {
549
550
  text2SpeachApiParams?: TTSApiParams;
550
551
 
551
552
  /**
552
- * 加密配置
553
- * 用于模型加载时的 AES 解密,不传则使用内置默认值
553
+ * @deprecated audit #22: 静态 salt/iv 加密路径已废弃,传入将被忽略(no-op)。
554
+ * 真模型解密由服务端按授权下发 key 完成(形象 IP 防盗 P0)。
554
555
  */
555
556
  crypto?: CryptoConfig;
556
557
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qt-human",
3
- "version": "4.7.1",
3
+ "version": "4.7.3",
4
4
  "description": "A JavaScript SDK for 3D digital human rendering and interaction",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,6 +28,8 @@
28
28
  "dev": "cross-env NODE_ENV=development rollup -c -w",
29
29
  "clean": "rimraf dist",
30
30
  "typecheck": "tsc --noEmit",
31
+ "test": "vitest run",
32
+ "test:watch": "vitest",
31
33
  "validate": "node scripts/validate-build.js",
32
34
  "prepublishOnly": "",
33
35
  "release": "npm run build --silent && npm publish && cnpm sync qt-human",
@@ -76,6 +78,7 @@
76
78
  "rollup-plugin-web-worker-loader": "^1.7.0",
77
79
  "tsx": "^4.21.0",
78
80
  "typescript": "^5.5.2",
81
+ "vitest": "1.6.1",
79
82
  "web-streams-polyfill": "^4.0.0",
80
83
  "ws": "^8.20.0"
81
84
  },