@synkro-sh/cli 1.7.71 → 1.7.73
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 +18 -5
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
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.
|
|
135
|
+
cliVersion = "1.7.73";
|
|
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
|
-
|
|
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.
|
|
6491
|
+
`SYNKRO_VERSION=${shellQuoteSingle2("1.7.73")}`
|
|
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.
|
|
7151
|
+
cli_version_to: "1.7.73",
|
|
7145
7152
|
agents_detected: agents.map((a) => a.kind),
|
|
7146
7153
|
with_github: false,
|
|
7147
7154
|
with_local_cc: false,
|
|
@@ -10586,6 +10593,12 @@ async function updateCommand() {
|
|
|
10586
10593
|
console.error("\n\u26A0 container did not pass its health check within 90s \u2014 check: docker logs synkro-server");
|
|
10587
10594
|
process.exit(1);
|
|
10588
10595
|
}
|
|
10596
|
+
try {
|
|
10597
|
+
writeHookScripts();
|
|
10598
|
+
console.log(" refreshed hook scripts");
|
|
10599
|
+
} catch (e) {
|
|
10600
|
+
console.warn(` \u26A0 could not refresh hook scripts: ${e.message} \u2014 run \`synkro install\` to update them`);
|
|
10601
|
+
}
|
|
10589
10602
|
console.log("\nSynkro updated \u2014 now running the latest version.");
|
|
10590
10603
|
}
|
|
10591
10604
|
async function restartCommand(rest = []) {
|
|
@@ -11037,7 +11050,7 @@ var subArgs = args.slice(1);
|
|
|
11037
11050
|
var isDetachedChild = process.env.SYNKRO_TELEMETRY_DETACHED === "1";
|
|
11038
11051
|
var FLUSH_SKIP = /* @__PURE__ */ new Set(["grade", "version", "--version", "-v", "help", "--help", "-h", ""]);
|
|
11039
11052
|
function printVersion() {
|
|
11040
|
-
console.log("1.7.
|
|
11053
|
+
console.log("1.7.73");
|
|
11041
11054
|
}
|
|
11042
11055
|
function printHelp2() {
|
|
11043
11056
|
console.log(`Synkro CLI \u2014 runtime safety for AI coding agents
|