feat: add query CLI command for querying .nitpicker archives#58
Merged
YusukeHirao merged 5 commits intomainfrom Mar 16, 2026
Merged
feat: add query CLI command for querying .nitpicker archives#58YusukeHirao merged 5 commits intomainfrom
YusukeHirao merged 5 commits intomainfrom
Conversation
Exposes @nitpicker/query functions via CLI sub-commands (summary, pages, page-detail, html, links, resources, images, violations, duplicates, mismatches, headers, resource-referrers). Outputs JSON to stdout. https://claude.ai/code/session_01RgcxfZHjSbBBcT7df5BymS
- Add toHaveBeenCalledWith assertions to dispatch-query tests for all sub-commands - Add dispatchQuery argument verification and ArchiveManager.open failure test to query command tests - Remove duplicate QueryFlags interface, reuse InferFlags<typeof commandDef.flags> - Wrap finally close in try/catch to prevent masking original errors - Use `as const satisfies` for VALID_SUB_COMMANDS type safety - Add test cases for duplicates with custom field/limit and mismatches with limit/offset https://claude.ai/code/session_01RgcxfZHjSbBBcT7df5BymS
… CLI - Add default exhaustive check (never) to dispatchQuery and mapFlagsToQueryOptions switch statements - Add test for html sub-command with maxLength flag - Add test for headers sub-command with missingOnly flag - Add tests for relative and absolute file path resolution in query command https://claude.ai/code/session_01RgcxfZHjSbBBcT7df5BymS
…d CLAUDE The query command was added in the previous commits but documentation was not updated. This adds comprehensive usage documentation including all 12 sub-commands, option tables, and examples. https://claude.ai/code/session_01RgcxfZHjSbBBcT7df5BymS
…command-a34tb # Conflicts: # packages/@nitpicker/cli/package.json # yarn.lock
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.
Exposes @nitpicker/query functions via CLI sub-commands (summary, pages,
page-detail, html, links, resources, images, violations, duplicates,
mismatches, headers, resource-referrers). Outputs JSON to stdout.
https://claude.ai/code/session_01RgcxfZHjSbBBcT7df5BymS