@synkro-sh/cli 1.6.39 → 1.6.40
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 +22 -18
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -8261,7 +8261,7 @@ function writeConfigEnv(opts) {
|
|
|
8261
8261
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
8262
8262
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
8263
8263
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
8264
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.6.
|
|
8264
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.6.40")}`
|
|
8265
8265
|
];
|
|
8266
8266
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
8267
8267
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
@@ -11117,27 +11117,31 @@ async function updateCommand() {
|
|
|
11117
11117
|
async function restartCommand(rest = []) {
|
|
11118
11118
|
assertDockerAvailable();
|
|
11119
11119
|
const cfg = resolveWorkerConfig(rest);
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
process.exit(1);
|
|
11120
|
+
let claudeWorkers = cfg.claudeWorkers;
|
|
11121
|
+
let cursorWorkers = cfg.cursorWorkers;
|
|
11122
|
+
if (!cfg.explicit) {
|
|
11123
|
+
const reconciled = reconcileHarness();
|
|
11124
|
+
if (reconciled) {
|
|
11125
|
+
claudeWorkers = reconciled.claudeWorkers;
|
|
11126
|
+
cursorWorkers = reconciled.cursorWorkers;
|
|
11128
11127
|
}
|
|
11129
|
-
console.log("\nServer restarted successfully.");
|
|
11130
|
-
return;
|
|
11131
11128
|
}
|
|
11132
|
-
console.log(
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11129
|
+
console.log(`Synkro: restarting server (${claudeWorkers} claude + ${cursorWorkers} cursor)
|
|
11130
|
+
`);
|
|
11131
|
+
await dockerUpdate({ claudeWorkers, cursorWorkers, connectedRepo: resolveConnectedRepo() });
|
|
11132
|
+
const ready = await waitForContainerReady(6e4);
|
|
11133
|
+
if (!ready) {
|
|
11134
|
+
console.error("\n\u26A0 container did not pass /healthz within 60s");
|
|
11138
11135
|
process.exit(1);
|
|
11139
11136
|
}
|
|
11140
11137
|
console.log("\nServer restarted successfully.");
|
|
11138
|
+
const workersUp = await waitForWorkersReady(3e4);
|
|
11139
|
+
if (workersUp) {
|
|
11140
|
+
console.log("\u2713 workers ready");
|
|
11141
|
+
await syncSkillFiles();
|
|
11142
|
+
} else {
|
|
11143
|
+
console.warn("\u26A0 workers did not register within 30s \u2014 skill sync skipped");
|
|
11144
|
+
}
|
|
11141
11145
|
}
|
|
11142
11146
|
var init_lifecycle = __esm({
|
|
11143
11147
|
"cli/commands/lifecycle.ts"() {
|
|
@@ -11320,7 +11324,7 @@ var args = process.argv.slice(2);
|
|
|
11320
11324
|
var cmd = args[0] || "";
|
|
11321
11325
|
var subArgs = args.slice(1);
|
|
11322
11326
|
function printVersion() {
|
|
11323
|
-
console.log("1.6.
|
|
11327
|
+
console.log("1.6.40");
|
|
11324
11328
|
}
|
|
11325
11329
|
function printHelp2() {
|
|
11326
11330
|
console.log(`Synkro CLI \u2014 runtime safety for AI coding agents
|