@synkro-sh/cli 1.6.62 → 1.6.63

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
@@ -10318,7 +10318,7 @@ function writeConfigEnv(opts) {
10318
10318
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
10319
10319
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
10320
10320
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
10321
- `SYNKRO_VERSION=${shellQuoteSingle("1.6.62")}`
10321
+ `SYNKRO_VERSION=${shellQuoteSingle("1.6.63")}`
10322
10322
  ];
10323
10323
  if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
10324
10324
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
@@ -10350,10 +10350,20 @@ async function provisionCloudContainer(opts) {
10350
10350
  process.exit(1);
10351
10351
  }
10352
10352
  const repo = detectGitRepo2() || void 0;
10353
+ const sf = readFullSynkroFile();
10353
10354
  const harness = [];
10354
10355
  if (opts.hasClaudeCode) harness.push("claude-code");
10355
10356
  if (opts.hasCursor) harness.push("cursor");
10356
- const total = parseInt(process.env.SYNKRO_WORKERS_PER_POOL || "8", 10);
10357
+ const envWorkers = parseInt(process.env.SYNKRO_WORKERS_PER_POOL || "", 10);
10358
+ const total = sf?.workers?.claude && sf.workers.claude > 0 ? sf.workers.claude : Number.isFinite(envWorkers) && envWorkers > 0 ? envWorkers : 4;
10359
+ const cursorTotal = sf?.workers?.cursor && sf.workers.cursor > 0 ? sf.workers.cursor : 0;
10360
+ let cursorApiKey = "";
10361
+ if (cursorTotal > 0) {
10362
+ try {
10363
+ cursorApiKey = readFileSync10(join10(SYNKRO_DIR5, "cursor-creds", "api-key"), "utf-8").trim();
10364
+ } catch {
10365
+ }
10366
+ }
10357
10367
  try {
10358
10368
  const resp = await fetch(`${opts.gatewayUrl}/api/v1/cli/cloud-provision`, {
10359
10369
  method: "POST",
@@ -10364,7 +10374,9 @@ async function provisionCloudContainer(opts) {
10364
10374
  email: opts.email,
10365
10375
  harness,
10366
10376
  claude_workers: total,
10367
- cursor_workers: 0,
10377
+ cursor_workers: cursorTotal,
10378
+ cursor_api_key: cursorApiKey,
10379
+ // never logged; gateway stores it as the org secret
10368
10380
  connected_repo: repo,
10369
10381
  ruleset: readFullSynkroFile()?.ruleset || "default",
10370
10382
  setup_token: setupToken
@@ -11077,6 +11089,7 @@ async function installCommand(opts = {}) {
11077
11089
  }
11078
11090
  console.log();
11079
11091
  } else if (target === "cloud-container") {
11092
+ if (hasCursor) await promptCursorApiKey(opts);
11080
11093
  await provisionCloudContainer({ gatewayUrl, jwt: token, orgId, userId, email, hasClaudeCode, hasCursor });
11081
11094
  await verifyCloudGrader(token);
11082
11095
  }
@@ -13836,7 +13849,7 @@ var args = process.argv.slice(2);
13836
13849
  var cmd = args[0] || "";
13837
13850
  var subArgs = args.slice(1);
13838
13851
  function printVersion() {
13839
- console.log("1.6.62");
13852
+ console.log("1.6.63");
13840
13853
  }
13841
13854
  function printHelp2() {
13842
13855
  console.log(`Synkro CLI \u2014 runtime safety for AI coding agents