Doctor
Doctor là command chẩn đoán chính của Bestie.
Commands
Phần tiêu đề “Commands”bestie doctorbestie doctor --jsonbestie doctor --fixbestie doctor --telegram-connectbestie doctor --telegram-speech-testDoctor kiểm tra gì?
Phần tiêu đề “Doctor kiểm tra gì?”- Node.js version.
- Required project files.
- Config tồn tại và parse được.
.envtồn tại và permission an toàn.- LLM API key có mặt nhưng không in value.
- SQLite memory database.
- Character prompt.
- Logs directory.
- Telegram token/owner id nếu bật Telegram.
- Attachment storage và cleanup guidance.
- Transcription/speech readiness nếu bật.
- MCP config và missing tool classifications.
--fix sửa gì?
Phần tiêu đề “--fix sửa gì?”--fix chỉ sửa local safe issues:
- tạo
.bestie/,.bestie/logs/,.bestie/data/ - init/migrate SQLite database
- chỉnh permission
.envvà app logs
--fix không overwrite config, prompts hoặc secrets.
Exit policy
Phần tiêu đề “Exit policy”- Exit
0nếu không còn failing issue. - Exit
1nếu còn lỗi fail. - Warnings không làm exit fail.