Project live domain trust readiness

This commit is contained in:
冰朔 2026-08-10 05:01:32 +08:00
commit 7a90fad360
5 changed files with 120 additions and 4 deletions

View file

@ -43,8 +43,17 @@ interface ServerProfile {
interface DomainAccessStatus {
blockers: string[];
domainId?: string;
nodeId?: string;
runtimeReady: boolean;
stage: 'checking' | 'login-required' | 'identity-verified' | 'runtime-ready';
trustSource?: {
reason?: 'ANCHOR_INVALID' | 'REGISTRY_INVALID' | 'SOURCE_UNAVAILABLE';
registryVersion: string | null;
signerCount: number;
sourceCommit: string | null;
status: 'CURRENT' | 'DEGRADED_LAST_KNOWN_GOOD' | 'UNAVAILABLE';
};
}
function findFirstDocument(nodes: DocTreeNode[]): string | null {