@geravant/sinain 1.0.11 → 1.0.12
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 +4 -2
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -121,8 +121,10 @@ async function installNemoClaw({ sandboxName }) {
|
|
|
121
121
|
|
|
122
122
|
const token = cfg.gateway?.auth?.token ?? "(see sandbox openclaw.json)";
|
|
123
123
|
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
const jsonContent = JSON.stringify(cfg, null, 2);
|
|
125
|
+
// openshell upload always treats destination as a directory, so use SSH to write the file directly
|
|
126
|
+
const encoded = Buffer.from(jsonContent).toString("base64");
|
|
127
|
+
run(`ssh -T openshell-${sandboxName} "printf '%s' '${encoded}' | base64 --decode > /sandbox/.openclaw/openclaw.json"`);
|
|
126
128
|
fs.rmSync(tmpDir, { recursive: true, force: true });
|
|
127
129
|
console.log(" ✓ openclaw.json patched in sandbox");
|
|
128
130
|
|