@synkro-sh/cli 1.4.80 → 1.4.82
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 +7 -3
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -2699,6 +2699,7 @@ async function main() {
|
|
|
2699
2699
|
main();
|
|
2700
2700
|
`;
|
|
2701
2701
|
BASH_JUDGE_TS = `#!/usr/bin/env bun
|
|
2702
|
+
import process from 'node:process';
|
|
2702
2703
|
import {
|
|
2703
2704
|
loadJwt, ensureFreshJwt, detectRepo, loadConfig, route, tag, localGrade,
|
|
2704
2705
|
parseVerdict, dispatchCapture, dispatchFinding, ruleMode, postWithRetry, readStdin,
|
|
@@ -2815,7 +2816,7 @@ Do NOT install packages with security risks. Use a patched version or a differen
|
|
|
2815
2816
|
dispatchFinding(jwt, {
|
|
2816
2817
|
session_id: sessionId,
|
|
2817
2818
|
file_path: command,
|
|
2818
|
-
finding_type:
|
|
2819
|
+
finding_type: 'cve' as const,
|
|
2819
2820
|
finding_id: s.type + ':' + p.name,
|
|
2820
2821
|
severity: s.severity,
|
|
2821
2822
|
status: 'open',
|
|
@@ -6397,7 +6398,7 @@ function writeConfigEnv(opts) {
|
|
|
6397
6398
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
6398
6399
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
6399
6400
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
6400
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.4.
|
|
6401
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.4.82")}`
|
|
6401
6402
|
];
|
|
6402
6403
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
6403
6404
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
@@ -6653,10 +6654,13 @@ async function startLocalMcpServer() {
|
|
|
6653
6654
|
console.log(" Restarting local MCP server to pick up new credentials...");
|
|
6654
6655
|
try {
|
|
6655
6656
|
const { execSync: execSync7 } = await import("child_process");
|
|
6657
|
+
const selfPid = process.pid;
|
|
6656
6658
|
const pids = execSync7(`lsof -ti :${MCP_LOCAL_PORT}`, { encoding: "utf-8" }).trim();
|
|
6657
6659
|
for (const pid of pids.split("\n").filter(Boolean)) {
|
|
6660
|
+
const n = parseInt(pid, 10);
|
|
6661
|
+
if (n === selfPid) continue;
|
|
6658
6662
|
try {
|
|
6659
|
-
process.kill(
|
|
6663
|
+
process.kill(n, "SIGTERM");
|
|
6660
6664
|
} catch {
|
|
6661
6665
|
}
|
|
6662
6666
|
}
|