feat: Systemprompt-Ebenen: global, je Modell, Standard-Persona, ersetzen statt stapeln, Schema 20, Version 0.1.32 (#1248, #1249)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 18:27:59 +01:00
parent 142ad093b6
commit 22eec7a189
23 changed files with 745 additions and 49 deletions

View File

@ -0,0 +1,10 @@
-- Systemprompt-Ebenen (→ #1248): ein globaler Standard (Tabelle `einstellung`), je Modell ein eigener Text
-- (`model.systemprompt`, ersetzt den globalen), je Benutzer eine Persona als Standard (`persona.standard`).
-- Die speziellere Ebene ersetzt die allgemeinere; vorhandene Texte bleiben unverändert.
CREATE TABLE einstellung (
schluessel TEXT PRIMARY KEY,
wert TEXT NOT NULL
) STRICT;
ALTER TABLE persona ADD COLUMN standard INTEGER NOT NULL DEFAULT 0;
-- Höchstens eine Standard-Persona je Benutzer.
CREATE UNIQUE INDEX persona_standard ON persona (besitzer) WHERE standard = 1;