M7: corpus manifest loader/validation, chrF/BLEU/token/numeric metrics, raw-output and report.md/report.json writer, and sprachmittler-cli languages/detect/eval. A synthetic 4-segment run with the 7B validated the harness; the private-corpus and 1.8B evaluation and the default-model ADR remain open. M8: privacy-check root fixture + seeded self-test wired into make verify; English/German localisation for the app shell; end-user USER_GUIDE; release.sh (unsigned archive, Developer ID sign, notarise/staple, DMG, --dry-run); idle CPU/memory and warm 7B measurements in PERFORMANCE. Docs: PROGRESS M7–M8, MODEL_EVALUATION results log/gate status, PERFORMANCE measurements, TESTING evaluation cases, ADR-008 status. Compatibility/VoiceOver/notarisation gates remain manual. Verified: make verify green (format, strict lint, privacy self-test, Debug+Release signatures, 227 package tests); CLI languages/detect/eval run; release dry-run.
19 lines
577 B
Swift
19 lines
577 B
Swift
import ArgumentParser
|
|
|
|
/// Headless harness for Sprachmittler. See docs/IMPLEMENTATION_PLAN.md T1.6, T2.7 and T7.1.
|
|
@main
|
|
struct SprachmittlerCLI: AsyncParsableCommand {
|
|
static let configuration = CommandConfiguration(
|
|
commandName: "sprachmittler-cli",
|
|
abstract: "Headless translator and test harness for Sprachmittler.",
|
|
subcommands: [
|
|
LanguagesCommand.self,
|
|
DetectCommand.self,
|
|
ModelsCommand.self,
|
|
ShowCommand.self,
|
|
TranslateCommand.self,
|
|
EvalCommand.self,
|
|
]
|
|
)
|
|
}
|