@wu529778790/open-im 1.10.9-beta.1 → 1.10.9-beta.2

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 +9 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -97,21 +97,28 @@ async function cmdStop() {
97
97
  }
98
98
  async function cmdRestart() {
99
99
  const status = getManagerStatus();
100
+ let restartedExistingInstance = false;
100
101
  if (status.pid) {
101
102
  await stopBackgroundService();
102
103
  const stopped = await stopManagerProcess();
103
104
  console.log("\nopen-im stopped.");
104
105
  console.log(` pid: ${stopped.pid}`);
106
+ restartedExistingInstance = true;
105
107
  }
106
108
  else {
107
- console.log("open-im is not running in the background. Starting a new instance.");
109
+ console.log("\nopen-im is not running in the background.");
108
110
  }
109
111
  if (!(await ensureConfigured("start"))) {
110
112
  process.exit(1);
111
113
  }
112
114
  await checkAndUpdate();
113
115
  const child = await startManagerProcess(process.cwd());
114
- console.log("\nopen-im restarted in the background.");
116
+ if (restartedExistingInstance) {
117
+ console.log("\nopen-im restarted in the background.");
118
+ }
119
+ else {
120
+ console.log("\nopen-im started in the background.");
121
+ }
115
122
  console.log(` pid: ${child.pid}`);
116
123
  logWebDashboardAndApi();
117
124
  process.exit(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wu529778790/open-im",
3
- "version": "1.10.9-beta.1",
3
+ "version": "1.10.9-beta.2",
4
4
  "description": "Multi-platform IM bridge for AI CLI tools (Claude, Codex, CodeBuddy)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",