feat(dm-dashboard): Wave 1 — auth fixes, DB schema, Open5e interfaces, AI clients
- Fix auth anti-patterns (JWT, OAuth, logout, middleware, url.origin) - Extend DB schema with tier, npcs, counters, translations, notes, initiative - Expand Open5e TypeScript interfaces (Monster, Spell) to full V2 - Build OpenRouter API client for FREE tier - Build Kimi API client for PRO tier - Add comprehensive tests for all modules
This commit is contained in:
+3
-12
@@ -1,14 +1,5 @@
|
||||
import "vitest";
|
||||
import { webcrypto } from 'node:crypto';
|
||||
|
||||
Object.defineProperty(globalThis, "crypto", {
|
||||
value: {
|
||||
getRandomValues: (arr: Uint8Array) => {
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
arr[i] = Math.floor(Math.random() * 256);
|
||||
}
|
||||
return arr;
|
||||
},
|
||||
subtle: {},
|
||||
randomUUID: () => "00000000-0000-0000-0000-000000000000",
|
||||
},
|
||||
Object.defineProperty(globalThis, 'crypto', {
|
||||
value: webcrypto,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user