@wu529778790/open-im 1.8.1-beta.19 → 1.8.1-beta.20

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/dist/cli.js +5 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -50,7 +50,7 @@ async function cmdStart() {
50
50
  console.log("\nopen-im is already running in the background.");
51
51
  console.log(` pid: ${status.pid}`);
52
52
  console.log(` config page: ${getWebConfigUrl()}`);
53
- return;
53
+ process.exit(0);
54
54
  }
55
55
  if (!(await ensureConfigured("start"))) {
56
56
  process.exit(1);
@@ -67,17 +67,19 @@ async function cmdStart() {
67
67
  console.log(" A one-time login URL (with login_token) has been printed by the config-web server logger.");
68
68
  console.log(" Please use that URL (replacing 127.0.0.1 with your server IP/hostname) for the first login.");
69
69
  }
70
+ process.exit(0);
70
71
  }
71
72
  async function cmdStop() {
72
73
  const status = getManagerStatus();
73
74
  if (!status.pid) {
74
75
  console.log("open-im is not running in the background.");
75
- return;
76
+ process.exit(0);
76
77
  }
77
78
  await stopBackgroundService();
78
79
  const result = await stopManagerProcess();
79
80
  console.log("\nopen-im stopped.");
80
81
  console.log(` pid: ${result.pid}`);
82
+ process.exit(0);
81
83
  }
82
84
  async function cmdRestart() {
83
85
  const status = getManagerStatus();
@@ -98,6 +100,7 @@ async function cmdRestart() {
98
100
  console.log("\nopen-im restarted in the background.");
99
101
  console.log(` pid: ${child.pid}`);
100
102
  console.log(` config page: ${getWebConfigUrl()}`);
103
+ process.exit(0);
101
104
  }
102
105
  async function cmdInit() {
103
106
  console.log("\nopen-im CLI setup\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wu529778790/open-im",
3
- "version": "1.8.1-beta.19",
3
+ "version": "1.8.1-beta.20",
4
4
  "description": "Multi-platform IM bridge for AI CLI tools (Claude, Codex, CodeBuddy)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",