Files
craftvia/src/lib/lotse/completeness.ts
T
msolarczekandClaude Opus 5 ff5c57f276 L9 Lotse – KI-Assistent: Transkription, Berichtsentwurf, Vollständigkeitsprüfung, Freigabeprinzip (Services)
- OpenAI-kompatible Transkription + Processor transcription (done/failed/disabled, AiGeneration, Notiz aus Sprachnotiz)
- Claude-Lotse (strukturierte Ausgabe, Refusal/Fallback), Datenminimierung, Vorschläge in content.lotse
- Vollständigkeitsprüfung (Regeln + KI-Hinweise mit Deep-Link), Einstellungen, KI-Protokoll
- Freigabeprinzip: Submit eines Lotse-Entwurfs nur mit Prüfbestätigung (serverseitig)
- Migration lotse_address_form (TenantSettings)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:19:38 +02:00

27 lines
770 B
TypeScript

/**
* Result items of the Lotse completeness check (client-safe, lane L9). Labels come from messages
* `lotse.completeness.item.<code>`; `text` is the model's plain-language hint for `lotse_hint`.
*/
export const COMPLETENESS_CODES = [
"photo_requirement",
"checklist_item",
"material_reason",
"material_unconfirmed",
"no_work_time",
"no_description",
"signature_missing",
"lotse_hint",
] as const;
export type CompletenessCode = (typeof COMPLETENESS_CODES)[number];
export type CompletenessItem = {
code: CompletenessCode;
/** checklist/photo requirement/material label */
label?: string;
/** Lotse hint text (missingInformation) */
text?: string;
/** deep link into the mobile sub page */
href: string;
source: "rule" | "lotse";
};