@openclaw/openshell-sandbox 2026.5.24-beta.2 → 2026.5.26-beta.1
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/index.js +6 -6
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
2
|
-
import {
|
|
2
|
+
import { buildValidatedExecRemoteCommand, createRemoteShellSandboxFsBridge, createSshSandboxSessionFromConfigText, createWritableRenameTargetResolver, disposeSshSandboxSession, registerSandboxBackend, resolvePreferredOpenClawTmpDir, runPluginCommandWithTimeout, runSshSandboxCommand, sanitizeEnvVars, shellEscape, withTempWorkspace } from "openclaw/plugin-sdk/sandbox";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -621,15 +621,15 @@ var OpenShellSandboxBackendImpl = class {
|
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
623
|
async prepareExec(params) {
|
|
624
|
-
|
|
625
|
-
if (this.params.execContext.config.mode === "mirror") await this.syncWorkspaceToRemote();
|
|
626
|
-
else await this.maybeSeedRemoteWorkspace();
|
|
627
|
-
const sshSession = await createOpenShellSshSession({ context: this.params.execContext });
|
|
628
|
-
const remoteCommand = buildExecRemoteCommand({
|
|
624
|
+
const remoteCommand = buildValidatedExecRemoteCommand({
|
|
629
625
|
command: params.command,
|
|
630
626
|
workdir: params.workdir ?? this.params.remoteWorkspaceDir,
|
|
631
627
|
env: params.env
|
|
632
628
|
});
|
|
629
|
+
await this.ensureSandboxExists();
|
|
630
|
+
if (this.params.execContext.config.mode === "mirror") await this.syncWorkspaceToRemote();
|
|
631
|
+
else await this.maybeSeedRemoteWorkspace();
|
|
632
|
+
const sshSession = await createOpenShellSshSession({ context: this.params.execContext });
|
|
633
633
|
return {
|
|
634
634
|
argv: [
|
|
635
635
|
"ssh",
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/openshell-sandbox",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.26-beta.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/openshell-sandbox",
|
|
9
|
-
"version": "2026.5.
|
|
9
|
+
"version": "2026.5.26-beta.1",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"zod": "4.4.3"
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/openshell-sandbox",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.26-beta.1",
|
|
4
4
|
"description": "OpenClaw sandbox backend for the NVIDIA OpenShell CLI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"minHostVersion": ">=2026.5.12-beta.1"
|
|
21
21
|
},
|
|
22
22
|
"compat": {
|
|
23
|
-
"pluginApi": ">=2026.5.
|
|
23
|
+
"pluginApi": ">=2026.5.26-beta.1"
|
|
24
24
|
},
|
|
25
25
|
"build": {
|
|
26
|
-
"openclawVersion": "2026.5.
|
|
26
|
+
"openclawVersion": "2026.5.26-beta.1",
|
|
27
27
|
"bundledDist": false
|
|
28
28
|
},
|
|
29
29
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"npm-shrinkwrap.json"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.5.
|
|
43
|
+
"openclaw": ">=2026.5.26-beta.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|