chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:22:33 +08:00
commit fc4fcbab58
1848 changed files with 472303 additions and 0 deletions
@@ -0,0 +1,23 @@
import CodexBarCore
import Foundation
extension SettingsStore {
var sub2APIAPIKey: String {
get { self.configSnapshot.providerConfig(for: .sub2api)?.sanitizedAPIKey ?? "" }
set {
self.updateProviderConfig(provider: .sub2api) { entry in
entry.apiKey = self.normalizedConfigValue(newValue)
}
self.logSecretUpdate(provider: .sub2api, field: "apiKey", value: newValue)
}
}
var sub2APIBaseURL: String {
get { self.configSnapshot.providerConfig(for: .sub2api)?.sanitizedEnterpriseHost ?? "" }
set {
self.updateProviderConfig(provider: .sub2api) { entry in
entry.enterpriseHost = self.normalizedConfigValue(newValue)
}
}
}
}