Files
lettabot/package.json
Cameron c85c4a3272 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
2026-02-05 10:31:53 -08:00

76 lines
2.1 KiB
JSON

{
"name": "lettabot",
"version": "1.0.0",
"type": "module",
"main": "dist/main.js",
"bin": {
"lettabot": "./dist/cli.js",
"lettabot-schedule": "./dist/cron/cli.js",
"lettabot-message": "./dist/cli/message.js",
"lettabot-react": "./dist/cli/react.js",
"lettabot-channels": "./dist/cli/channels.js"
},
"scripts": {
"setup": "tsx src/setup.ts",
"dev": "tsx src/main.ts",
"build": "tsc",
"start": "node dist/main.js",
"test": "vitest",
"test:run": "vitest run",
"test:e2e": "vitest run e2e/",
"skills": "tsx src/cli.ts skills",
"skills:list": "tsx src/cli.ts skills list",
"skills:status": "tsx src/cli.ts skills status",
"cron": "tsx src/cron/cli.ts",
"pairing": "tsx src/cli.ts pairing",
"skill:install": "npx clawdhub install --dir ~/.letta/skills",
"skill:search": "npx clawdhub search",
"skill:list": "npx clawdhub list --dir ~/.letta/skills",
"skills:add": "npx skills add --global --yes",
"skills:find": "npx skills find"
},
"keywords": [
"telegram",
"bot",
"letta",
"ai",
"agent"
],
"author": "",
"license": "Apache-2.0",
"description": "Multi-channel AI assistant with persistent memory - Telegram, Slack, WhatsApp",
"dependencies": {
"@clack/prompts": "^0.11.0",
"@hapi/boom": "^10.0.1",
"@letta-ai/letta-client": "^1.7.7",
"@letta-ai/letta-code-sdk": "^0.0.5",
"@types/express": "^5.0.6",
"@types/node": "^25.0.10",
"@types/node-schedule": "^2.1.8",
"dotenv": "^17.2.3",
"express": "^5.2.1",
"googleapis": "^170.1.0",
"grammy": "^1.39.3",
"gray-matter": "^4.0.3",
"node-schedule": "^2.1.1",
"open": "^11.0.0",
"openai": "^6.17.0",
"qrcode-terminal": "^0.12.0",
"telegramify-markdown": "^1.0.0",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"update-notifier": "^7.3.1",
"yaml": "^2.8.2",
"keyv": "^5.6.0"
},
"optionalDependencies": {
"@slack/bolt": "^4.6.0",
"@whiskeysockets/baileys": "^6.7.21",
"discord.js": "^14.25.1"
},
"devDependencies": {
"@types/update-notifier": "^6.0.8",
"vitest": "^4.0.18"
}
}