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

@@ -117,6 +117,26 @@ export const defaultSettings = {
embeddingBackendApiUrl: "",
embeddingAutoSuffix: true,
authorityEnabled: "auto",
authorityBaseUrl: "/api/plugins/authority",
authorityPrimaryWhenAvailable: true,
authorityStorageMode: "auto-server-primary",
authorityVectorMode: "auto-primary",
authoritySqlPrimary: true,
authorityTriviumPrimary: true,
authorityGraphQueryEnabled: true,
authorityJobsEnabled: true,
authorityBlobCheckpointEnabled: true,
authorityBrowserCacheMode: "minimal",
authorityOfflineWritePolicy: "queue-local-dirty",
authorityOfflineQueueMaxBytes: 1048576,
authorityOfflineQueueMaxItems: 128,
authorityOfflineQueueMaxAgeMs: 3600000,
authorityVectorSyncChunkSize: 1000,
authorityVectorFailOpen: true,
authorityDiagnosticsEnabled: true,
authorityProbeIntervalMs: 60000,
// Native 性能加速(灰度)
graphUseNativeLayout: true,
graphNativeLayoutThresholdNodes: 280,