fix(native): preserve bridge failure types during cleanup

This commit is contained in:
morluto
2026-10-09 01:55:12 +08:00
parent 7c323870c2
commit 1d0baa352f
4 changed files with 165 additions and 21 deletions
+4 -3
View File
@@ -127,7 +127,8 @@ export const nativeCallEventSchema = z.strictObject({
backtrace: z.array(nativeCodeLocationSchema),
});
const capturedOutputSchema = z.strictObject({
/** Retained native output with explicit stream completeness and byte counts. */
export const nativeCapturedOutputSchema = z.strictObject({
text: z.string(),
/** Bytes observed by the bridge, not a total when complete is false. */
bytes: z.number().int().nonnegative(),
@@ -177,8 +178,8 @@ export const nativeCallObservationResultSchema = z.strictObject({
/** REA confirmed the process is gone when observation ended. */
terminated: z.boolean(),
elapsed_ms: z.number().nonnegative(),
stdout: capturedOutputSchema,
stderr: capturedOutputSchema,
stdout: nativeCapturedOutputSchema,
stderr: nativeCapturedOutputSchema,
/** Signal and exception stops LLDB reported; the process continued past each. */
other_stops: z.array(z.string()),
}),