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
@@ -19,7 +19,7 @@ public enum TranscriptLanguageDetector: Sendable {
continue
}
meaningfulCount += 1
if isHan(scalar) {
if HanScript.isIdeograph(scalar) {
hanCount += 1
}
}
@@ -32,13 +32,4 @@ public enum TranscriptLanguageDetector: Sendable {
public static func prefersChineseGuidance(_ text: String) -> Bool {
cjkRatio(text) >= 0.15
}
private static func isHan(_ scalar: Unicode.Scalar) -> Bool {
switch scalar.value {
case 0x4E00...0x9FFF, 0x3400...0x4DBF, 0xF900...0xFAFF:
return true
default:
return false
}
}
}