effect(core): track stderr truncation; polish AppProcess callers (#27353)

This commit is contained in:
Kit Langton
2026-05-13 20:31:03 -04:00
committed by GitHub
parent ccb207f946
commit 42e6b7d541
5 changed files with 30 additions and 8 deletions

View File

@@ -31,7 +31,8 @@ export interface RunResult {
readonly exitCode: number
readonly stdout: Buffer
readonly stderr: Buffer
readonly truncated: boolean
readonly stdoutTruncated: boolean
readonly stderrTruncated: boolean
}
export type Interface = ChildProcessSpawner["Service"] & {
@@ -147,7 +148,8 @@ export const layer = Layer.effect(
exitCode,
stdout: stdout.buffer,
stderr: stderr.buffer,
truncated: stdout.truncated,
stdoutTruncated: stdout.truncated,
stderrTruncated: stderr.truncated,
} satisfies RunResult
}),
)