Lane: CLI/UX (sweep 3, F4)
stdin JSON detection is source.charAt(0) !== "{" (cli/pbjs.js:390); any leading whitespace/BOM routes pretty-printed JSON to the proto parser, which fails with a stack trace (reproduced: \n{...} on stdin → throw at pbjs.js:403, exit 1). Fix shape: trim/strip BOM before the sniff, or try-JSON-then-proto.
Verdicts: both Confirm, Worth exploring.
Upstream: no hits.
Decision question: Adopt the trim/BOM strip on the stdin path?
Lane: CLI/UX (sweep 3, F4)
stdin JSON detection is
source.charAt(0) !== "{"(cli/pbjs.js:390); any leading whitespace/BOM routes pretty-printed JSON to the proto parser, which fails with a stack trace (reproduced:\n{...}on stdin → throw atpbjs.js:403, exit 1). Fix shape: trim/strip BOM before the sniff, or try-JSON-then-proto.Verdicts: both Confirm, Worth exploring.
Upstream: no hits.
Decision question: Adopt the trim/BOM strip on the stdin path?