@synkro-sh/cli 1.4.4 → 1.4.5
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 +32 -8
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -3890,12 +3890,31 @@ async function waitForChannelReady(port, timeoutMs = 6e4, host = "127.0.0.1") {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
return probePort(host, port);
|
|
3892
3892
|
}
|
|
3893
|
+
function brewInstall(pkg) {
|
|
3894
|
+
const brew = spawnSync2("brew", ["--version"], { encoding: "utf-8" });
|
|
3895
|
+
if (brew.status !== 0) return false;
|
|
3896
|
+
console.log(` Installing ${pkg} via brew...`);
|
|
3897
|
+
const r = spawnSync2("brew", ["install", pkg], { encoding: "utf-8", stdio: "inherit", timeout: 12e4 });
|
|
3898
|
+
return r.status === 0;
|
|
3899
|
+
}
|
|
3893
3900
|
function assertPueueInstalled() {
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3901
|
+
let r = spawnSync2("pueue", ["--version"], { encoding: "utf-8" });
|
|
3902
|
+
if (r.status !== 0) {
|
|
3903
|
+
if (process.platform === "darwin" && brewInstall("pueue")) {
|
|
3904
|
+
r = spawnSync2("pueue", ["--version"], { encoding: "utf-8" });
|
|
3905
|
+
if (r.status !== 0) throw new PueueError("pueue install succeeded but binary not found on PATH.");
|
|
3906
|
+
} else {
|
|
3907
|
+
throw new PueueError("pueue not found. Install it: brew install pueue (macOS) or https://github.com/Nukesor/pueue");
|
|
3908
|
+
}
|
|
3909
|
+
}
|
|
3910
|
+
const status = spawnSync2("pueue", ["status", "--json"], { encoding: "utf-8" });
|
|
3911
|
+
if (status.status !== 0) {
|
|
3912
|
+
console.log(" Starting pueued daemon...");
|
|
3913
|
+
spawnSync2("pueued", ["-d"], { encoding: "utf-8" });
|
|
3914
|
+
const retry = spawnSync2("pueue", ["status", "--json"], { encoding: "utf-8" });
|
|
3915
|
+
if (retry.status !== 0) {
|
|
3916
|
+
throw new PueueError("pueue daemon not reachable after starting pueued. Check `pueued` manually.");
|
|
3917
|
+
}
|
|
3899
3918
|
}
|
|
3900
3919
|
}
|
|
3901
3920
|
function assertClaudeInstalled() {
|
|
@@ -3905,9 +3924,14 @@ function assertClaudeInstalled() {
|
|
|
3905
3924
|
}
|
|
3906
3925
|
}
|
|
3907
3926
|
function assertTmuxInstalled() {
|
|
3908
|
-
|
|
3927
|
+
let r = spawnSync2("tmux", ["-V"], { encoding: "utf-8" });
|
|
3909
3928
|
if (r.status !== 0) {
|
|
3910
|
-
|
|
3929
|
+
if (process.platform === "darwin" && brewInstall("tmux")) {
|
|
3930
|
+
r = spawnSync2("tmux", ["-V"], { encoding: "utf-8" });
|
|
3931
|
+
if (r.status !== 0) throw new PueueError("tmux install succeeded but binary not found on PATH.");
|
|
3932
|
+
} else {
|
|
3933
|
+
throw new PueueError("tmux not found. Install it: brew install tmux (macOS) or apt install tmux (Linux)");
|
|
3934
|
+
}
|
|
3911
3935
|
}
|
|
3912
3936
|
}
|
|
3913
3937
|
var TASK_LABEL, TMUX_SESSION, SESSION_DIR2, PueueError;
|
|
@@ -4302,7 +4326,7 @@ function writeConfigEnv(opts) {
|
|
|
4302
4326
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
4303
4327
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
4304
4328
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
4305
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.4.
|
|
4329
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.4.5")}`
|
|
4306
4330
|
];
|
|
4307
4331
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
4308
4332
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|