@synkro-sh/cli 1.6.71 → 1.6.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 +14 -2
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -10386,7 +10386,7 @@ function writeConfigEnv(opts) {
|
|
|
10386
10386
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
10387
10387
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
10388
10388
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
10389
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.6.
|
|
10389
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.6.72")}`
|
|
10390
10390
|
];
|
|
10391
10391
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
10392
10392
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
@@ -10560,6 +10560,16 @@ async function verifyCloudGrader(jwt2) {
|
|
|
10560
10560
|
return false;
|
|
10561
10561
|
}
|
|
10562
10562
|
console.log(` \u2713 ${healthy} Claude worker(s) healthy`);
|
|
10563
|
+
console.log(" Running smoke grade (a worker scores a known-risky edit; up to 120s)...");
|
|
10564
|
+
const started = Date.now();
|
|
10565
|
+
const ticker = setInterval(() => {
|
|
10566
|
+
const secs = Math.round((Date.now() - started) / 1e3);
|
|
10567
|
+
process.stdout.write(`\r \u2026grading (${secs}s elapsed) `);
|
|
10568
|
+
}, 1e3);
|
|
10569
|
+
const stopTicker = () => {
|
|
10570
|
+
clearInterval(ticker);
|
|
10571
|
+
process.stdout.write("\r\x1B[2K");
|
|
10572
|
+
};
|
|
10563
10573
|
try {
|
|
10564
10574
|
const probe = 'Grade this edit. File: t.py. Change: os.system(request.args["cmd"])';
|
|
10565
10575
|
const r = await fetch(`${base}/grade/submit`, {
|
|
@@ -10568,6 +10578,7 @@ async function verifyCloudGrader(jwt2) {
|
|
|
10568
10578
|
body: JSON.stringify({ role: "grade-edit", payload: probe, content: probe, agent_kind: "claude_code" }),
|
|
10569
10579
|
signal: AbortSignal.timeout(12e4)
|
|
10570
10580
|
});
|
|
10581
|
+
stopTicker();
|
|
10571
10582
|
const raw = await r.text();
|
|
10572
10583
|
let body = {};
|
|
10573
10584
|
try {
|
|
@@ -10591,6 +10602,7 @@ async function verifyCloudGrader(jwt2) {
|
|
|
10591
10602
|
await printWorkerDebug(base, jwt2);
|
|
10592
10603
|
return false;
|
|
10593
10604
|
} catch (e) {
|
|
10605
|
+
stopTicker();
|
|
10594
10606
|
const reason = e?.name === "TimeoutError" ? "the grade never returned within 120s (worker hung \u2014 usually claude auth)" : `the request failed (${e?.message || "network"})`;
|
|
10595
10607
|
console.warn(` \u2717 smoke grade FAILED: ${reason}.`);
|
|
10596
10608
|
console.warn(" The container is provisioned but a grade does not complete; re-run `synkro install` \u2192 cloud.\n");
|
|
@@ -14019,7 +14031,7 @@ var args = process.argv.slice(2);
|
|
|
14019
14031
|
var cmd = args[0] || "";
|
|
14020
14032
|
var subArgs = args.slice(1);
|
|
14021
14033
|
function printVersion() {
|
|
14022
|
-
console.log("1.6.
|
|
14034
|
+
console.log("1.6.72");
|
|
14023
14035
|
}
|
|
14024
14036
|
function printHelp2() {
|
|
14025
14037
|
console.log(`Synkro CLI \u2014 runtime safety for AI coding agents
|