/** * Deployment startup guard. * * Next.js awaits register() before the server accepts traffic. Node runtimes * must verify hashed product packages (rectification, personal report) and * confirm the live consult skill tree is present, so a stale copy fails closed. */ export async function register(): Promise { if (process.env.NEXT_RUNTIME !== "nodejs") return; const { resolveLiveJyotishSkill, verifyAllActiveSkillPackages } = await import("./lib/skill-package-registry"); verifyAllActiveSkillPackages(); resolveLiveJyotishSkill(); const { startPersonalReportWorker } = await import("./lib/personal-report-worker"); startPersonalReportWorker(); // Account deletion: permanent purge after the 7-day cooling-off period. const { startAccountDeletionWorker } = await import("./lib/account-deletion-worker"); startAccountDeletionWorker(); // 对话质量记录: blank 👎 snapshot bodies after 90 days. const { startReplyQualityRetentionWorker } = await import("./lib/reply-quality-retention-worker"); startReplyQualityRetentionWorker(); }