feat: nexus diag, Diagnose-Archiv ohne Prompts und Keys (#1050)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 09:09:07 +01:00
parent 4da38f1164
commit 6af356c17b
2 changed files with 458 additions and 1 deletions

View File

@ -1,9 +1,10 @@
//! Nexus: AI Gateway für srv04.
//!
//! Befehle: `version`, `selftest`, `serve`, `key ...`, `model ...`.
//! Befehle: `version`, `selftest`, `serve`, `key ...`, `model ...`, `diag`.
mod admin;
mod cli;
mod diag;
mod logcap;
mod logging;
mod selftest;
@ -25,6 +26,7 @@ Aufruf:
nexus model add --name N --engine ollama --tag MODELLNAME [--gpus 0] [--disabled]
nexus model add --name N --engine maya --maya-config PFAD.json [--gpus 0,1] [--disabled]
nexus model list | enable --name N | disable --name N | discover [--engine llama.cpp|ollama|maya]
nexus diag [--out DATEI.tar.gz] [--ohne-engine-logs] Diagnose-Archiv ohne Prompts und Keys
nexus help Diese Hilfe
Die Konfiguration kommt aus --config, sonst NEXUS_CONFIG, sonst ./config.toml, sonst gelten Standardwerte.
@ -42,6 +44,7 @@ async fn main() -> ExitCode {
Some("serve") => serve::command(&args[1..]).await,
Some("key") => admin::key(&args[1..]),
Some("model") => admin::model(&args[1..]).await,
Some("diag") => diag::command(&args[1..]),
Some("help") | Some("--help") | None => {
print!("{HILFE}");
ExitCode::SUCCESS