@rehpic/vcli 0.1.0-beta.48.1 → 0.1.0-beta.49.1

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/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var menubar_exports = {};
14
14
  __export(menubar_exports, {
15
15
  startMenuBar: () => startMenuBar
16
16
  });
17
- import SysTray from "systray2";
17
+ import SysTrayModule from "systray2";
18
18
  import { existsSync, readFileSync } from "fs";
19
19
  import { homedir as homedir2 } from "os";
20
20
  import { join } from "path";
@@ -223,10 +223,11 @@ async function startMenuBar() {
223
223
  void newActions;
224
224
  }, 15e3);
225
225
  }
226
- var CONFIG_DIR, BRIDGE_CONFIG_FILE, PID_FILE, LIVE_ACTIVITIES_FILE;
226
+ var SysTray, CONFIG_DIR, BRIDGE_CONFIG_FILE, PID_FILE, LIVE_ACTIVITIES_FILE;
227
227
  var init_menubar = __esm({
228
228
  "src/menubar.ts"() {
229
229
  "use strict";
230
+ SysTray = typeof SysTrayModule.default === "function" ? SysTrayModule.default : SysTrayModule;
230
231
  CONFIG_DIR = join(homedir2(), ".vector");
231
232
  BRIDGE_CONFIG_FILE = join(CONFIG_DIR, "bridge.json");
232
233
  PID_FILE = join(CONFIG_DIR, "bridge.pid");
@@ -3865,8 +3866,10 @@ serviceCommand.command("install").description("Install the bridge as a system se
3865
3866
  "Bridge installed and running. Will start automatically on login."
3866
3867
  );
3867
3868
  });
3868
- serviceCommand.command("uninstall").description("Uninstall the bridge system service").action(() => {
3869
+ serviceCommand.command("uninstall").description("Stop the bridge and uninstall the system service").action(() => {
3870
+ stopBridge();
3869
3871
  uninstallLaunchAgent();
3872
+ console.log("Bridge stopped and service uninstalled.");
3870
3873
  });
3871
3874
  serviceCommand.command("logs").description("Show bridge service logs").action(async () => {
3872
3875
  const fs7 = await import("fs");