@synkro-sh/cli 1.4.74 → 1.4.76
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 +14 -3
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -7416,7 +7416,7 @@ function writeConfigEnv(opts) {
|
|
|
7416
7416
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
7417
7417
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
7418
7418
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
7419
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.4.
|
|
7419
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.4.76")}`
|
|
7420
7420
|
];
|
|
7421
7421
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
7422
7422
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
@@ -7669,8 +7669,19 @@ async function startLocalMcpServer() {
|
|
|
7669
7669
|
try {
|
|
7670
7670
|
const probe = await fetch(`http://127.0.0.1:${MCP_LOCAL_PORT}/`, { signal: AbortSignal.timeout(1e3) });
|
|
7671
7671
|
if (probe.ok) {
|
|
7672
|
-
console.log(
|
|
7673
|
-
|
|
7672
|
+
console.log(" Restarting local MCP server to pick up new credentials...");
|
|
7673
|
+
try {
|
|
7674
|
+
const { execSync: execSync7 } = await import("child_process");
|
|
7675
|
+
const pids = execSync7(`lsof -ti :${MCP_LOCAL_PORT}`, { encoding: "utf-8" }).trim();
|
|
7676
|
+
for (const pid of pids.split("\n").filter(Boolean)) {
|
|
7677
|
+
try {
|
|
7678
|
+
process.kill(parseInt(pid, 10), "SIGTERM");
|
|
7679
|
+
} catch {
|
|
7680
|
+
}
|
|
7681
|
+
}
|
|
7682
|
+
await new Promise((r) => setTimeout(r, 500));
|
|
7683
|
+
} catch {
|
|
7684
|
+
}
|
|
7674
7685
|
}
|
|
7675
7686
|
} catch {
|
|
7676
7687
|
}
|