@synkro-sh/cli 1.6.42 → 1.6.43

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
@@ -19,7 +19,7 @@ var __export = (target, all) => {
19
19
  import { existsSync } from "fs";
20
20
  import { homedir } from "os";
21
21
  import { join } from "path";
22
- import { execSync } from "child_process";
22
+ import { execFileSync, execSync } from "child_process";
23
23
  function which(cmd2) {
24
24
  try {
25
25
  const result = execSync(`which ${cmd2}`, { encoding: "utf-8" }).trim();
@@ -30,8 +30,9 @@ function which(cmd2) {
30
30
  }
31
31
  function getVersion(cmd2) {
32
32
  try {
33
- const result = execSync(`${cmd2} --version 2>&1`, { encoding: "utf-8", timeout: 5e3 }).trim();
34
- return result.split("\n")[0];
33
+ const result = execFileSync(cmd2, ["--version"], { encoding: "utf-8", timeout: 5e3 }).trim();
34
+ const line = result.split("\n")[0];
35
+ return line.replace(/\s*\(Claude Code\)/, "");
35
36
  } catch {
36
37
  return void 0;
37
38
  }
@@ -6581,7 +6582,7 @@ var init_githubSetup = __esm({
6581
6582
  });
6582
6583
 
6583
6584
  // cli/commands/repoConnect.ts
6584
- import { execSync as execSync3, execFileSync } from "child_process";
6585
+ import { execSync as execSync3, execFileSync as execFileSync2 } from "child_process";
6585
6586
  import { readdirSync } from "fs";
6586
6587
  import { createServer as createServer2 } from "http";
6587
6588
  import { createInterface } from "readline";
@@ -6605,7 +6606,7 @@ function detectSubdirRepos() {
6605
6606
  for (const entry of entries) {
6606
6607
  if (!entry.isDirectory() || entry.name.startsWith(".")) continue;
6607
6608
  try {
6608
- const remoteUrl = execFileSync("git", ["-C", entry.name, "remote", "get-url", "origin"], {
6609
+ const remoteUrl = execFileSync2("git", ["-C", entry.name, "remote", "get-url", "origin"], {
6609
6610
  encoding: "utf-8",
6610
6611
  timeout: 5e3,
6611
6612
  stdio: ["pipe", "pipe", "pipe"]
@@ -8261,7 +8262,7 @@ function writeConfigEnv(opts) {
8261
8262
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
8262
8263
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
8263
8264
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
8264
- `SYNKRO_VERSION=${shellQuoteSingle("1.6.42")}`
8265
+ `SYNKRO_VERSION=${shellQuoteSingle("1.6.43")}`
8265
8266
  ];
8266
8267
  if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
8267
8268
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
@@ -10243,7 +10244,7 @@ var init_grade = __esm({
10243
10244
  });
10244
10245
 
10245
10246
  // cli/local-cc/pueue.ts
10246
- import { execFileSync as execFileSync2, spawnSync as spawnSync6, spawn } from "child_process";
10247
+ import { execFileSync as execFileSync3, spawnSync as spawnSync6, spawn } from "child_process";
10247
10248
  import { homedir as homedir12 } from "os";
10248
10249
  import { join as join12 } from "path";
10249
10250
  import { connect as connect2 } from "net";
@@ -11324,7 +11325,7 @@ var args = process.argv.slice(2);
11324
11325
  var cmd = args[0] || "";
11325
11326
  var subArgs = args.slice(1);
11326
11327
  function printVersion() {
11327
- console.log("1.6.42");
11328
+ console.log("1.6.43");
11328
11329
  }
11329
11330
  function printHelp2() {
11330
11331
  console.log(`Synkro CLI \u2014 runtime safety for AI coding agents