@synkro-sh/cli 1.4.80 → 1.4.81

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/bootstrap.js CHANGED
@@ -6397,7 +6397,7 @@ function writeConfigEnv(opts) {
6397
6397
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
6398
6398
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
6399
6399
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
6400
- `SYNKRO_VERSION=${shellQuoteSingle("1.4.80")}`
6400
+ `SYNKRO_VERSION=${shellQuoteSingle("1.4.81")}`
6401
6401
  ];
6402
6402
  if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
6403
6403
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
@@ -6653,10 +6653,13 @@ async function startLocalMcpServer() {
6653
6653
  console.log(" Restarting local MCP server to pick up new credentials...");
6654
6654
  try {
6655
6655
  const { execSync: execSync7 } = await import("child_process");
6656
+ const selfPid = process.pid;
6656
6657
  const pids = execSync7(`lsof -ti :${MCP_LOCAL_PORT}`, { encoding: "utf-8" }).trim();
6657
6658
  for (const pid of pids.split("\n").filter(Boolean)) {
6659
+ const n = parseInt(pid, 10);
6660
+ if (n === selfPid) continue;
6658
6661
  try {
6659
- process.kill(parseInt(pid, 10), "SIGTERM");
6662
+ process.kill(n, "SIGTERM");
6660
6663
  } catch {
6661
6664
  }
6662
6665
  }