@geravant/sinain 1.0.12 → 1.0.13
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/install.js +6 -6
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -116,8 +116,7 @@ async function installNemoClaw({ sandboxName }) {
|
|
|
116
116
|
cfg.agents.defaults ??= {};
|
|
117
117
|
cfg.agents.defaults.sandbox ??= {};
|
|
118
118
|
cfg.agents.defaults.sandbox.sessionToolsVisibility = "all";
|
|
119
|
-
|
|
120
|
-
// NemoClaw: gateway bind/auth are managed by OpenShell — do not overwrite them
|
|
119
|
+
// NemoClaw: gateway bind/auth and compaction are managed by OpenShell — do not overwrite them
|
|
121
120
|
|
|
122
121
|
const token = cfg.gateway?.auth?.token ?? "(see sandbox openclaw.json)";
|
|
123
122
|
|
|
@@ -141,12 +140,13 @@ async function installNemoClaw({ sandboxName }) {
|
|
|
141
140
|
}
|
|
142
141
|
}
|
|
143
142
|
|
|
144
|
-
//
|
|
143
|
+
// Restart openclaw gateway inside sandbox (kill existing PID + start fresh)
|
|
145
144
|
try {
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
// Find the gateway PID, kill it, then start a new instance detached
|
|
146
|
+
run_capture(`ssh -T openshell-${sandboxName} 'pid=$(ss -tlnp 2>/dev/null | awk -F"pid=" "/18789/{print \\$2}" | cut -d, -f1); [ -n "$pid" ] && kill "$pid"; nohup openclaw gateway > /tmp/oc-gateway.log 2>&1 &'`);
|
|
147
|
+
console.log(" ✓ Gateway restarted");
|
|
148
148
|
} catch {
|
|
149
|
-
console.warn(" ⚠ Could not
|
|
149
|
+
console.warn(" ⚠ Could not restart gateway — it will pick up changes on next start");
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
console.log(`
|