@zenera/sandbox 1.3.28 → 1.3.29

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/bwrap.js CHANGED
@@ -188,6 +188,7 @@ export class BwrapSandbox {
188
188
  timeoutMs: this.#timeout(opts.timeout),
189
189
  signal,
190
190
  env: this.#env(),
191
+ maxBytes: opts.maxBytes,
191
192
  });
192
193
  refuseSetupFailure(res);
193
194
  return {
@@ -180,6 +180,8 @@ export interface ExecOptions {
180
180
  /** seconds; the spec's default otherwise */
181
181
  timeout?: number;
182
182
  signal?: AbortSignal;
183
+ /** `exec` only: the bytes kept of stdout and of stderr each, 64 KB otherwise */
184
+ maxBytes?: number;
183
185
  }
184
186
  export interface ExecResult {
185
187
  exit_code: number;
package/dist/podman.js CHANGED
@@ -227,6 +227,7 @@ export class PodmanSandbox {
227
227
  input: command,
228
228
  timeoutMs,
229
229
  signal: opts.signal,
230
+ maxBytes: opts.maxBytes,
230
231
  });
231
232
  let res = await once();
232
233
  if (gone(res)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenera/sandbox",
3
- "version": "1.3.28",
3
+ "version": "1.3.29",
4
4
  "description": "Where an agent's commands run and the files they see: the Sandbox contract, podman and bubblewrap implementations, filesystem drivers and a contract test suite for other implementations.",
5
5
  "keywords": [
6
6
  "sandbox",