|
|
@@ -93,7 +93,7 @@ jq . data.json # bare command: enabled packages are symlinked to
|
|
|
- Newly installed tools are invoked with the `x <pkg>` prefix in the current session; bare commands become available after the container restarts
|
|
|
- Tools come from the x-cmd package source (Alibaba Cloud OSS, reachable from mainland China) and support version management (`x env use node=v20`)
|
|
|
|
|
|
-**Sandbox caveat**: x-cmd writes to `~/.x-cmd.root` (inside the data volume) to run. The file sandbox (workspace-write) only permits writes inside the session workspace plus `/tmp`, so this directory is not writable: under a bwrap sandbox `x` refuses to start with `folder defined ___X_CMD_ROOT specified is not writable`; under the Landlock sandbox (this image ships no bwrap) `x` starts but every write — `x env use`, `x env ls` — fails with `permission denied`. Either way the agent must request full permissions (approval), or pick `/home/node` as the session workspace, to use x-cmd normally.
|
|
|
+**Sandbox caveat**: x-cmd writes to `~/.x-cmd.root` (inside the data volume) to run. The file sandbox (workspace-write) only permits writes inside the session workspace plus `/tmp`, so this directory is not writable: under a bwrap sandbox `x` refuses to start with `folder defined ___X_CMD_ROOT specified is not writable`; under the Landlock sandbox (this image ships no bwrap) `x` starts and read-only use works — built-in modules (`x version`, `x passwd`) and already-enabled or cached packages (`x <pkg>`, symlinked bare commands) — but installing/enabling new packages fails: `x env use` errors with `permission denied`, `x env ls` silently returns empty. To install new tools the agent must request full permissions (approval), or pick `/home/node` as the session workspace.
|
|
|
|
|
|
For the in-container agent environment guide, see `AGENTS.md` in the data volume (auto-loaded by dsh sessions).
|
|
|
|