Files
Athena-Deck/execution_setup.py

214 lines
24 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""Read-only, conservative mapping to Deck's maintained execution adapters."""
from catalog import file_role
from stt import supported as stt_supported
from profiles import image_recipe, image_adapter, video_recipe, voice_recipe, omni_recipe, acestep_recipe, qwen_clone_model
from tts_runtime import REPO, REVISION
from parakeet_runtime import supported as redux_supported
def _assess(model, installed, profile=None):
kind=model.get('kind'); filename=model.get('file',''); repo=model.get('repo','')
meta=model.get('runtime_metadata') if isinstance(model.get('runtime_metadata'),dict) else {}
architecture=meta.get('architecture') if isinstance(meta.get('architecture'),str) else None
result=dict(state='unsupported',label='Noch nicht unterstützt',runtime=None,installed=False,route=None,components=[],family=architecture or 'Unbekannt',evidence='Hub-Metadaten' if architecture else 'Keine ausreichenden Metadaten',message='Für dieses Modell ist in Deck noch kein geprüfter Ausführungsweg hinterlegt. Herunterladen und Aufbewahren ist möglich; eine Installation allein genügt nicht.')
if not file_role(filename)['profile_eligible']:
result.update(state='component',label='Zusatzdatei',message='Diese Datei wird einem kompatiblen Modellprofil zugeordnet und benötigt keine eigene Laufzeit.')
return result
from kikiri_runtime import supported as kikiri_model
if kikiri_model(model):
ready=bool(installed.get('kikiri'))
result.update(family='Kikiri Anna',evidence='Gepinnter CPU-FP32-Worker mit privatem Anna-plus20-Stand',runtime='Kikiri Anna · CPU',route='#tts-runtime',installed=ready,state='setup' if ready else 'runtime_missing',label='Kikiri Anna · CPU',components=['Trainierter Anna-Stand'],message='Trainierte Anna-Stimme, WAV/MP3/PCM. Private Gewichte und Voicepack importieren; vier CPU-Threads, kein Entladen von Strata.')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
return result
from articulino_runtime import supported as articulino_model
if articulino_model(model):
ready=bool(installed.get('articulino'))
result.update(family='Articulino',evidence='Gepinnter CPU-FP32-ONNX-Worker',runtime='Articulino · CPU',route='#tts-runtime',installed=ready,state='setup' if ready else 'runtime_missing',label='Articulino · CPU',components=['Gespeicherte Referenzstimme'],message='TTS mit Anna-Referenz, WAV/MP3/PCM. Stimmähnlichkeit näherungsweise. Vollständiges Modellpaket wird mit der Laufzeit installiert.')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
return result
from pocket_runtime import supported as pocket_model
from qwen_native_runtime import supported as native_model,model_quant
if native_model(model):
ready=bool(installed.get('qwen_native'))
result.update(family='Qwen3-TTS 0.6B '+model_quant(model),evidence='Gepinnter nativer CPU-Worker mit Q8- oder Q4-Talker und Q8-Codec',runtime='Qwen3-TTS · native CPU',route='#tts-runtime',installed=ready,state='setup' if ready else 'runtime_missing',label='Qwen3-TTS '+model_quant(model)+' · CPU',components=['Q8-Sprach-Codec','Gespeicherte Referenzstimme'],message='Native CPU-Sprachausgabe ohne GPU-Speicher. Unter TTS → Einrichten Laufzeit installieren, im Profil Codec zuordnen, danach TTS → Testen verwenden.')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
return result
if pocket_model(model):
ready=bool(installed.get('pocket'))
result.update(family='Pocket TTS · Deutsch',evidence='Gepinntes deutsches Kyutai-Klonmodell',runtime='Pocket TTS · CPU',route='#tts-runtime',installed=ready,state='setup' if ready else 'runtime_missing',label='Pocket TTS · CPU',components=['Deutscher Text-Tokenizer','Gespeicherte Pocket-Stimme'],message='CPU-TTS mit gespeicherter Anna-Stimme. Kein GPU-Speicher und kein Entladen des Sprachmodells. Unter TTS → Testen verwenden.')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
return result
from soulx_singer import soulx_singer_model
if soulx_singer_model(model):
result.update(family='SoulX-Singer',evidence='Originales 24-kHz-Gesangsmodell',runtime='SoulX-Singer · Python/PyTorch',route='#soulx-singer-runtime',installed=bool(installed.get('soulx_singer')),state='ready' if installed.get('soulx_singer') else 'setup',label='SoulX-Singer Gesang',message='Gesangsaufnahme und Referenzstimme verwenden; kein Stimmtraining nötig.')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
return result
from seedvc_runtime import supported as seedvc_model
if seedvc_model(model):
result.update(family='Seed-VC F0',evidence='Gepinnter offizieller Audio-zu-Audio-Konverter',runtime='Seed-VC · RTX3060',route='#services',installed=bool(installed.get('seedvc')),state='ready' if installed.get('seedvc') else 'setup',label='Seed-VC GPU',message='In Stimmatelier aufnehmen oder WAV hochladen. Native Tonhöhenangleichung; Strata wird erst ohne aktive Anfragen entladen. Kein CPU-Fallback.')
return result
from humaneness_runtime import supported as humaneness_model
if humaneness_model(model):
result.update(family='Humaneness Voice Conversion',evidence='Gepinntes LAION-Audio-zu-Audio-Modell',runtime='Humaneness · Python/PyTorch',route='#services',installed=bool(installed.get('humaneness')),state='ready' if installed.get('humaneness') else 'setup',label='Humaneness VC',message='Quelle und Referenz in Stimmatelier aufnehmen oder hochladen. Kein STT. GPU-Modellwechsel erforderlich.')
return result
from xvc import xvc_model
if xvc_model(model):
result.update(family='X-VC',evidence='Offizielles X-VC-Gewicht',runtime='X-VC · Python/PyTorch',route='#xvc-runtime',installed=bool(installed.get('xvc')),state='ready' if installed.get('xvc') else 'setup',label='X-VC erkannt',message='Quellaufnahme und Referenzstimme in der X-VC-Oberfläche verwenden. Die Laufzeit richtet alle Zusatzgewichte ein; keine einzelnen VAE-/Projektor-Zuordnungen.')
return result
from applio import applio_model
if applio_model(model):
result.update(family='Applio / RVC',evidence='Geprüfter RVC-Checkpoint',runtime='Applio · Python/PyTorch',route='#applio-runtime',installed=bool(installed.get('applio')),state='ready' if installed.get('applio') else 'setup',label='RVC-Stimmgewicht',message='Stimmumwandlung und Training in unserer Applio-Oberfläche. Kein Textencoder, VAE oder Vision-Projektor erforderlich. Basisgewichte werden mit der Laufzeit eingerichtet.')
return result
if qwen_clone_model(model):
result.update(family='Qwen1.7B Base Stimmklonen',evidence='Vorhandenes Base-Modell mit Speaker-Encoder',runtime='Qwen-TTS · gemeinsame native TTS-Laufzeit',route='#voice',installed=bool(installed.get('audio')),state='ready' if installed.get('audio') else 'setup',label='Qwen-Stimmklonen',message='Referenzaufnahme und Zieltext unter Stimmwerkzeuge → Testen. Bestehende 1.7B-Base-Gewichte und Sprach-Tokenizer werden wiederverwendet; kein zusätzlicher Modelldownload.')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
return result
if kind=='stt' and redux_supported(model):
result.update(family='Parakeet Redux',runtime='parakeet.cpp · CPU/AVX2',route='#stt-runtime',installed=bool(installed.get('parakeet')),state='ready' if installed.get('parakeet') else 'setup',label='Parakeet Redux CPU',components=[],message='Gepacktes ternäres Redux-GGUF. Kein Audio-Projektor. Derselbe STT-Endpunkt; Profil in Deck freigeben. Vorbereitung startet keine Transkription.')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
return result
if kind=='embeddings':
from embeddings import supported
if supported(model):
result.update(runtime='llama.cpp · CPU',route='#runtime',family='EmbeddingGemma 300M QAT Q8_0',components=[],state='setup',label='EmbeddingGemma erkannt',installed=bool(installed.get('embeddings')),message='Tokenizer und Konfiguration sind in der GGUF-Datei enthalten. Keine Zusatzdateien nötig. Die vorhandene llama.cpp-Laufzeit wird ohne GPU-Layer verwendet; API: /v1/embeddings.')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',label='Bereit · CPU' if profile.get('runnable') else 'Laufzeit prüfen',blockers=profile.get('blockers',[]))
else:result.update(message='Für diese Datei fehlt noch ein geprüftes Embedding-Rezept. Unterstützt wird EmbeddingGemma 300M QAT Q8_0; keine erfundenen Zusatzkomponenten.')
return result
if kind=='stt' and stt_supported(model):
result['family']='Qwen3-ASR 0.6B'
result.update(runtime='llama.cpp · Qwen3-ASR auf CPU',route='#stt-runtime',components=['Passender Audio-Projektor (unter Einrichten herunterladen)'])
elif kind=='image' and image_recipe(model):
result['family']=image_adapter(model)['label']
result.update(runtime=image_adapter(model)['runtime'],route='#image-runtime',components=[x['label'] for x in image_recipe(model).values()])
elif kind=='audio' and repo==REPO and filename=='model.safetensors' and model.get('revision')==REVISION:
result['family']='Qwen3-TTS CustomVoice'
result.update(runtime='Qwen3-TTS CustomVoice',route='#tts-runtime',components=['Vollständiges Modellpaket und Sprach-Tokenizer (im Einrichtungsassistenten enthalten)'])
elif omni_recipe(model):
result.update(family='OmniVoice',evidence='Offizielles k2-fsa-Modellpaket',state='setup',label='OmniVoice erkannt · Komponenten prüfen',runtime=None,route='#omnivoice-runtime',components=[x['label'] for x in omni_recipe(model).values()])
elif voice_recipe(model):
result.update(family='VoxCPM2',evidence='Offizielles OpenBMB-Modellpaket',state='setup',label='VoxCPM2 erkannt · Komponenten prüfen',runtime=None,route='#voxcpm-runtime',components=[x['label'] for x in voice_recipe(model).values()],message='Die heruntergeladenen Dateien bilden das Modellpaket. Für die Ausführung fehlt noch die VoxCPM-Python/PyTorch-Laufzeit samt Deck-Worker. audio.cpp und llama.cpp führen diese Safetensors-Datei nicht aus. Textencoder und Vision-Projektor sind nicht separat erforderlich. Unter Komponenten werden die tatsächlich benötigten Dateien angeboten.')
elif kind=='chat' and filename.lower().endswith('.gguf'):
result.update(runtime='llama.cpp',route='#runtime',state='check',label='Kompatibilität beim Laden prüfen',message='llama.cpp ist der mögliche Ausführungsweg für dieses Chat-GGUF. Architektur und gewählte Optionen müssen vom installierten Build unterstützt werden. Der Testchat prüft die tatsächliche Ausführung.')
elif kind=='image' and filename.lower().endswith(('.safetensors','.gguf')) and (meta.get('pipeline_tag') in ('text-to-image','image-to-image') or meta.get('library_name') in ('diffusers','comfyui')):
result.update(state='workflow_missing',label='Bildfamilie erkannt · Workflow fehlt',runtime='ComfyUI (vorhandene Bildlaufzeit prüfen)',installed=bool(installed.get('image')),route='#image-runtime',message='Hub-Metadaten ordnen die Datei einer Bildpipeline zu. Deck hat bereits eine gemeinsame Bildlaufzeit; ein neuer Build ist nicht automatisch nötig. Für diese Modellvariante fehlen noch ein geprüfter ComfyUI-Workflow und die genaue Komponentenliste. Bis dahin kann sie nicht gestartet werden.')
if not architecture:result['family']='Bildpipeline laut Hugging Face'
elif kind=='stt':
result.update(message='Für diese STT-Datei fehlt die Anbindung. Die geprüfte llama.cpp-Variante von Qwen3-ASR kann unter Einrichten zusätzlich geladen und ausdrücklich einem Profil zugeordnet werden.',alternative=dict(route='#stt-runtime',label='Unterstützte STT-Alternative einrichten (Modellwechsel)'))
elif kind=='audio':
result.update(message='Dieses TTS-Modell wird noch nicht ausgeführt. Deck unterstützt derzeit die festgelegte Qwen3-TTS-CustomVoice-Variante mit eingebauten Stimmen. MLX, Base mit Referenzstimme und andere TTS-Architekturen benötigen andere Anbindungen.',alternative=dict(route='#tts-runtime',label='Unterstützte TTS-Alternative ansehen (Modellwechsel)'))
if video_recipe(model):
result['family']='LTX 2.5'
result.update(runtime='LTX Original oder ComfyUI · LTX 2.5',state='runtime_missing',label='Komponenten und Video-Laufzeit einrichten',route='#video',components=[x['label'] for x in video_recipe(model).values()],message='Im Bereich Video LTX Original für LTX DeskWEB oder die vorhandene ComfyUI-Laufzeit wählen. Gewichte und passende Komponenten derselben Quellversion werden wiederverwendet.')
if not result['runtime']:return result
result['installed']=bool(installed.get(kind))
if kind!='chat' and result['state']!='workflow_missing':
result.update(state='setup',label='Unterstützt – Einrichtung prüfen',message='Die Laufzeit wird für kompatible Modelle gemeinsam genutzt. Modellabhängige Komponenten werden dem jeweiligen Profil zugeordnet.')
if not result['installed'] and result['state']!='workflow_missing':
result.update(state='runtime_missing',label='Passende Laufzeit fehlt')
if profile:
result['blockers']=profile.get('blockers',[])
if profile.get('runnable'):
result.update(state='ready',label='Ausführbar – Laufzeit eingerichtet')
elif result['installed']:
result.update(state='profile_incomplete',label='Profil prüfen – Voraussetzungen fehlen')
return result
def _assess_candidates(model, installed, profile=None):
result=_assess(model,installed,profile)
result['candidates']=[]
if result['state']=='component':return result
kind=model.get('kind');repo=model.get('repo','').lower();name=model.get('file','').lower()
meta=model.get('runtime_metadata') or {};family=str(meta.get('architecture') or '').lower()
def add(id,label,key,route,reason,maintained=True):
result['candidates'].append(dict(id=id,label=label,installed=bool(installed.get(key)),route=route,installation_available=maintained,evidence=reason))
from kikiri_runtime import supported as kikiri_model
if kikiri_model(model):
add('kikiri','Kikiri Anna · CPU','kikiri','#tts-runtime','Trainierter privater Anna-plus20-Stand, ohne CUDA')
return result
from articulino_runtime import supported as articulino_model
if articulino_model(model):
add('articulino','Articulino · CPU','articulino','#tts-runtime','Gepinnte ONNX-CPU-Laufzeit ohne CUDA oder PyTorch')
return result
from qwen_native_runtime import supported as native_model
if native_model(model):
add('qwen_native','Qwen3-TTS Q8/Q4 · CPU','qwen_native','#tts-runtime','Native CPU-only-Laufzeit, kein CUDA oder PyTorch')
return result
from pocket_runtime import supported as pocket_model
if pocket_model(model):
add('pocket','Pocket TTS · CPU','pocket','#tts-runtime','Gepinnter originaler Kyutai-CPU-Worker')
return result
from soulx_singer import soulx_singer_model
if soulx_singer_model(model):
result.update(family='SoulX-Singer',evidence='Originales 24-kHz-Gesangsmodell',runtime='SoulX-Singer · Python/PyTorch',route='#soulx-singer-runtime',installed=bool(installed.get('soulx_singer')),state='ready' if installed.get('soulx_singer') else 'setup',label='SoulX-Singer Gesang',message='Gesangsaufnahme und Referenzstimme verwenden; kein Stimmtraining nötig.')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
add('soulx_singer','SoulX-Singer · Python/PyTorch','soulx_singer','#soulx-singer-runtime','Gesangsmodell und geprüfte Zusatzgewichte')
return result
from xvc import xvc_model
if xvc_model(model):
add('xvc','X-VC · Python/PyTorch','xvc','#xvc-runtime','Offizielles X-VC-Paket mit geprüftem Deck-Worker')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
return result
from applio import applio_model
if applio_model(model):
add('applio','Applio / RVC · Python/PyTorch','applio','#applio-runtime','Geprüfter RVC-Checkpoint und Deck-Worker')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
return result
if omni_recipe(model):
result.update(family='OmniVoice',runtime='OmniVoice · Python/PyTorch',route='#omnivoice-runtime',installed=bool(installed.get('omnivoice')),state='setup',label='OmniVoice · Komponenten prüfen',message='Originale OmniVoice-Laufzeit mit Deck-Worker. Text- und Audio-Tokenizer derselben Modellversion zuordnen.')
add('omnivoice','OmniVoice · Python/PyTorch','omnivoice','#omnivoice-runtime','Originale OmniVoice-Laufzeit mit Audio-Tokenizer',True)
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]),label='OmniVoice bereit' if profile.get('runnable') else 'OmniVoice einrichten')
elif voice_recipe(model):
result['installed']=bool(installed.get('voxcpm'));result['message']='VoxCPM-Laufzeit '+('bereits installiert' if result['installed'] else 'fehlt: unter Ausführung einrichten installieren')+'. Komponenten zuordnen, danach unter Stimmwerkzeuge → Testen Sprache erzeugen oder Stimme klonen.'
add('voxcpm','VoxCPM · Python/PyTorch','voxcpm','#voxcpm-runtime','Originale VoxCPM-Laufzeit · Sprachausgabe und Stimmklonen',True)
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]),label='VoxCPM2 bereit' if profile.get('runnable') else 'VoxCPM2 einrichten')
if result.get('runtime'):
add('current',result['runtime'],kind,result['route'],'Vorhandene Deck-Zuordnung')
if acestep_recipe(model):
result.update(family='ACE-Step 1.5 XL-SFT',runtime='ACE-Step · Python/PyTorch',route='#acestep-runtime',installed=bool(installed.get('acestep')),state='setup',label='ACE-Step · Komponenten prüfen',message='Originale ACE-Step-Laufzeit mit dauerhaft geladenem Deck-Musikworker.',components=[x['label'] for x in acestep_recipe(model).values()])
result['candidates']=[]
add('acestep','ACE-Step · Python/PyTorch','acestep','#acestep-runtime','Offizielles XL-SFT-Paket mit 1.7B-Musik-Sprachmodell')
if profile:result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',blockers=profile.get('blockers',[]))
return result
if kind=='music' and repo=='audio-cpp/yue2-3b-gguf' and name.startswith('yue2-3b-') and name.endswith('.gguf'):
result.update(family='YuE2',evidence='audio-cpp/Yue2-3B-GGUF · Hauptmodell',state='adapter_missing',label='YuE2 erkannt · Deck-Worker fehlt',message='Passende Laufzeit: audio.cpp. Sie kann einmalig heruntergeladen und gebaut werden. Zur Generierung fehlen noch der Deck-Musikworker und die Ladypoly-Anbindung. Installation allein schaltet dieses Modell nicht frei.',components=['YuE2-VAE GGUF','Modell-/Generierungskonfiguration, VAE-Konfiguration und Qwen-Tokenizer (sidecars)'])
if installed.get('music_worker'):
result.update(state='setup',label='YuE2-Musikworker verfügbar · Komponenten prüfen',message='audio.cpp-Laufzeit und benötigte Komponenten einrichten. Danach Musik → Testen verwenden oder Profil am Musik-API-Endpunkt freigeben.',runtime='audio.cpp',installed=bool(installed.get('audio_cpp')),route='#music')
if profile:
result.update(state='ready' if profile.get('runnable') else 'profile_incomplete',label='Ausführbar · audio.cpp-Musikworker' if profile.get('runnable') else 'Musikprofil einrichten',message='YuE2 wird mit den zugeordneten Komponenten über audio.cpp ausgeführt. Testen im Musikbereich; Ergebnisse als WAV. Ladypoly-WebUI ist separat.',blockers=profile.get('blockers',[]))
add('audio_cpp','audio.cpp','audio_cpp','#audio-cpp-runtime','Geprüfte GGUF-Quelle für die YuE2-Modellfamilie')
elif kind=='music' and ('yue2' in repo or 'yue2' in family):
result.update(family='YuE2',evidence='Repository-/Architekturhinweis; Ausführung ungeprüft')
add('yue2','YuE2 Python / PyTorch','yue2',None,'Originale YuE2-Pipeline; Originalgewichte erforderlich',False)
if kind in ('audio','stt','music','voice') and not result['candidates']:
if 'audio-cpp/' in repo and name.endswith('.gguf'):
add('audio_cpp','audio.cpp','audio_cpp','#audio-cpp-runtime','audio-cpp-Repository; konkrete Familie und Zusatzdateien noch prüfen')
elif meta.get('library_name')=='transformers':
add('transformers','Hugging Face Transformers / PyTorch','transformers',None,'Hub nennt Transformers; modellabhängiger Worker erforderlich',False)
if kind=='voice' and any(token in (repo+' '+name+' '+family) for token in ('roformer','demucs')):
add('separator','Audio Separator','separator','#separator-runtime','Trennmodell-Hinweis; exakte Datei und Konfiguration müssen zum unterstützten Paket passen')
result['candidate_message']='Unter Audio Separator sind geprüfte Modellpakete mit Konfiguration verfügbar. Beliebige CoreML-, ONNX- oder Safetensors-Abwandlungen sind nicht automatisch kompatibel.'
if kind=='video' and not result['candidates'] and meta.get('library_name')=='diffusers':
add('diffusers','Diffusers / PyTorch','diffusers',None,'Hub nennt Diffusers; passende Video-Pipeline noch prüfen',False)
if not result['candidates']:
# Category-level options are explicit research hints, never compatibility claims.
options={'chat':('llama.cpp','chat','#runtime'), 'image':('ComfyUI','image','#image-runtime'), 'video':('ComfyUI','image','#image-runtime'), 'audio':('audio.cpp','audio_cpp','#audio-cpp-runtime'), 'stt':('audio.cpp','audio_cpp','#audio-cpp-runtime'), 'music':('audio.cpp','audio_cpp','#audio-cpp-runtime'), 'voice':('audio.cpp','audio_cpp','#audio-cpp-runtime')}
if kind in options:
label,key,route=options[kind]
add('category',label,key,route,'Option für diese Kategorie; Kompatibilität mit dieser unbekannten Modellfamilie NICHT bestätigt')
result['candidate_message']='Keine passende Laufzeit zuverlässig ermittelt. Modellkarte und Architektur müssen geprüft werden; keine automatische Installation auf Verdacht.'
return result
def assess(model, installed, profile=None):
result=_assess_candidates(model,installed,profile)
if result['state']=='component':return result
verified=result['state'] not in ('unsupported','workflow_missing')
runtime=(next((c for c in result['candidates'] if c['id'] in ('voxcpm','omnivoice','audio_cpp')),None) or next((c for c in result['candidates'] if c['id']!='category'),None)) if verified else None
worker_missing=result['state'] in ('adapter_missing','workflow_missing','unsupported')
result['setup_steps']=[
dict(label='Modell erkennen',state='complete' if verified else 'blocked',message='Modellfamilie erkannt' if verified else 'Noch kein geprüfter Einrichtungsweg'),
dict(label='Laufzeit bereitstellen',state=('complete' if runtime['installed'] else 'action') if runtime else 'blocked',message=('Vorhandene Laufzeit wird wiederverwendet' if runtime['installed'] else 'Passende Laufzeit einrichten') if runtime else 'Keine automatische Installation auf Verdacht',route=runtime['route'] if runtime else None),
dict(label='Zusatzdateien zuordnen',state='complete' if result['state']=='ready' or not result['components'] and verified else 'action' if verified else 'blocked',message='Unter Einrichtung & Komponenten: vorhandene Dateien verwenden, fehlende herunterladen' if result['components'] else 'Keine Pflichtdateien im geprüften Rezept' if verified else 'Komponentenbedarf noch nicht zuverlässig bekannt'),
dict(label='Ausführung prüfen',state='blocked' if worker_missing else 'complete' if result['state']=='ready' else 'action',message='Generierungsanbindung fehlt noch; Installation allein reicht nicht' if worker_missing else 'Profil bereit' if result['state']=='ready' else 'Nach Einrichtung im Testbereich prüfen')]
return result