@aliwey/bmo 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.py CHANGED
@@ -1120,6 +1120,20 @@ def main_run():
1120
1120
  warnings.filterwarnings("ignore", category=ResourceWarning)
1121
1121
  # Suppress Windows asyncio pipe ValueError on exit (closed pipe repr noise)
1122
1122
  warnings.filterwarnings("ignore", message=".*I/O operation on closed pipe.*")
1123
+
1124
+ # Set up basic logging for the CLI TUI to write to ~/.bmo/logs/cli.log
1125
+ try:
1126
+ from config.settings import LOGS_DIR
1127
+ LOGS_DIR.mkdir(parents=True, exist_ok=True)
1128
+ logging.basicConfig(
1129
+ filename=LOGS_DIR / "cli.log",
1130
+ filemode="a",
1131
+ format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
1132
+ level=logging.INFO
1133
+ )
1134
+ except Exception:
1135
+ pass
1136
+
1123
1137
  try:
1124
1138
  asyncio.run(main())
1125
1139
  except KeyboardInterrupt:
@@ -57,7 +57,8 @@ class OpenCodeBotClient:
57
57
  try:
58
58
  r = await self._http.get("/session", timeout=5.0)
59
59
  return r.status_code < 500
60
- except Exception:
60
+ except Exception as e:
61
+ logger.error("is_alive check failed for %s: %s", OPENCODE_BASE_URL, e)
61
62
  return False
62
63
 
63
64
  async def connect(self) -> bool:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliwey/bmo",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "BMO — AI coding assistant with Telegram, CLI & Web sync. One command, all frontends.",
5
5
  "keywords": ["ai", "coding-assistant", "telegram-bot", "cli", "opencode", "bfp"],
6
6
  "homepage": "https://github.com/aliwey/bmo",