15 lines
462 B
Swift
15 lines
462 B
Swift
import CodexBarCore
|
|
import Foundation
|
|
|
|
extension SettingsStore {
|
|
var codebuffAPIToken: String {
|
|
get { self.configSnapshot.providerConfig(for: .codebuff)?.sanitizedAPIKey ?? "" }
|
|
set {
|
|
self.updateProviderConfig(provider: .codebuff) { entry in
|
|
entry.apiKey = self.normalizedConfigValue(newValue)
|
|
}
|
|
self.logSecretUpdate(provider: .codebuff, field: "apiKey", value: newValue)
|
|
}
|
|
}
|
|
}
|