mirror of
https://github.com/morluto/rea.git
synced 2026-11-09 08:17:02 +00:00
* fix(native): bound captured output carried by native command failures The native command runner retains up to 64 MiB of output because successful analysis needs it complete, and failureCapture copied all of it into the failure. An inspect_plist whose plutil output exceeded the budget therefore returned a 67 MB resource_constraint error whose details.captured_output.stdout repeated the whole retained output. Keep a 64 KiB UTF-8-safe excerpt per stream in failure diagnostics, mark them truncated, and keep the observed stdout/stderr byte totals. Successful captures are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(native): bound codesign failures and cover excerpt cuts translateCodeSignExitFailure wrapped an accepted nonzero codesign capture into a NativeCommandFailure by copying both complete streams, so inspect_signature failures still bypassed the diagnostic bound. Route it through the shared failureCapture builder; accepted output stays complete until the provider decides it is a failure. Add a focused runner test for an ordinary nonzero exit with stdout and stderr just above the excerpt size and a two-byte character straddling the cut, and a provider test for the codesign path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(native): build excerpt test output inside the child process The output strings embedded in one node -e argument totalled about 133 KB, above Linux's 128 KiB per-argument limit, so spawn failed with E2BIG on the CI runner. Generate the repeated output in the child instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>