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:
emil
2026-05-15 21:28:42 +03:00
parent 1f09270329
commit 25f43ec4e2
29 changed files with 3649 additions and 50 deletions
+3 -12
View File
@@ -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,
});