feat(authority): add server-primary capability probe

This commit is contained in:
Youzini-afk
2026-04-28 01:40:38 +08:00
parent c27b7b957d
commit ee9b0afa35
8 changed files with 1101 additions and 0 deletions

View File

@@ -96,6 +96,51 @@ export function createGraphPersistenceState() {
storagePrimary: "indexeddb",
storageMode: "indexeddb",
resolvedLocalStore: "indexeddb:indexeddb",
authority: {
enabledMode: "auto",
baseUrl: "/api/plugins/authority",
installed: false,
healthy: false,
sessionReady: false,
permissionReady: false,
minimumFeatureSetReady: false,
serverPrimaryReady: false,
storagePrimaryReady: false,
triviumPrimaryReady: false,
jobsReady: false,
blobReady: false,
features: [],
missingFeatures: [],
reason: "not-probed",
lastError: "",
endpoint: "",
status: 0,
latencyMs: 0,
lastProbeAt: 0,
updatedAt: "",
},
authorityBrowserState: {
mode: "minimal",
serverRevision: 0,
serverIntegrity: "",
lastProbeAt: 0,
lastCommitAt: 0,
lastError: "",
offlineQueueBytes: 0,
offlineQueueItems: 0,
offlineQueueOverflow: false,
offlineQueueOverflowReason: "",
updatedAt: "",
},
authorityInstalled: false,
authorityHealthy: false,
authorityServerPrimaryReady: false,
authorityStoragePrimaryReady: false,
authorityTriviumPrimaryReady: false,
authorityBrowserCacheMode: "minimal",
authorityOfflineQueueBytes: 0,
authorityOfflineQueueItems: 0,
authorityDegradedReason: "",
localStoreFormatVersion: 1,
localStoreMigrationState: "idle",
opfsWriteLockState: {