@synkro-sh/cli 1.6.99 → 1.6.100

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
@@ -10668,6 +10668,7 @@ function captureClaudeSetupToken() {
10668
10668
  const isMac = platform3() === "darwin";
10669
10669
  const bin = "script";
10670
10670
  const args2 = isMac ? ["-q", tmpFile, "claude", "setup-token"] : ["-qec", "claude setup-token", tmpFile];
10671
+ const OAUTH_HINT = 'The browser approval did not return a token. This usually means claude.ai rejected the OAuth request (its "Authorization failed \u2014 Unsupported media type" page), most often because a browser extension (Grammarly, ad/script blockers, AI-assistant toolbars) stripped the request headers, or you approved on the wrong Claude account. Fix: retry in a clean incognito window with extensions disabled, and approve on the Claude account you want the cloud workers to use.';
10671
10672
  return new Promise((resolve4, reject) => {
10672
10673
  const proc = nodeSpawn(bin, args2, {
10673
10674
  stdio: "inherit",
@@ -10687,7 +10688,7 @@ function captureClaudeSetupToken() {
10687
10688
  } catch {
10688
10689
  }
10689
10690
  if (code !== 0) {
10690
- reject(new Error(`claude setup-token exited with code ${code}`));
10691
+ reject(new Error(`claude setup-token exited with code ${code}. ${OAUTH_HINT}`));
10691
10692
  return;
10692
10693
  }
10693
10694
  const TOKEN_YELLOW = "2;255;193;7";
@@ -10731,7 +10732,8 @@ function captureClaudeSetupToken() {
10731
10732
  i += 1;
10732
10733
  }
10733
10734
  if (!token) {
10734
- reject(new Error(`Captured no yellow token text from claude setup-token output (raw=${raw.length}b \u2014 is the terminal emitting color?)`));
10735
+ const reason = raw.length < 200 ? OAUTH_HINT : `is the terminal emitting color? (captured ${raw.length}b but no token-yellow run)`;
10736
+ reject(new Error(`Captured no setup token from claude setup-token output. ${reason}`));
10735
10737
  return;
10736
10738
  }
10737
10739
  resolve4(token);
@@ -11410,7 +11412,7 @@ function writeConfigEnv(opts) {
11410
11412
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
11411
11413
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
11412
11414
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
11413
- `SYNKRO_VERSION=${shellQuoteSingle("1.6.99")}`
11415
+ `SYNKRO_VERSION=${shellQuoteSingle("1.6.100")}`
11414
11416
  ];
11415
11417
  if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
11416
11418
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
@@ -15473,7 +15475,7 @@ var args = process.argv.slice(2);
15473
15475
  var cmd = args[0] || "";
15474
15476
  var subArgs = args.slice(1);
15475
15477
  function printVersion() {
15476
- console.log("1.6.99");
15478
+ console.log("1.6.100");
15477
15479
  }
15478
15480
  function printHelp2() {
15479
15481
  console.log(`Synkro CLI \u2014 runtime safety for AI coding agents