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
@@ -14,6 +14,21 @@ final class UtteranceTranscriptStitcherTests: XCTestCase {
XCTAssertEqual(merged, "今天天气很好我们继续")
}
func testNormalizedOverlapMapsThroughRawPunctuation() {
let merged = UtteranceTranscriptStitcher.mergeWithOverlap(
previous: "先这样用着,就算目前的可用性已经",
next: "可用性,已经提升很多了"
)
XCTAssertEqual(merged, "先这样用着,就算目前的可用性已经提升很多了")
}
func testSingleCharacterOverlapRemainsStitcherSpecific() {
XCTAssertEqual(
UtteranceTranscriptStitcher.mergeWithOverlap(previous: "版本A", next: "A继续"),
"版本A继续"
)
}
func testStitcherOrdersChunksByIndex() {
var stitcher = UtteranceTranscriptStitcher()
stitcher.append(index: 1, text: "第二段")