mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
94c7fa4d76
✨ feat(device): add @lobechat/device-identity (stable machine-derived deviceId) New shared package: `deriveDeviceId` hashes the OS machine id with the userId (+ salt) so one machine + one user → one stable, user-scoped deviceId that survives LobeHub reinstalls. Falls back to a caller-supplied random UUID (flagged via `identitySource: 'fallback'`) when the machine id is unavailable. Foundational layer — no consumers yet; desktop/CLI wire it up in a later PR. Part of LOBE-9572. Closes LOBE-9574. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
220 B
TypeScript
12 lines
220 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
coverage: {
|
|
all: false,
|
|
reporter: ['text', 'json', 'lcov', 'text-summary'],
|
|
},
|
|
environment: 'node',
|
|
},
|
|
});
|