feat(portrait-clearance): 肖像排查 - 增加画布插件与本机检测链路

This commit is contained in:
QAyong
2026-08-26 15:23:01 +08:00
committed by ddCat
parent 86fc3fda2f
commit 9bc5512140
54 changed files with 6832 additions and 60 deletions

View File

@@ -14,7 +14,7 @@ const REQUEST_CLOCK_SKEW_MS = 30_000;
const MAX_SESSION_NONCES = 2_048;
const MAX_PENDING_CHALLENGES = 64;
const DEFAULT_SCOPES: readonly LocalRuntimeScope[] = [
export const LOCAL_RUNTIME_DEFAULT_SCOPES: readonly LocalRuntimeScope[] = [
"runtime:status",
"runtime:revoke",
"canvas:connect",
@@ -122,7 +122,7 @@ export class LocalRuntimeSessionManager {
this.registrations = options.registrations;
this.persistRegistrations = options.persistRegistrations ?? (() => undefined);
this.now = options.now ?? Date.now;
this.scopes = options.scopes ?? DEFAULT_SCOPES;
this.scopes = options.scopes ?? LOCAL_RUNTIME_DEFAULT_SCOPES;
this.onSessionRevoked = options.onSessionRevoked;
this.timers = options.timers ?? {
setTimeout(callback, delayMs) {