feat: integrate platform backend and application interfaces

This commit is contained in:
Qiufeng
2026-09-02 21:09:47 +08:00
parent cd9ac1af70
commit b16390dd41
648 changed files with 102488 additions and 17737 deletions
+6
View File
@@ -0,0 +1,6 @@
import { randomUUID } from "node:crypto";
export function requestIdFrom(request: { headers: Record<string, string | string[] | undefined> }) {
const header = request.headers["x-request-id"];
return typeof header === "string" && /^[a-zA-Z0-9._:-]{8,128}$/.test(header) ? header : randomUUID();
}