fix: improve model setup and native workflows

This commit is contained in:
public-repo-gate
2026-09-13 01:03:00 +03:00
parent 1cefe5b2ee
commit 30dae8b9a3
92 changed files with 13819 additions and 7022 deletions
@@ -59,9 +59,14 @@ func pasteboardRestoreDecision(transientChangeCount: Int?,
}
@MainActor
enum DictationHistoryClipboard {
public enum DictationHistoryClipboard {
private static var pending: HistoryClipboardTransaction?
/// Общий путь копирования для настроек и плавающего окна.
public static func copy(_ text: String) -> Bool {
copy(text, pasteboard: .general)
}
/// Кладёт текст в буфер. `false` — буфер отказал, вызывающий обязан сказать
/// владельцу, что копирование не состоялось.
///
@@ -69,7 +74,7 @@ enum DictationHistoryClipboard {
/// дописывает в живой лог владельца.
@discardableResult
static func copy(_ text: String,
pasteboard: NSPasteboard = .general,
pasteboard: NSPasteboard,
hold: TimeInterval = HISTORY_CLIPBOARD_HOLD_SECONDS,
logLine: @escaping (String) -> Void = { log($0) }) -> Bool {
quench(reason: "вытеснено следующим копированием")