feat: Batch aus der Oberfläche starten
Tauri-Befehle start_batch, cancel_batch, batch_results. Fortschritt läuft als Ereignis batch-event. Datenbank coding-bench.sqlite im Datenordner. Oberfläche: Aufgaben wählen, Modelle und Wiederholungen angeben, starten, abbrechen, Live-Log und Ergebnistabelle. Ollama-URL in config.toml. 40 Unit-Tests grün, svelte-check ohne Fehler. Im Fenster nicht geprüft. lib.rs wurde vor meiner Änderung auf der Platte zurückgesetzt (ohne runner/store); ich habe auf dem aktuellen Stand aufgebaut. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -21,6 +21,8 @@ pub struct Config {
|
||||
pub tasks_dir: Option<PathBuf>,
|
||||
/// Container-Programm für die Sandbox (Podman-CLI).
|
||||
pub container_runtime: String,
|
||||
/// Ollama-Endpunkt für alle Modelle (Phase 1).
|
||||
pub ollama_url: String,
|
||||
/// Speicherlimit pro Lauf, Podman-Schreibweise.
|
||||
pub sandbox_memory: String,
|
||||
/// CPU-Anteil pro Lauf.
|
||||
@ -34,6 +36,7 @@ impl Default for Config {
|
||||
data_dir: None,
|
||||
tasks_dir: None,
|
||||
container_runtime: "podman".into(),
|
||||
ollama_url: "http://127.0.0.1:11434".into(),
|
||||
sandbox_memory: limits.memory,
|
||||
sandbox_cpus: limits.cpus,
|
||||
}
|
||||
@ -130,6 +133,13 @@ mod tests {
|
||||
assert_eq!(c.container_runtime, "podman");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ollama_url_hat_standard_und_ist_ueberschreibbar() {
|
||||
assert_eq!(Config::default().ollama_url, "http://127.0.0.1:11434");
|
||||
let c = Config::parse("ollama_url = \"http://srv04:11434\"\n").unwrap();
|
||||
assert_eq!(c.ollama_url, "http://srv04:11434");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unbekannter_schluessel_ist_fehler() {
|
||||
assert!(Config::parse("unbekannt = 1\n").is_err());
|
||||
|
||||
Reference in New Issue
Block a user