yaver-cli 1.99.226 → 1.99.228
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/package.json +1 -1
- package/src/postinstall.js +10 -3
package/package.json
CHANGED
package/src/postinstall.js
CHANGED
|
@@ -141,18 +141,25 @@ function ensureLinuxRunnerSandboxPackages() {
|
|
|
141
141
|
const missing = [];
|
|
142
142
|
if (!commandExists("bwrap")) missing.push("bubblewrap");
|
|
143
143
|
if (!commandExists("newuidmap")) missing.push("uidmap");
|
|
144
|
+
// tmux is a core Yaver dependency — /spatial 3-pane terminal layout
|
|
145
|
+
// attaches to it via /ws/terminal, and the mobile Terminal tab uses
|
|
146
|
+
// it the same way. Without tmux, the trio user (Cagri-style: Linux
|
|
147
|
+
// remote dev + phone + glasses + keyboard) sees empty panes until
|
|
148
|
+
// they ssh in and `apt install tmux`. Bundling tmux into the same
|
|
149
|
+
// auto-install pass as the runner sandbox deps closes that gap.
|
|
150
|
+
if (!commandExists("tmux")) missing.push("tmux");
|
|
144
151
|
if (missing.length === 0) return;
|
|
145
152
|
if (!commandExists("apt-get")) {
|
|
146
|
-
log(`
|
|
153
|
+
log(`Linux packages missing (${missing.join(", ")}) and no apt-get is available for auto-install. Run: \`yaver install tmux\` (or your distro's equivalent for the rest).`);
|
|
147
154
|
return;
|
|
148
155
|
}
|
|
149
156
|
execSync("apt-get update -y", { stdio: ["ignore", "ignore", "ignore"] });
|
|
150
157
|
execSync(`DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ${missing.join(" ")}`, {
|
|
151
158
|
stdio: "inherit",
|
|
152
159
|
});
|
|
153
|
-
log(`Installed Linux
|
|
160
|
+
log(`Installed Linux packages: ${missing.join(", ")}.`);
|
|
154
161
|
} catch (error) {
|
|
155
|
-
log(`Skipping Linux
|
|
162
|
+
log(`Skipping Linux package bootstrap: ${error.message}`);
|
|
156
163
|
}
|
|
157
164
|
}
|
|
158
165
|
|