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
+3 -3
View File
@@ -1,8 +1,8 @@
// AIModeLLMClientTests.swift
// OSGKeyboardTests
import XCTest
@testable import OSGKeyboardShared
import XCTest
final class AIModeLLMClientTests: XCTestCase {
@@ -213,8 +213,8 @@ final class AIModeLLMClientTests: XCTestCase {
let answer = "今天北京多云间晴,最高气温33℃,夜间有分散性雷阵雨,最低气温25℃。"
let chunkJSON: [String: Any] = [
"choices": [
["delta": ["content": answer]],
],
["delta": ["content": answer]]
]
]
let chunkData = try JSONSerialization.data(withJSONObject: chunkJSON)
guard let chunkText = String(data: chunkData, encoding: .utf8) else {