feat(account): add managed credits and cloud gateway

Introduce optional Apple account-backed credits with scoped gateway access while preserving local and BYOK paths. Refresh assistant behavior, tests, privacy disclosures, docs, and the website for the 2.0 experience.
This commit is contained in:
Rocky
2026-08-20 11:43:21 +08:00
parent 0f9280bd00
commit 498f407585
301 changed files with 19221 additions and 10891 deletions
@@ -14,7 +14,11 @@ enum StubURLProtocolStorage {
}
final class StubURLProtocol: URLProtocol, @unchecked Sendable {
// URLProtocol requires overridable class methods; `static` cannot satisfy
// these superclass requirements even though this concrete stub is final.
// swiftlint:disable:next static_over_final_class
override class func canInit(with request: URLRequest) -> Bool { true }
// swiftlint:disable:next static_over_final_class
override class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
override func startLoading() {