merlyn/server/utils
PQ32 Developer acbf66c5bf Patch 5: Replace silent truncation with explicit token limit in read-text-file
Silent truncation of legal documents is unacceptable - Merlyn was reading
partial files without knowing it.

New behavior:
- Files under AGENT_MAX_FILE_TOKENS (default 500,000): return full content
- Files over limit: return explicit message with token count and options
- Paralegal controls any summarization decision
- Merlyn never silently truncates legal documents
2026-05-10 15:28:14 -07:00
..
agentFlows Fix streaming issue for LLM instruction blocks (#5382) 2026-04-07 12:03:07 -07:00
agents Patch 5: Replace silent truncation with explicit token limit in read-text-file 2026-05-10 15:28:14 -07:00
AiProviders Patch 4: Increase OpenRouter promptWindowLimit fallback via AGENT_CONTEXT_WINDOW_FALLBACK 2026-05-10 15:21:45 -07:00
BackgroundWorkers feat: Scheduled Jobs (#5322) 2026-04-29 12:05:46 -07:00
boot Telegram bot connector (#5190) 2026-03-23 15:10:21 -07:00
chats fix regenerate from system message connect #5407 2026-04-15 06:41:43 -07:00
collectorApi Filesystem Agent Skill overhaul (#5260) 2026-03-26 14:07:46 -07:00
comKey [BETA] Live document sync (#1719) 2024-06-21 13:38:50 -07:00
database Remove WelcomeMessages from app - no longer used (#5206) 2026-03-13 12:55:59 -07:00
DocumentManager Enable ability to do full-text query on documents (#758) 2024-02-21 13:15:45 -08:00
EmbeddingEngines Normalize lemonade embedder error handling (#5547) 2026-04-28 10:59:14 -07:00
EmbeddingRerankers/native chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
EncryptionManager Telegram bot connector (#5190) 2026-03-23 15:10:21 -07:00
files Reapply "Remove illegal chars for Windows on files (#5364)" 2026-04-06 14:05:25 -07:00
helpers fix(agent): check auto-approved skills env correctly (#5511) 2026-04-28 09:29:46 -07:00
http add user id to chat feedback 2026-03-13 16:51:02 -07:00
logger patch logger for full logs 2024-07-19 18:35:41 -07:00
MCP MCP tool manager (#5230) 2026-03-18 15:33:49 -07:00
middleware Telegram bot connector (#5190) 2026-03-23 15:10:21 -07:00
PasswordRecovery Merge commit from fork 2026-01-02 15:50:50 -08:00
prisma Fix Typos in Comments and Documentation (#3987) 2025-06-12 13:59:38 -07:00
PushNotifications feat: Scheduled Jobs (#5322) 2026-04-29 12:05:46 -07:00
telegramBot bump TG edit to prevent edit spam for messages since edits count as a send event and too many will result in a 429 2026-04-15 10:18:32 -07:00
telemetry Prune telemetry events 2025-04-29 13:54:00 -07:00
TextSplitter Native Embedder model selection (incl: Multilingual support) (#3835) 2025-07-22 10:07:20 -07:00
TextToSpeech chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
vectorDbProviders chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
vectorStore PGvector vector database support (#3788) 2025-05-09 12:27:11 -07:00
EmbeddingWorkerManager.js feat: Document Embedding Status Events | Refactor Document Embedding to Job Queue and Forked Process (#5254) 2026-04-06 17:00:15 -07:00