feat(keyboard): ship AI hint carousel, home library cards, and clipboard polish

Rotate AI idle suggestions with optional remote packs, move history/dictionary onto self-sizing Home preview cards, harden clipboard capture/prompting, and simplify keyboard chrome by dropping most liquid-glass shadows.
This commit is contained in:
Rocky
2026-08-13 01:00:51 +08:00
parent fd6e0d3e7e
commit 9f308fadd2
202 changed files with 10897 additions and 5962 deletions
@@ -1,10 +1,10 @@
// CustomLanguageModelManager.swift
// OSGKeyboard · Shared
// OSGKeyboard · HostSupport
//
// Prepares the bundled SFCustomLanguageModelData asset on device and shares
// the compiled LM + Vocab through the App Group container. Both the host app
// and keyboard extension read the same prepared configuration for
// DictationTranscriber content hints.
// Prepares the bundled SFCustomLanguageModelData asset for the host app's
// iOS SpeechAnalyzer pipeline and caches the compiled LM + Vocab in the
// App Group container. The keyboard extension does not run ASR or load
// these assets.
import Foundation
import Speech
@@ -250,8 +250,8 @@ public final class CustomLanguageModelManager: @unchecked Sendable {
// MARK: - Bundle / disk helpers
private static var resourceBundle: Bundle {
// CLM assets ship in the host app bundle (not the extension Shared
// framework) so the keyboard process never mmaps the training bin.
// CLM assets ship in the host app bundle, so the keyboard process
// never mmaps the training bin.
Bundle.main
}