Files
steipete--codexbar/Sources/CodexBar/Providers/Codebuff/CodebuffSettingsStore.swift
T
2026-07-13 12:22:33 +08:00

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)
}
}
}