feat: PDF figure extraction tool + CLI infrastructure (doctor, install) - #30
Merged
Conversation
Add pdf_extract_figures tool for extracting embedded images from PDFs via PyMuPDF with filtering (page, min_width, min_height, min_area). Add CLI infrastructure: - matrixx doctor — environment diagnostics and health checks (plugin, config, auth, runtime, optional tools) - matrixx install — setup wizard with --no-tui for CI/CD - bin entry point + package.json registration Update README with CLI reference, enhanced Quick Start, GitHub Star History chart, remove Philosophy section.
Add tests/tools/pdf-extract-figures/tools.test.ts, tests/cli/doctor/checks.test.ts, and tests/cli/install/index.test.ts to mock-heavy isolation lists in both ci.yml and publish.yml to prevent cross-file pollution from mock.module().
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.
Summary
PDF Figure Extraction Tool
New
pdf_extract_figuresplugin tool that extracts embedded images from PDFs using PyMuPDF:file_path(required),output_dir,page,min_width,min_height,min_area,json_onlyCLI Infrastructure
Built the CLI layer with two commands:
matrixx doctor— Environment Diagnostics5 health check categories:
Flags:
--json,--category <name>,--verbosematrixx install— Setup Wizard--no-tui(CI/CD) modes--claude=<yes|no|max20>,--openai=<yes|no>,--gemini=<yes|no>,--copilot=<yes|no>,--opencode-zen=<yes|no>,--zai-coding-plan=<yes|no>~/.config/opencode/opencode.jsonREADME Updates
bunx opencode-matrixx install) + verify (doctor)CI
mock.module()test files to isolation lists in bothci.ymlandpublish.ymlVerification
bun run typecheck— cleanbun test tests/cli/— 32 pass, 0 failbun test tests/tools/pdf-extract-figures/— 20 pass, 0 failbun run lint src/cli/— clean (11 files, 0 errors)