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
@@ -246,15 +246,6 @@ public enum PolishPromptComposer {
"""
}
private static func escapeXML(_ text: String) -> String {
text
.replacingOccurrences(of: "&", with: "&")
.replacingOccurrences(of: "<", with: "&lt;")
.replacingOccurrences(of: ">", with: "&gt;")
.replacingOccurrences(of: "\"", with: "&quot;")
.replacingOccurrences(of: "'", with: "&apos;")
}
internal static let englishFunFormattingPrompt = """
You format ASR transcripts before a built-in creative personality rewrites them.
@@ -379,7 +370,7 @@ public enum PolishPromptComposer {
public static func dictationUserPayload(_ text: String) -> String {
"""
<dictation_request protocol="polish-v1">
<dictation_draft>\(escapeXML(text))</dictation_draft>
<dictation_draft>\(PromptXMLEscaping.escapeTextContent(text))</dictation_draft>
</dictation_request>
"""
}