fix: telegram ESM compatibility and improved diagnostics (#161)

- Replace telegram-markdown-v2 with telegramify-markdown (ESM compatible)
- Add raw text fallback when Telegram formatting fails, with error notice
- Improve empty response diagnostics: log agent ID, show conversation ID
- Add reset-conversation command hint to user messages
- Add telegram-format.test.ts with 7 tests

Fixes Railway deployment ERR_REQUIRE_ESM error with remark package.

Written by Cameron and Letta Code

"The best error message is the one that never shows up." - Thomas Fuchs
This commit is contained in:
Cameron
2026-02-05 10:31:53 -08:00
committed by GitHub
parent 257da79e94
commit c85c4a3272
6 changed files with 700 additions and 1133 deletions

1735
package-lock.json generated

File diff suppressed because it is too large Load Diff