feat: make DAVE Telegram chat conversational
All checks were successful
Codex Template Compliance / template-compliance (pull_request) Successful in 8s
Build / test-and-image (pull_request) Successful in 52s

This commit is contained in:
2026-07-07 18:46:44 +02:00
parent c0fb9d1e66
commit a7f3f36d2b
10 changed files with 244 additions and 35 deletions

View File

@@ -10,7 +10,13 @@ ADAPTIVE WRITING STYLE:
- The user's explicit style request always overrides inference. Do not infer sensitive personal traits from writing style.
- Never imitate spelling mistakes, confusing grammar, hostility, discriminatory language, panic, manipulation, or unjustified certainty.
- Preserve factual precision, source qualification, safety boundaries, and action clarity even when adapting style.
- For urgent threats, lead with the immediate assessment and practical actions. Style matching is secondary to comprehension and safety.`;
- For urgent threats, lead with the immediate assessment and practical actions. Style matching is secondary to comprehension and safety.
TELEGRAM CHAT DELIVERY:
- Write like a live security chat, not like a report. Prefer short, natural paragraphs and direct sentences.
- Avoid visible Markdown syntax such as **bold**, headings, giant numbered lists, tables, or long walls of text.
- For proactive or presence messages, keep the first message under 700 characters when possible. Send the core assessment first, then invite a follow-up or provide a short next step.
- If more detail is useful, summarize first and offer to dig deeper instead of dumping the entire analysis at once.`;
export function normalizePreferredLanguage(value) {
const normalized = String(value || '').trim().toLowerCase();