Spaces:
Paused
Paused
Commit History
-
v7.1: CRITICAL fixes — 20+ bugs from deep audit
Z UserCRITICAL FIXES: - prompt.js: Argentine conjugations (tenés→tienes, decí→di, podés→puedes) - mexican-personality.js: mexicanize() now replaces ALL occurrences (was only first) - index.js: Removed hardcoded owner ID fallback (security risk) - index.js: Removed duplicate disconnect/error handlers (caused double reconnects) - index.js: Added body size limit + Mexican personality to HTTP chat server - index.js: Added sanitization to agentic send_message tool - index.js: Wrapped scheduleRenewalReminder in try-catch (crashed on missing config) HIGH FIXES: - brain.js: Fixed timezone Europe/Madrid → America/Mexico_City (Zelin is MEXICAN) - brain.js: Fixed TOCTOU race condition in sendBrainMessage (record before send) - proactive.js: 'Dale la bienvenida' → 'Da la bienvenida' (Argentine imperative) - moa.js: Removed 'dale' from valid short responses, added 'sale'/'va' - moderation.js: 'chévere' → 'chido'/'padre' (not Mexican) - react.js: Added rate limit + sanitize to send_discord_message tool -…5cef531
-
🧠 Neural Validator v2.0 — CERO regex, 100% advanced system
Z UserCAPA 1: Token Analyzer — statistical token analysis (garbled detection, repetition, language mixing, code leaks, emoji spam) — all via string ops + Maps/Sets CAPA 2: Syntactic Analyzer — Spanish grammar via adjacency rules (Map<word, Set<invalid_followers>>) — 'nop' before verb/article detected by table lookup, not regex CAPA 3: Context Coherence — semantic analysis (echo detection, AI self-reference, prompt leaks, question complexity scoring) — all via Set lookups + string comparison CAPA 4: Neural Judge — local AI model (Qwen3-0.6B/Gemma4) as quality judge with caching — only called when layers 1-3 are inconclusive CAPA 5: Auto-Correction Engine — dictionary-based typo fixes + adjacency rule corrections + abbreviation expansion — all via Map lookups, zero regex humanizer.js: replaced regex post-validation (nop+verb, sip+verb, typo fixes) with delegation to autoCorrect() from Neural Validator 26/26 tests passed, 0 regex found in response-validator.js61b8b33 -
feat: Response Validator v1.0 + Humanizer v3.0 + Thinking Mode v2.0
Z User- NEW: response-validator.js — 5-layer validation system that prevents incoherent/garbled text, word misplacement (nop hay problema), grammar errors, and misunderstanding before sending to Discord. Auto-corrects when possible, retries with stricter prompt when needed. - FIX: humanizer.js v3.0 — Context-aware casual substitutions: - 'no' → 'nop' ONLY when standalone response (never before verb/article) - 'para' → 'pa' only before articles (not in 'paraguas') - 'también' → 'tmb' only in natural positions - Removed AI-obvious typos: etsa, bine, cmoo, sloo (humans dont write these) - Post-validation: auto-fix nop/sip before verbs even if they slip through - Reduced probabilities to avoid over-humanizing - FIX: psyche.js — Removed fake typos (etsa/bine/cmoo/sloo) that made Zelin sound MORE like an AI, not less - FIX: ai.js Thinking Mode v2.0 — More specific instructions with: - Concrete examples of GOOD and BAD responses - Explicit anti-error rules (nop before ver…cec08aa