Skip to content

fix(cli): reject mixed stdin list inputs - #18

Merged
ralyodio merged 1 commit into
moshcoder:mainfrom
aiirvizionz:fix/list-stdin-marker
Aug 10, 2026
Merged

fix(cli): reject mixed stdin list inputs#18
ralyodio merged 1 commit into
moshcoder:mainfrom
aiirvizionz:fix/list-stdin-marker

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • reject list invocations that mix the stdin marker - with inline entries
  • prevent silent data loss when an inline item follows -
  • reuse the existing machine-readable validation error used by check and parse

Verification

  • npm.cmd test (52 tests passed)
  • node --test --test-name-pattern "NDJSON validation errors stay machine-readable" test/cli.test.mjs
  • git diff --check

@ralyodio
ralyodio merged commit d631fae into moshcoder:main Aug 10, 2026
2 checks passed
ralyodio added a commit to aiirvizionz/moshpit-name that referenced this pull request Aug 10, 2026
PR moshcoder#18 added a mixed-stdin-input guard to the list command while this
branch swapped its unbounded readStdin() for the bounded
readCommandStdin(). Keep both: reject mixed inputs first, then read
stdin under the 1 MiB / MAX_BULK_TLDS caps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants