@synkro-sh/cli 1.7.71 → 1.7.72

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
@@ -132,7 +132,7 @@ function getIdentity() {
132
132
  if (cached2) return cached2;
133
133
  let cliVersion = "0.0.0";
134
134
  try {
135
- cliVersion = "1.7.71";
135
+ cliVersion = "1.7.72";
136
136
  } catch {
137
137
  }
138
138
  const creds = loadCredentialsIdentity();
@@ -2430,7 +2430,14 @@ export async function runStub(surface: string, opts: StubOpts = {}): Promise<voi
2430
2430
  if (tp && existsSync(tp)) {
2431
2431
  try {
2432
2432
  const t = readFileSync(tp, 'utf-8');
2433
- envelope.transcript = (opts.fullTranscript || t.length <= 200000) ? t : t.slice(t.length - 200000);
2433
+ // Cap the shipped transcript so the 3s Stop-hook sync COMPLETES even on huge sessions.
2434
+ // An unbounded full-transcript upload (100s of MB) is killed mid-upload by the hook
2435
+ // timeout, so the turn's final reply never lands (that was the "I don't see my latest
2436
+ // reply" gap). A 400KB tail still covers many recent turns including the final reply;
2437
+ // older turns were persisted by earlier syncs. Rows key on the stable CC uuid and order
2438
+ // by ts, so we no longer depend on the whole file for absolute message indices.
2439
+ const cap = opts.fullTranscript ? 400000 : 200000;
2440
+ envelope.transcript = t.length <= cap ? t : t.slice(t.length - cap);
2434
2441
  } catch {}
2435
2442
  }
2436
2443
  }
@@ -6481,7 +6488,7 @@ function writeConfigEnv(opts) {
6481
6488
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle2(credsPath)}`,
6482
6489
  `SYNKRO_TIER=${shellQuoteSingle2(safeTier)}`,
6483
6490
  `SYNKRO_INFERENCE=${shellQuoteSingle2(safeInference)}`,
6484
- `SYNKRO_VERSION=${shellQuoteSingle2("1.7.71")}`
6491
+ `SYNKRO_VERSION=${shellQuoteSingle2("1.7.72")}`
6485
6492
  ];
6486
6493
  if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle2(safeSynkroBin)}`);
6487
6494
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle2(safeUserId)}`);
@@ -7141,7 +7148,7 @@ async function installCommand(opts = {}) {
7141
7148
  await setTelemetryState({ enabled: true, remoteFlushEnabled: telemetryConsent });
7142
7149
  emit("install", {
7143
7150
  phase: "started",
7144
- cli_version_to: "1.7.71",
7151
+ cli_version_to: "1.7.72",
7145
7152
  agents_detected: agents.map((a) => a.kind),
7146
7153
  with_github: false,
7147
7154
  with_local_cc: false,
@@ -11037,7 +11044,7 @@ var subArgs = args.slice(1);
11037
11044
  var isDetachedChild = process.env.SYNKRO_TELEMETRY_DETACHED === "1";
11038
11045
  var FLUSH_SKIP = /* @__PURE__ */ new Set(["grade", "version", "--version", "-v", "help", "--help", "-h", ""]);
11039
11046
  function printVersion() {
11040
- console.log("1.7.71");
11047
+ console.log("1.7.72");
11041
11048
  }
11042
11049
  function printHelp2() {
11043
11050
  console.log(`Synkro CLI \u2014 runtime safety for AI coding agents