@synkro-sh/cli 1.7.41 → 1.7.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
@@ -4826,7 +4826,7 @@ function writeConfigEnv(opts) {
4826
4826
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
4827
4827
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
4828
4828
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
4829
- `SYNKRO_VERSION=${shellQuoteSingle("1.7.41")}`
4829
+ `SYNKRO_VERSION=${shellQuoteSingle("1.7.42")}`
4830
4830
  ];
4831
4831
  if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
4832
4832
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
@@ -5646,6 +5646,17 @@ async function installCommand(opts = {}) {
5646
5646
  }
5647
5647
  console.log();
5648
5648
  let cloudGradeOk = null;
5649
+ const graderUsesCursor = (() => {
5650
+ if (!hasCursor) return false;
5651
+ const sfp = readFullSynkroFile();
5652
+ if (sfp && (sfp.workers.claude != null || sfp.workers.cursor != null)) {
5653
+ return Math.max(0, Math.floor(sfp.workers.cursor || 0)) > 0;
5654
+ }
5655
+ const pool = sfp?.grader?.pool || "auto";
5656
+ if (pool === "cursor") return true;
5657
+ if (pool === "claude_code") return false;
5658
+ return hasCursor;
5659
+ })();
5649
5660
  if (useLocalMcp) {
5650
5661
  const { assertDockerAvailable: assertDockerAvailable2 } = await Promise.resolve().then(() => (init_dockerInstall(), dockerInstall_exports));
5651
5662
  try {
@@ -5655,7 +5666,7 @@ async function installCommand(opts = {}) {
5655
5666
  \u2717 ${err.message}`);
5656
5667
  process.exit(1);
5657
5668
  }
5658
- if (hasCursor) {
5669
+ if (graderUsesCursor) {
5659
5670
  await promptCursorApiKey(opts);
5660
5671
  }
5661
5672
  console.log("Installing Synkro server container...");
@@ -5727,7 +5738,7 @@ async function installCommand(opts = {}) {
5727
5738
  }
5728
5739
  console.log();
5729
5740
  } else if (target === "cloud-container") {
5730
- if (hasCursor) await promptCursorApiKey(opts);
5741
+ if (graderUsesCursor) await promptCursorApiKey(opts);
5731
5742
  await provisionCloudContainer({ gatewayUrl, jwt: token, orgId, userId, email, hasClaudeCode, hasCursor });
5732
5743
  cloudGradeOk = await verifyCloudGrader(token);
5733
5744
  if (await promptCodexCloudSetup()) {
@@ -9028,7 +9039,7 @@ var args = process.argv.slice(2);
9028
9039
  var cmd = args[0] || "";
9029
9040
  var subArgs = args.slice(1);
9030
9041
  function printVersion() {
9031
- console.log("1.7.41");
9042
+ console.log("1.7.42");
9032
9043
  }
9033
9044
  function printHelp2() {
9034
9045
  console.log(`Synkro CLI \u2014 runtime safety for AI coding agents