@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.
Files changed (2) hide show
  1. package/install.js +4 -2
  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
- fs.writeFileSync(tmpJson, JSON.stringify(cfg, null, 2));
125
- run(`openshell sandbox upload ${sandboxName} "${tmpJson}" /sandbox/.openclaw/openclaw.json`);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geravant/sinain",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "sinain OpenClaw plugin — AI overlay for macOS",
5
5
  "type": "module",
6
6
  "bin": {