Files
schihei a78572adc3 feat(m4-m6): session, panel, Replace, settings and onboarding
M4: TranslationSession actor with epochs/one-in-flight streaming, PanelViewModel, non-activating NSPanel, streaming panel UI, searchable/recent target languages, warnings/errors and Copy/Retry/Replace actions.

M5: InsertionCoordinator with target capture, AX direct replacement, secure-field/own-PID refusal, frontmost and selected-text verification, snapshot/⌘V/restore fallback, cancellation-safe restore and blocking-warning gate.

M6: versioned AppSettings/SettingsStore, onboarding for Ollama/model/target/Accessibility, General/Model/Translation/Privacy/Diagnostics settings, launch-at-login via SMAppService, status menu (target, copy/replace last, setup, diagnostics, about), text-free diagnostics and first-run setup.

Docs: PROGRESS M4–M6, ARCHITECTURE §10–§12, ADR-019/020, SELECTION_AND_CLIPBOARD and TESTING. Manual 10-app matrices, real AX/paste delivery, VoiceOver and focus checks remain open.

Verified: make verify green (format, strict lint, scripts, privacy, Debug+Release signatures, 217 package tests); app launches and a two-copy clipboard smoke test opens the panel.
2026-11-26 14:03:16 +01:00

23 lines
1.0 KiB
Swift

/// The provisional Hy-MT3 model tags. The default is decided by the M7 evaluation; this constant
/// is the only place the tag appears outside docs and tests.
public enum HyMT3ModelPreset {
/// The provisional default: Hy-MT3-7B Q4_K_M.
public static let defaultModel = "hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M"
/// The Fast preset: Hy-MT3-1.8B Q4_K_M.
public static let fastModel = "hf.co/tencent/Hy-MT3-1.8B-GGUF:Q4_K_M"
/// The settings default for keeping the model warm.
public static let defaultKeepAlive = "30m"
/// The only text used for warm-up. Never user text.
public static let warmUpText = "Hello."
/// True for any Hy-MT3 conversion tag. The registry uses this through `HyMT3Adapter`.
public static func isHyMT3(_ model: String) -> Bool {
model.lowercased().contains("hy-mt3")
}
/// True for the 1.8B Fast tag, without hard-coding the full tag in UI code.
public static func isFastModel(_ model: String) -> Bool {
model.lowercased().contains("hy-mt3-1.8b")
}
}