FRE-5006: VoicePrint quality improvements

- P2-1: Consolidate mock ML logic to Python canonical source
- P2-2: Fix weak hashes with SHA-256
- P2-3: Parallelize batch processing with Promise.allSettled()
- P2-4: Add DI pattern support to services
- P2-5: Add structured logging utility
- P3-2: Persist batch jobId for result retrieval

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-05-10 12:06:16 -04:00
parent 35e9f7e812
commit a653c77959
9 changed files with 221 additions and 94 deletions

20
pnpm-lock.yaml generated
View File

@@ -490,9 +490,15 @@ importers:
'@shieldai/types':
specifier: workspace:*
version: link:../../packages/types
'@types/uuid':
specifier: ^11.0.0
version: 11.0.0
node-cache:
specifier: ^5.1.2
version: 5.1.2
uuid:
specifier: ^14.0.0
version: 14.0.0
devDependencies:
'@vitest/coverage-v8':
specifier: ^4.1.5
@@ -2748,6 +2754,10 @@ packages:
'@types/tough-cookie@4.0.5':
resolution: {integrity: sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==}
'@types/uuid@11.0.0':
resolution: {integrity: sha512-HVyk8nj2m+jcFRNazzqyVKiZezyhDKrGUA3jlEcg/nZ6Ms+qHwocba1Y/AaVaznJTAM9xpdFSh+ptbNrhOGvZA==}
deprecated: This is a stub types definition. uuid provides its own type definitions, so you do not need this installed.
'@types/ws@8.18.1':
resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==}
@@ -5552,6 +5562,10 @@ packages:
deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
hasBin: true
uuid@14.0.0:
resolution: {integrity: sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==}
hasBin: true
uuid@8.3.2:
resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
@@ -8450,6 +8464,10 @@ snapshots:
'@types/tough-cookie@4.0.5':
optional: true
'@types/uuid@11.0.0':
dependencies:
uuid: 14.0.0
'@types/ws@8.18.1':
dependencies:
'@types/node': 25.6.0
@@ -11809,6 +11827,8 @@ snapshots:
uuid@10.0.0: {}
uuid@14.0.0: {}
uuid@8.3.2: {}
uuid@9.0.1: {}