@superhq/shuru 0.4.0 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superhq/shuru",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/sandbox.ts CHANGED
@@ -199,6 +199,7 @@ export function buildArgs(bin: string, opts: StartOptions): string[] {
199
199
  if (opts.memory) args.push("--memory", String(opts.memory));
200
200
  if (opts.diskSize) args.push("--disk-size", String(opts.diskSize));
201
201
  if (opts.allowNet) args.push("--allow-net");
202
+ if (opts.allowHostWrites) args.push("--allow-host-writes");
202
203
 
203
204
  if (opts.secrets) {
204
205
  for (const [name, secret] of Object.entries(opts.secrets)) {
package/src/types.ts CHANGED
@@ -16,7 +16,10 @@ export interface StartOptions {
16
16
  memory?: number;
17
17
  diskSize?: number;
18
18
  allowNet?: boolean;
19
+ /** Allow :rw mounts to write to host filesystem. Default: false. */
20
+ allowHostWrites?: boolean;
19
21
  ports?: string[];
22
+ /** Directory mounts. Key is host path, value is guest path or guest path with mode suffix (e.g. "/workspace" or "/workspace:rw"). */
20
23
  mounts?: Record<string, string>;
21
24
  secrets?: Record<string, SecretConfig>;
22
25
  network?: NetworkConfig;