@synkro-sh/cli 1.6.41 → 1.6.42

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
@@ -53,14 +53,25 @@ function detectAgents() {
53
53
  }
54
54
  const cursorBinary = which("cursor");
55
55
  const cursorConfigDir = join(home, ".cursor");
56
- if (cursorBinary) {
56
+ const cursorApp = process.platform === "darwin" && existsSync("/Applications/Cursor.app");
57
+ if (cursorBinary || cursorApp || existsSync(cursorConfigDir)) {
58
+ let version;
59
+ if (cursorBinary) {
60
+ version = getVersion("cursor");
61
+ } else if (cursorApp) {
62
+ try {
63
+ const plist = execSync("defaults read /Applications/Cursor.app/Contents/Info CFBundleShortVersionString 2>/dev/null", { encoding: "utf-8", timeout: 3e3 }).trim();
64
+ if (plist) version = plist;
65
+ } catch {
66
+ }
67
+ }
57
68
  agents.push({
58
69
  kind: "cursor",
59
70
  name: "Cursor",
60
71
  binaryPath: cursorBinary,
61
72
  configDir: cursorConfigDir,
62
73
  settingsPath: join(cursorConfigDir, "hooks.json"),
63
- version: getVersion("cursor")
74
+ version
64
75
  });
65
76
  }
66
77
  return agents;
@@ -8250,7 +8261,7 @@ function writeConfigEnv(opts) {
8250
8261
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
8251
8262
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
8252
8263
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
8253
- `SYNKRO_VERSION=${shellQuoteSingle("1.6.41")}`
8264
+ `SYNKRO_VERSION=${shellQuoteSingle("1.6.42")}`
8254
8265
  ];
8255
8266
  if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
8256
8267
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
@@ -11313,7 +11324,7 @@ var args = process.argv.slice(2);
11313
11324
  var cmd = args[0] || "";
11314
11325
  var subArgs = args.slice(1);
11315
11326
  function printVersion() {
11316
- console.log("1.6.41");
11327
+ console.log("1.6.42");
11317
11328
  }
11318
11329
  function printHelp2() {
11319
11330
  console.log(`Synkro CLI \u2014 runtime safety for AI coding agents