feat: add streaming cloud ASR, polish routing, and settings card layout

Unify Bailian/Volcengine/OpenAI realtime streaming, ABE polish routing with
fun styles, and a shared card-page Settings hierarchy; bump to 1.1 (build 32).
This commit is contained in:
Rocky
2026-07-28 20:25:17 +08:00
parent 956331a2af
commit d656bac8c3
58 changed files with 4153 additions and 1396 deletions
@@ -40,4 +40,14 @@ final class UtteranceTranscriptStitcherTests: XCTestCase {
stitcher.append(index: 1, text: "第二段合并")
XCTAssertEqual(stitcher.composed(), "第一段 第二段合并")
}
/// Documents the preMerge wipe hazard: append ignores empty text, so
/// removeLast + empty append leaves nothing. Pipeline must guard this.
func testEmptyAppendAfterRemoveLastWipesPriorSegment() {
var stitcher = UtteranceTranscriptStitcher()
stitcher.append(index: 0, text: "已识别内容")
stitcher.removeLastSegment()
stitcher.append(index: 0, text: "")
XCTAssertEqual(stitcher.composedSafely(), "")
}
}