优化后端鉴权与日志安全

This commit is contained in:
yml2213
2026-05-26 08:21:11 +08:00
parent 851d1d1efc
commit dea3023825
35 changed files with 402 additions and 185 deletions
+22 -2
View File
@@ -1,6 +1,26 @@
export type StartupState = ReturnType<typeof createStartupState>;
type StartupProcessError = {
time: string;
message: string;
};
export function createStartupState() {
export type StartupState = {
phase: string;
startedAt: string;
core: {
ready: boolean;
running: boolean;
attemptCount: number;
readyAt: string;
lastAttemptAt: string;
lastError: string;
};
process: {
lastUnhandledRejection: StartupProcessError | null;
lastUncaughtException: StartupProcessError | null;
};
};
export function createStartupState(): StartupState {
return {
phase: "starting",
startedAt: new Date().toISOString(),