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
+1 -1
View File
@@ -4,8 +4,8 @@
// Unified assistant surface: tap for ordinary dictation, hold for AI, and use
// the same idle layout for hotwords, clipboard skills, editing, and Send.
import SwiftUI
import OSGKeyboardShared
import SwiftUI
struct AIKeyboardView: View {
private enum Layout {
@@ -3,8 +3,8 @@
//
// Clipboard suggestion strip, enable-guide sheet, and history panel.
import SwiftUI
import OSGKeyboardShared
import SwiftUI
// MARK: - Suggestion strip (Doubao-style)
@@ -7,9 +7,9 @@
// a transient `UIEvent`. SwiftUI draws the shared native key chrome while a
// transparent `UIButton` owns touch delivery.
import OSGKeyboardShared
import SwiftUI
import UIKit
import OSGKeyboardShared
struct GlobeInputModeButton: UIViewRepresentable {
@ObservedObject var state: KeyboardState
@@ -4,8 +4,8 @@
// Shared top-right input switcher used by both voice and typing surfaces.
// The same footprint is replaced by candidates while Chinese is composing.
import SwiftUI
import OSGKeyboardShared
import SwiftUI
private struct KeyboardTabSelectionNamespaceKey: EnvironmentKey {
static let defaultValue: Namespace.ID? = nil
+1 -1
View File
@@ -1,8 +1,8 @@
// LastInputEditView.swift
// OSGKeyboard · Keyboard Extension
import SwiftUI
import OSGKeyboardShared
import SwiftUI
struct LastInputEditView: View {
private enum Layout {
@@ -3,8 +3,8 @@
//
// Bottom-row action keys: repeating delete, space, and return.
import SwiftUI
import OSGKeyboardShared
import SwiftUI
// MARK: - Layout metrics