@runweave/server-linux-x64 0.1.6 → 0.1.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.
@@ -8718,6 +8718,14 @@ async function waitForAppServer() {
8718
8718
  }
8719
8719
  async function runComponent(ctx, name) {
8720
8720
  if (process.platform === "win32") {
8721
+ let owner;
8722
+ try {
8723
+ owner = readJson(import_node_path8.default.join(ctx.home, "foreground.json"));
8724
+ } catch {
8725
+ throw new Error("SERVER_CLI_INCOMPATIBLE: start this Windows Server with @runweave/cli >=0.10.8");
8726
+ }
8727
+ if (owner.foregroundProtocolVersion !== 1 || owner.pid !== process.ppid || processStartIdentity(owner.pid) !== owner.startedAt)
8728
+ throw new Error("SERVER_CLI_INCOMPATIBLE: start this Windows Server with @runweave/cli >=0.10.8");
8721
8729
  const shutdown = () => {
8722
8730
  if (process.listenerCount("SIGTERM") === 0) process.exit(0);
8723
8731
  process.emit("SIGTERM");