@aliwey/bmo 2.0.6 → 2.0.7

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.
Files changed (2) hide show
  1. package/bin/bmo.js +11 -0
  2. package/package.json +1 -1
package/bin/bmo.js CHANGED
@@ -152,6 +152,17 @@ Data lives in: ${BMO_HOME_DISPLAY}
152
152
  // ── bmo --update [version] ────────────────────────────────────────────────
153
153
  if (cmd === '--update' || cmd === '-update' || cmd === 'update') {
154
154
  const ver = args[0] ? `@${args[0]}` : '@latest';
155
+ console.log(`Stopping any running BMO background processes to release file locks...`);
156
+ try {
157
+ if (os.platform() === 'win32') {
158
+ execSync(`powershell -Command "Get-CimInstance Win32_Process | Where-Object { $_.CommandLine -like '*main.py*' -or $_.CommandLine -like '*cli.py*' -or $_.CommandLine -like '*bmo*' } | ForEach-Object { Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue }"`, { stdio: 'ignore' });
159
+ } else {
160
+ execSync(`pkill -f "main.py|cli.py|bmo" || true`, { stdio: 'ignore' });
161
+ }
162
+ } catch (e) {
163
+ // Ignore failures
164
+ }
165
+
155
166
  console.log(`🗑️ Uninstalling old version of @aliwey/bmo...`);
156
167
  try {
157
168
  execSync('npm uninstall -g @aliwey/bmo', { stdio: 'inherit' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliwey/bmo",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
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",