fix(native): harden command capture edge cases

This commit is contained in:
N0zoM1z0
2026-07-14 16:53:47 +08:00
parent 446a1e5799
commit d39f98d06d
4 changed files with 95 additions and 9 deletions
+4 -2
View File
@@ -16,8 +16,10 @@ export interface NativeCommandCapture {
readonly stderr: string;
readonly stdoutBytes: number;
readonly stderrBytes: number;
readonly stdoutTruncated: boolean;
readonly stderrTruncated: boolean;
/** Successful captures are exhaustive; output-limit exits return a failure. */
readonly stdoutTruncated: false;
/** Successful captures are exhaustive; output-limit exits return a failure. */
readonly stderrTruncated: false;
readonly exitCode: number | null;
readonly signal: string | null;
}