Repository navigation
feat: startup validation (config, --url, --cmd), --version, query/filter docs - #6
Merged
Merged
Conversation
…d --version/-V (log-cli-nm2.1, log-cli-w0b.9) config.ts now distinguishes ENOENT / JSON / zod errors. Explicit --config throws a typed ConfigError (lib never exits); main.tsx catches it at both the summary and interactive call sites via exitWithMessage. Malformed auto-discovered files warn on stderr and use defaults; none found is silent. --version/-V early-exits before the non-TTY summary gate, so a piped call does not wait on stdin. Both share main.tsx's early-exit block, hence one commit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…p (log-cli-nm2.6) new URL() throws on bad input; it is caught and turned into a clean validation error. resolveSources now keeps empty --url/--cmd values so they reach validation instead of silently falling through to stdin. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…g errors, --version (log-cli-w0b.1, log-cli-w0b.2) Query/filter bar hint text no longer implies interchangeable syntax. README also documents the new config error handling (nm2.1), source validation (nm2.6) and --version (w0b.9). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Batch B of the backlog sweep: startup robustness and docs.
config.tsnow tells ENOENT, JSON-parse and zod errors apart. An explicit--configthrows a typedConfigError. The library never callsprocess.exit.main.tsxcatches the error at both the summary and the interactive call sites and callsexitWithMessage. A malformed auto-discovered config prints a warning to stderr and the defaults are used. When no config exists, nothing is printed.validateSourcesaccepts only http and https for--url, and turns a throwingnew URL()into a clean error. It also rejects an empty--cmd. An empty--urlor--cmdvalue used to fall through to stdin; now it reaches validation.--version/-V. The version check exits before the non-TTY summary gate, so a piped call does not hang. An e2e test covers this.QueryBarandFilterBarno longer suggests the syntax is interchangeable.docs/sessions/2026-11-14-backlog-sweep/FOLLOWUPS.md.Verification: tested by hand, both piped and in a TTY (via
script).--version,--config missing.jsonc/ bad JSON / wrong type,--url ftp://x,--url notaurland--cmd ''all behave as expected. Typecheck is clean, lint has 0 errors, 104/104 tests pass, and the build succeeds.This PR is independent of #5. Both branch from main.
🤖 Generated with Claude Code