The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
// Selektoren der Mobile-Shell fuer die Fluesse, an einer Stelle.
//
// tid(...) die Kennung steht in den Quellen der Shell (tabelle/tabelle.json) oder in einem
// Schnappschuss. Fehlt sie am Geraet, ist der Schritt "fehler".
// offen(...) die App hat diese Kennung noch nicht. Fehlt sie, ist der Schritt "offen".
// einer(...) die erste sichtbare von mehreren.
//
// Der Trockenlauf (npm run trocken) prueft jede Kennung hier gegen die Tabelle
// und die Schnappschuesse. Ein Tippfehler faellt dort auf, nicht erst am Geraet.
// Wer eine Kennung aendert, aendert sie hier und laesst den Trockenlauf laufen.
import { tid, einer, innen } from './lib.mjs'
const karte = (basis, id) => tid(basis, `[data-m-id="${id}"]`)
export const S = {
nav: {
leiste: tid('m-nav'),
chat: tid('m-nav-chat'),
create: tid('m-nav-create'),
modelle: tid('m-nav-models'),
einstellungen: tid('m-nav-settings'),
},
seite: {
zurueck: tid('m-page-back'),
fehler: tid('m-page-error'),
unbekannt: tid('m-page-unknown'),
},
blatt: {
schliessen: tid('m-sheet-close'),
zurueck: tid('m-sheet-back'),
fehler: tid('m-sheet-error'),
},
rueckfrage: {
bestaetigen: tid('m-dialog-confirm'),
abbrechen: tid('m-dialog-cancel'),
feld: tid('m-dialog-field'),
sperre: tid('m-dialog-gate'),
// Vor dem ersten Download fragt die App auf Android einmal, ob sie den Fortschritt als Benachrichtigung zeigen darf (Runde 16, F9).
benachrichtigung: tid('m-dialog-notify'),
},
alter: {
tor: tid('m-age-gate'),
frage: tid('m-age-ask'),
ja: tid('m-age-yes'),
nein: tid('m-age-no'),
rueckfrage: tid('m-age-confirm'),
zurueck: tid('m-age-confirm-back'),
unter18: tid('m-age-confirm-minor'),
gesperrt: tid('m-age-blocked'),
},
onboarding: {
willkommen: tid('m-onboarding-screen'),
weiter: tid('m-onboarding-next'),
konto: tid('m-onboarding-account'),
modellSeite: tid('m-onboarding-model-screen'),
modellListe: tid('m-onboarding-model-list'),
modellKarte: (id) => karte('m-onboarding-model-card', id),
// Der Radioknopf in der Karte heisst je nach Zustand anders.
modellWahl: (id) => innen(karte('m-onboarding-model-card', id), einer('m-onboarding-model-item', 'm-onboarding-model-recommended', 'm-onboarding-model-item-toolarge')),
modellEmpfohlen: tid('m-onboarding-model-recommended'),
modellLaden: tid('m-onboarding-download'),
transfer: tid('m-onboarding-transfer'),
fortschritt: tid('m-onboarding-progress'),
pause: tid('m-onboarding-pause'),
fortsetzen: tid('m-onboarding-resume'),
abbrechen: tid('m-onboarding-cancel'),
fehler: tid('m-onboarding-error'),
modellBereit: tid('m-onboarding-model-ready'),
benutzen: tid('m-onboarding-use'),
ueberspringen: tid('m-onboarding-skip'),
offline: tid('m-onboarding-model-offline'),
dokumenteSeite: tid('m-onboarding-documents-screen'),
dokumenteInstallieren: tid('m-onboarding-documents-install'),
fertigSeite: tid('m-onboarding-done-screen'),
fertigStatus: tid('m-onboarding-done-status'),
fertig: tid('m-onboarding-done'),
fertigModelle: tid('m-onboarding-done-models'),
},
chats: {
screen: tid('m-chats-screen'),
handy: tid('m-chats-segment-phone'),
remote: tid('m-chats-segment-remote'),
neu: einer('m-chats-new', 'm-chats-empty-new'),
liste: tid('m-chats-list'),
zeile: tid('m-chats-item'),
oeffnen: tid('m-chats-open'),
leer: tid('m-chats-empty'),
cloudSchalter: tid('m-cloud-switch'),
},
chat: {
screen: tid('m-chat-screen'),
menue: tid('m-chat-menu'),
verlauf: tid('m-chat-thread'),
leer: tid('m-chat-empty'),
ohneModell: tid('m-chat-install-model'),
eingabe: tid('m-chat-input'),
senden: tid('m-chat-send'),
stopp: tid('m-chat-stop'),
mikro: tid('m-chat-mic'),
laeuft: tid('m-chat-running'),
nachricht: tid('m-chat-message'),
frage: tid('m-chat-message', '[data-m-role="user"]'),
antwort: tid('m-chat-message', '[data-m-role="assistant"]'),
antwortFertig: tid('m-chat-message', '[data-m-role="assistant"][data-state="done"]'),
antwortLaeuft: tid('m-chat-message', '[data-m-role="assistant"][data-state="streaming"]'),
antwortFehler: tid('m-chat-message', '[data-m-role="assistant"][data-state="error"]'),
antwortText: tid('m-chat-answer'),
antwortMehr: tid('m-chat-answer-more'),
kopieren: tid('m-chat-copy'),
vorlesen: tid('m-chat-speak'),
vorlesenLaeuft: tid('m-chat-speaking'),
// Prompt v2 (14.11.2026): kein Modell-Chip und kein Cloud-Chip mehr am Feld. Der Einstellungsknopf traegt den
// Modellnamen in seiner Kurzfassung und data-m-place; das Modell-Blatt liegt eine Ebene tiefer (optionen.modell).
modellChip: tid('m-chat-options'),
cloudChip: tid('m-chat-options', '[data-m-place="cloud"]'),
optionen: tid('m-chat-options'),
anhaengen: tid('m-chat-attach'),
anhangChip: tid('m-chat-attachment'),
anhangWeg: tid('m-chat-attachment-remove'),
fehler: tid('m-chat-error'),
fehlerAktion: tid('m-chat-error-action'),
fehlerAndererWeg: tid('m-chat-error-alt'),
engineFehler: tid('m-chat-engine-error'),
diktat: tid('m-chat-dictation'),
kontext: tid('m-chat-context'),
},
modellBlatt: {
blatt: tid('m-sheet-model'),
lokal: tid('m-chat-model-segment-local'),
cloud: tid('m-chat-model-segment-cloud'),
liste: tid('m-chat-model-list'),
zeileLokal: tid('m-chat-model-local'),
zeileLokalMit: (id) => karte('m-chat-model-local', id),
zeileCloudBillig: tid('m-chat-model-cloud-cheapest'),
leer: tid('m-chat-model-empty'),
mehrHolen: tid('m-chat-model-get-more'),
anmeldenNoetig: tid('m-chat-model-signin-state'),
planNoetig: tid('m-chat-model-plans-state'),
},
anhangBlatt: {
blatt: tid('m-sheet-attach'),
kamera: tid('m-chat-attach-photo'),
fotos: tid('m-chat-attach-library'),
datei: tid('m-chat-attach-file'),
dokumente: tid('m-chat-attach-documents'),
},
nachrichtBlatt: {
blatt: tid('m-sheet-message'),
kopieren: tid('m-chat-message-copy'),
melden: tid('m-chat-message-report'),
loeschen: tid('m-chat-message-delete'),
},
chatMenue: {
blatt: tid('m-sheet-chat-menu'),
umbenennen: tid('m-chat-menu-rename'),
dokumente: tid('m-chat-menu-documents'),
loeschen: tid('m-chat-menu-delete'),
},
optionen: {
// Das Blatt chat-options traegt eine eigene Kennung statt m-sheet-chat-options (ABWEICHUNGEN.md).
blatt: tid('m-options'),
agent: tid('m-options-agent'),
web: tid('m-options-web'),
persona: tid('m-options-persona'),
personaSchalter: tid('m-options-persona-switch'),
personaListe: tid('m-options-persona-list'),
personaWahl: (id) => tid(`m-options-persona-${id}`),
sampling: tid('m-options-sampling'),
temperatur: tid('m-options-temperature'),
samplingZurueck: tid('m-options-sampling-reset'),
kontext: tid('m-options-context'),
modell: tid('m-options-model'),
fertig: tid('m-options-done'),
ohneWerkzeuge: tid('m-options-intro-notools'),
},
agent: {
// Ein einzelner Schritt heisst m-chat-tool. Ab zwei Schritten stehen die Zeilen als m-chat-tool-nested
// unter m-chat-steps (Nachabnahme Android 8 GB, HB5): Mit nur der ersten Kennung sah ein Fluss bei
// zwei Werkzeugen "kein Werkzeugaufruf".
werkzeugAufruf: einer('m-chat-tool', 'm-chat-tool-nested'),
werkzeugEinzeln: tid('m-chat-tool'),
werkzeugInSchritten: tid('m-chat-tool-nested'),
werkzeugSchritte: tid('m-chat-steps'),
werkzeugErgebnis: tid('m-chat-tool-result'),
werkzeugFehler: tid('m-chat-tool-error'),
erlaubnisBlatt: tid('m-sheet-approval'),
erlauben: tid('m-approval-allow'),
ablehnen: tid('m-approval-deny'),
},
dokumente: {
screen: tid('m-chat-documents-screen'),
neuerChat: tid('m-documents-new'),
installKarte: tid('m-documents-install'),
installStart: tid('m-documents-install-start'),
installFortschritt: tid('m-documents-install-progress'),
hinzufuegen: tid('m-documents-add'),
leer: tid('m-documents-empty'),
liste: tid('m-documents-list'),
zeile: tid('m-documents-row'),
arbeitet: tid('m-documents-working'),
gescheitert: tid('m-documents-failed'),
},
memory: {
screen: tid('m-settings-memory-screen'),
detail: tid('m-settings-memory-detail-screen'),
neu: tid('m-memory-add'),
titel: tid('m-memory-title'),
text: tid('m-memory-text'),
speichern: tid('m-memory-save'),
liste: tid('m-memory-list'),
leer: tid('m-memory-empty'),
loeschen: tid('m-memory-delete'),
},
personas: {
screen: tid('m-settings-personas-screen'),
benutzen: tid('m-personas-use'),
wahl: (id) => tid(`m-personas-pick-${id}`),
},
modelle: {
screen: tid('m-models-screen'),
downloads: tid('m-models-downloads'),
neu: tid('m-models-segment-new'),
installiert: tid('m-models-segment-installed'),
katalog: tid('m-models-catalog'),
karte: (id) => karte('m-models-item', id),
inKarte: (id, s) => innen(tid('m-models-item', `[data-m-id="${id}"]`), s),
oeffnen: tid('m-models-item-open'),
laden: tid('m-models-download'),
transfer: tid('m-models-transfer'),
// Die Zeile eines Downloads sagt ihren Stand in data-state (parts/Transfer.tsx, parts/download-state.ts).
wartetAufNetz: tid('m-models-transfer', '[data-state="waiting-network"]'),
laeuftWieder: tid('m-models-transfer', ':is([data-state="running"], [data-state="waiting"], [data-state="verifying"])'),
fortschritt: tid('m-models-progress'),
pause: tid('m-models-pause'),
fortsetzen: tid('m-models-resume'),
nochmal: tid('m-models-retry'),
abbrechen: tid('m-models-cancel'),
entfernen: tid('m-models-remove'),
fehler: tid('m-models-error'),
fehlerSpeicher: tid('m-models-error-storage'),
benutzen: tid('m-models-use'),
// Die Zeile "Installed" einer Karte (parts/ModelCard.tsx). Steht auch beim Modell, das gerade im Chat ist.
istInstalliert: tid('m-models-item-installed'),
zuGross: tid('m-models-item-toolarge'),
zuGrossHinweis: tid('m-models-toolarge-hint'),
offline: tid('m-models-offline'),
offlineNochmal: tid('m-models-offline-retry'),
downloadHinweis: tid('m-models-download-notice'),
speicherVoll: tid('m-dialog-storage-full'),
knapp: tid('m-dialog-tight-fit'),
filterPasst: tid('m-models-filter-fits'),
},
einstellungen: {
screen: tid('m-settings-screen'),
konto: tid('m-settings-account'),
design: tid('m-settings-theme'),
chat: tid('m-settings-chat'),
personas: tid('m-settings-personas'),
memory: tid('m-settings-memory'),
// Zeile "Voice" (E1.6), hiess bis Runde 2 m-settings-language.
stimme: tid('m-settings-voice'),
remote: tid('m-settings-remote'),
speicher: tid('m-settings-storage'),
daten: tid('m-settings-data'),
datenschutz: tid('m-settings-privacy'),
ueber: tid('m-settings-about'),
},
aussehen: {
screen: tid('m-settings-appearance-screen'),
system: tid('m-settings-appearance-theme-system'),
dunkel: tid('m-settings-appearance-theme-dark'),
hell: tid('m-settings-appearance-theme-light'),
},
daten: {
screen: tid('m-settings-data-screen'),
sichern: tid('m-settings-data-backup'),
sichernHinweis: tid('m-settings-data-backup-note'),
wiederherstellen: tid('m-settings-data-restore'),
autoJetzt: tid('m-settings-data-auto-now'),
allesLoeschen: tid('m-settings-data-all-delete'),
},
konto: {
screen: tid('m-account-screen'),
zustand: tid('m-account-state'),
modusAnmelden: tid('m-account-mode-signin'),
modusRegistrieren: tid('m-account-mode-signup'),
email: tid('m-account-email'),
passwort: tid('m-account-password'),
anmelden: tid('m-account-signin'),
google: tid('m-account-google'),
vergessen: tid('m-account-forgot'),
angemeldet: tid('m-account-signedin'),
plan: tid('m-account-plan'),
abmelden: tid('m-account-signout'),
loeschen: tid('m-account-delete'),
loeschenOhneAnmeldung: tid('m-account-delete-signed-out'),
loeschenWebseite: tid('m-account-delete-website'),
aufladen: tid('m-account-buy'),
},
kontoLoeschen: {
blatt: tid('m-sheet-settings-delete-account'),
erklaerung: tid('m-account-delete-explain'),
loeschen: tid('m-account-delete-go-delete'),
behalten: tid('m-account-delete-keep'),
},
guthaben: {
// Das Blatt credits traegt die Kennung m-account-credits-empty (ABWEICHUNGEN.md).
blatt: tid('m-account-credits-empty'),
grund: tid('m-credits-reason'),
plaene: tid('m-credits-plans'),
plaeneText: tid('m-credits-plans-text'),
aufDemGeraet: tid('m-credits-on-device'),
nichtJetzt: tid('m-credits-not-now'),
},
sitzung: {
// Das Blatt session traegt die Kennung m-account-session-expired (ABWEICHUNGEN.md).
blatt: tid('m-account-session-expired'),
anmelden: tid('m-session-signin'),
aufDemGeraet: tid('m-session-on-device'),
},
einwilligung: {
blatt: tid('m-sheet-ai-consent'),
text: tid('m-consent-text'),
zustimmen: tid('m-consent-agree'),
ablehnen: tid('m-consent-decline'),
},
melden: {
blatt: tid('m-sheet-report'),
einleitung: tid('m-report-intro'),
gruende: tid('m-report-reasons'),
grund: (id) => tid(`m-report-reason-${id}`),
notiz: tid('m-report-note'),
senden: tid('m-report-send'),
},
cloud: {
screen: tid('m-cloud-screen'),
zustand: tid('m-cloud-state'),
anmelden: tid('m-cloud-signin'),
einschalten: tid('m-cloud-turn-on'),
bereit: tid('m-cloud-ready'),
},
stimme: {
torBlatt: tid('m-sheet-chat-voice-gate'),
torCloud: tid('m-chat-voice-gate-cloud'),
torSpaeter: tid('m-chat-voice-gate-later'),
},
bild: {
screen: tid('m-create-screen'),
tor: tid('m-create-gate'),
torAktion: tid('m-create-gate-action'),
schaukasten: tid('m-create-gate-showcase'),
prompt: tid('m-create-prompt'),
// Prompt v2: Modell und Werkzeug stehen im Blatt Run settings, der Knopf darunter oeffnet es.
einstellungen: tid('m-create-settings'),
modell: tid('m-create-model'),
modellBlatt: tid('m-sheet-create-model'),
modellBillig: tid('m-create-model-cheapest'),
preis: tid('m-create-price'),
erzeugen: tid('m-create-generate'),
laeuft: tid('m-create-running'),
abbrechen: tid('m-create-cancel'),
ergebnis: tid('m-create-result'),
fehler: tid('m-create-error'),
},
remote: {
start: tid('m-remote-screen'),
einfuehrung: tid('m-remote-intro'),
scannen: tid('m-remote-scan'),
eingeben: tid('m-remote-enter'),
hilfe: tid('m-remote-help'),
koppelSeite: tid('m-remote-connect-screen'),
adresse: tid('m-remote-connect-address'),
code: tid('m-remote-connect-passcode'),
koppelScan: tid('m-remote-connect-scan'),
koppeln: tid('m-remote-connect-submit'),
status: tid('m-remote-connect-status'),
hilfeSeite: tid('m-remote-help-screen'),
},
system: {
app: tid('m-app'),
offline: tid('m-app-offline'),
wiederDa: tid('m-app-resume'),
wiederDaOeffnen: tid('m-app-resume-open'),
wiederDaWeg: tid('m-app-resume-dismiss'),
speicherNichtGesichert: tid('m-app-storage-not-saved'),
fatal: tid('m-fatal-screen'),
engineHinweise: tid('m-engine-notices'),
},
}
// Alle Selektoren als flache Liste, fuer den Trockenlauf. Funktionen werden mit einem Beispielwert gerufen.
export function alleSelektoren(baum = S, pfad = 'S') {
const aus = []
for (const [k, v] of Object.entries(baum)) {
const p = `${pfad}.${k}`
if (typeof v === 'function') {
const s = v.length >= 2 ? v('beispiel', tid('m-models-download')) : v('beispiel')
if (s && s.sel) aus.push({ pfad: `${p}(...)`, ...s, parametrisch: true })
} else if (v && typeof v === 'object' && 'sel' in v) aus.push({ pfad: p, ...v })
else if (v && typeof v === 'object') aus.push(...alleSelektoren(v, p))
}
return aus
}