@hangox/mg-cli 1.0.7 → 1.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/dist/cli.js CHANGED
@@ -1232,19 +1232,8 @@ var MGClient = class {
1232
1232
  if (isProcessRunning(serverInfo.pid)) {
1233
1233
  const currentVersion = getVersion();
1234
1234
  if (!isVersionMatch(currentVersion, serverInfo.version)) {
1235
- console.log(`\u7248\u672C\u4E0D\u5339\u914D: CLI ${currentVersion} vs Server ${serverInfo.version}`);
1236
- console.log("\u6B63\u5728\u91CD\u542F Server \u4EE5\u5BF9\u9F50\u7248\u672C...");
1237
- try {
1238
- const newInfo = await restartServer(serverInfo.port);
1239
- console.log(`Server \u5DF2\u91CD\u542F\uFF0C\u7248\u672C: ${newInfo.version}`);
1240
- await this.waitForServer(newInfo.port);
1241
- return;
1242
- } catch (error) {
1243
- throw new MGError(
1244
- "E015" /* SERVER_START_FAILED */,
1245
- `\u91CD\u542F Server \u5931\u8D25: ${error instanceof Error ? error.message : error}`
1246
- );
1247
- }
1235
+ console.warn(`\u26A0\uFE0F \u7248\u672C\u4E0D\u5339\u914D: CLI ${currentVersion} vs Server ${serverInfo.version}`);
1236
+ console.warn("\u63D0\u793A: \u5982\u9700\u5BF9\u9F50\u7248\u672C\uFF0C\u8BF7\u624B\u52A8\u8FD0\u884C `npx -y @hangox/mg-cli@latest server restart`");
1248
1237
  }
1249
1238
  try {
1250
1239
  await this.tryConnect(serverInfo.port);