@atolis-hq/wake 0.3.61 → 0.3.62
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.
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { execa } from 'execa';
|
|
2
|
+
// Agent CLIs can emit arbitrarily large machine-readable transcripts. Wake
|
|
3
|
+
// retains their complete result only after the process exits, so cap capture
|
|
4
|
+
// below the resident's heap limit and surface the existing output-limit failure.
|
|
5
|
+
const maximumCapturedProcessOutputBytes = 1024 * 1024;
|
|
2
6
|
export function runProcess(command, args, cwd, signal, timeoutMs) {
|
|
3
7
|
const child = execa(command, args, {
|
|
4
8
|
...(cwd === undefined ? {} : { cwd }),
|
|
@@ -6,6 +10,7 @@ export function runProcess(command, args, cwd, signal, timeoutMs) {
|
|
|
6
10
|
stdin: 'ignore',
|
|
7
11
|
stdout: 'pipe',
|
|
8
12
|
stderr: 'pipe',
|
|
13
|
+
maxBuffer: maximumCapturedProcessOutputBytes,
|
|
9
14
|
cancelSignal: signal,
|
|
10
15
|
...(timeoutMs === undefined ? {} : { timeout: timeoutMs }),
|
|
11
16
|
reject: false,
|