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:
@@ -246,15 +246,6 @@ public enum PolishPromptComposer {
|
||||
"""
|
||||
}
|
||||
|
||||
private static func escapeXML(_ text: String) -> String {
|
||||
text
|
||||
.replacingOccurrences(of: "&", with: "&")
|
||||
.replacingOccurrences(of: "<", with: "<")
|
||||
.replacingOccurrences(of: ">", with: ">")
|
||||
.replacingOccurrences(of: "\"", with: """)
|
||||
.replacingOccurrences(of: "'", with: "'")
|
||||
}
|
||||
|
||||
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>
|
||||
"""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user