Repository navigation
fix(cli): reject malformed IDs and preserve TSID batch sequencing - #112
Merged
Merged
Conversation
This was referenced Nov 15, 2026
Contributor
|
Preview removed because the pull request was closed. |
commit: |
jkomyno
force-pushed
the
fix/cli-inspection-errors
branch
2 times, most recently
from
November 15, 2026 20:54
777ae34 to
653e3f2
Compare
jkomyno
force-pushed
the
fix/cli-inspection-errors
branch
from
November 15, 2026 20:55
653e3f2 to
b223237
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
uniku inspect not-an-id --type ulid --jsonnow exits with code 1, leaves stdout empty, and writes a structuredINVALID_IDerror to stderr. Explicitly selecting UUID, CUID, or another format also validates the input instead of accepting malformed values; decoder failures use the CLI's typed error path.Configured TSID batches use the library sequence from #111, preserving uniqueness across successive calls. Fixed-timestamp batches retain one node identity while stepping their counter and timestamp.
Final PR in the stack: #110 → #111 → this PR.
Validation: 280 CLI tests pass, including malformed inspection for all nine selectable types and repeated TSID batches. Built-bin checks confirm empty stdout, structured JSON stderr, and exit code 1 for malformed ULID, UUID, and CUID input. Package suites pass on Node 22.12.0 and Node 24.22.3; repository type checks and lint pass.