fix(ipad): ship iPad P0 layout/globe fixes, edit-last-input, drop clipboard commands

Adapt typing/voice surfaces for iPad width and height, add the system globe
key and last-input editing flow, harden host-only Rime deployment, and remove
clipboard voice commands. Bump build to 61.
This commit is contained in:
Rocky
2026-08-10 13:50:50 +08:00
parent 53abad2050
commit 2bc8c1b87d
85 changed files with 5703 additions and 3997 deletions
@@ -1,14 +1,36 @@
// FlowUtteranceMode.swift
// OSGKeyboard · Shared
//
// Distinguishes dictation polish from clipboard-command generation on the
// Flow command / result wire (plan §11).
// Distinguishes dictation polish from explicit last-input editing on the
// Flow command / result wire.
import Foundation
public enum FlowUtteranceMode: String, Codable, Equatable, Sendable {
/// ASR is draft text to polish and insert (default / legacy).
case dictation
/// ASR is an instruction over a frozen clipboard snapshot.
case clipboardCommand
/// ASR is an explicit instruction over the last verified OSG insertion.
case editLastInput
/// Decoded only from retired or unknown wire modes. Production code must
/// reject this value and must never treat it as dictation.
case unsupportedLegacy
public init(from decoder: Decoder) throws {
let container = try decoder.singleValueContainer()
switch try container.decode(String.self) {
case Self.dictation.rawValue:
self = .dictation
case Self.editLastInput.rawValue:
self = .editLastInput
case "clipboardCommand", Self.unsupportedLegacy.rawValue:
self = .unsupportedLegacy
default:
self = .unsupportedLegacy
}
}
public func encode(to encoder: Encoder) throws {
var container = encoder.singleValueContainer()
try container.encode(rawValue)
}
}