@synkro-sh/cli 1.6.75 → 1.6.76

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
@@ -10592,7 +10592,7 @@ function writeConfigEnv(opts) {
10592
10592
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
10593
10593
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
10594
10594
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
10595
- `SYNKRO_VERSION=${shellQuoteSingle("1.6.75")}`
10595
+ `SYNKRO_VERSION=${shellQuoteSingle("1.6.76")}`
10596
10596
  ];
10597
10597
  if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
10598
10598
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
@@ -10738,6 +10738,9 @@ async function printWorkerDebug(base, jwt2) {
10738
10738
  `);
10739
10739
  return;
10740
10740
  }
10741
+ if (d.grader_error_code) {
10742
+ console.warn(` \u25B8 DIAGNOSIS [${d.grader_error_code}]: ${d.grader_error_detail || ""}`);
10743
+ }
10741
10744
  for (const w of d.workers.slice(0, 2)) {
10742
10745
  console.warn(` [${w.worker}] launcher log:`);
10743
10746
  for (const l of String(w.logTail || "").split("\n").filter((l2) => l2.trim()).slice(-6)) console.warn(" " + l.slice(0, 240));
@@ -10815,14 +10818,16 @@ async function verifyCloudGrader(jwt2) {
10815
10818
  }
10816
10819
  const detail = (body.error || raw || "").trim().slice(0, 300) || "(empty response)";
10817
10820
  console.warn(` \u2717 smoke grade FAILED (HTTP ${r.status}): ${detail}`);
10818
- if (/no grader worker ready/i.test(detail)) {
10821
+ if (body.error_code) {
10822
+ console.warn(` \u25B8 ${body.error_code}: ${body.hint || ""}`);
10823
+ } else if (/no grader worker ready/i.test(detail)) {
10819
10824
  console.warn(" \u2192 the worker pool never registered (cold-start, or the pool failed to boot).");
10820
10825
  } else if (/connection lost|network|502/i.test(detail)) {
10821
10826
  console.warn(" \u2192 the container dropped the connection mid-grade \u2014 the claude worker crashed or hung (most often a bad/expired setup-token).");
10822
10827
  } else {
10823
10828
  console.warn(" \u2192 the worker returned an error; most often a bad/expired Claude setup-token.");
10824
10829
  }
10825
- console.warn(" Re-run `synkro install` \u2192 cloud to re-authorize the hosted worker.\n");
10830
+ if (!body.error_code) console.warn(" Re-run `synkro install` \u2192 cloud to re-authorize the hosted worker.\n");
10826
10831
  await printWorkerDebug(base, jwt2);
10827
10832
  return false;
10828
10833
  } catch (e) {
@@ -14262,7 +14267,7 @@ var args = process.argv.slice(2);
14262
14267
  var cmd = args[0] || "";
14263
14268
  var subArgs = args.slice(1);
14264
14269
  function printVersion() {
14265
- console.log("1.6.75");
14270
+ console.log("1.6.76");
14266
14271
  }
14267
14272
  function printHelp2() {
14268
14273
  console.log(`Synkro CLI \u2014 runtime safety for AI coding agents