switchroom 0.15.6 → 0.15.7
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/cli/switchroom.js
CHANGED
|
@@ -50204,8 +50204,8 @@ var {
|
|
|
50204
50204
|
} = import__.default;
|
|
50205
50205
|
|
|
50206
50206
|
// src/build-info.ts
|
|
50207
|
-
var VERSION = "0.15.
|
|
50208
|
-
var COMMIT_SHA = "
|
|
50207
|
+
var VERSION = "0.15.7";
|
|
50208
|
+
var COMMIT_SHA = "c0a8b988";
|
|
50209
50209
|
|
|
50210
50210
|
// src/cli/agent.ts
|
|
50211
50211
|
init_source();
|
|
@@ -85150,6 +85150,16 @@ networks:
|
|
|
85150
85150
|
# operator surface; the daemon's stderr lands in \`docker logs switchroom-hostd\`.
|
|
85151
85151
|
`;
|
|
85152
85152
|
}
|
|
85153
|
+
function resolveHostdHostHome(env2 = process.env, home2 = homedir48()) {
|
|
85154
|
+
const fromEnv = env2.SWITCHROOM_HOST_HOME?.trim();
|
|
85155
|
+
const resolved = fromEnv && fromEnv.length > 0 ? fromEnv : home2;
|
|
85156
|
+
if (resolved === "/host-home" || resolved.startsWith("/host-home/")) {
|
|
85157
|
+
throw new Error(`switchroom hostd install: refusing to generate \u2014 the host home resolved to ` + `"${resolved}", the in-container mount point of the operator home (never a valid ` + `host bind source). Emitting it would make Docker create empty /host-home dirs on ` + `the host and crash-loop hostd on a missing config mount.
|
|
85158
|
+
|
|
85159
|
+
` + `Recovery: run \`switchroom hostd install\` from the HOST shell (not inside the ` + `hostd container), or set SWITCHROOM_HOST_HOME to the real host home first.`);
|
|
85160
|
+
}
|
|
85161
|
+
return resolved;
|
|
85162
|
+
}
|
|
85153
85163
|
function hostdDir() {
|
|
85154
85164
|
return join82(homedir48(), ".switchroom", "hostd");
|
|
85155
85165
|
}
|
|
@@ -85193,7 +85203,7 @@ async function doInstall(opts, program3) {
|
|
|
85193
85203
|
const composePath = hostdComposePath();
|
|
85194
85204
|
mkdirSync47(dir, { recursive: true });
|
|
85195
85205
|
const yaml = renderHostdComposeFile({
|
|
85196
|
-
hostHome:
|
|
85206
|
+
hostHome: resolveHostdHostHome(),
|
|
85197
85207
|
imageTag: opts.tag ?? DEFAULT_IMAGE_TAG,
|
|
85198
85208
|
operatorUid: resolveOperatorUid()
|
|
85199
85209
|
});
|
package/package.json
CHANGED
|
@@ -53683,10 +53683,10 @@ function readTurnActiveMarkerAgeMs(stateDir, now) {
|
|
|
53683
53683
|
}
|
|
53684
53684
|
|
|
53685
53685
|
// ../src/build-info.ts
|
|
53686
|
-
var VERSION = "0.15.
|
|
53687
|
-
var COMMIT_SHA = "
|
|
53688
|
-
var COMMIT_DATE = "2026-06-
|
|
53689
|
-
var LATEST_PR =
|
|
53686
|
+
var VERSION = "0.15.7";
|
|
53687
|
+
var COMMIT_SHA = "c0a8b988";
|
|
53688
|
+
var COMMIT_DATE = "2026-06-12T04:28:04Z";
|
|
53689
|
+
var LATEST_PR = 2286;
|
|
53690
53690
|
var COMMITS_AHEAD_OF_TAG = 0;
|
|
53691
53691
|
|
|
53692
53692
|
// gateway/boot-version.ts
|