Repository navigation
feat(review): accept image uploads (.png, .jpg, .webp) and document URL inputs - #137
Merged
Merged
Conversation
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
Extends
review_file,review_file_and_wait, and CLIlenz reviewin the Python SDK (lenz-io) to accept standalone image uploads (.png,.jpg,.jpeg,.webp) alongside.docxand.pdf, includes/review/filein_REVIEW_FAMILY, and updates documentation for Google Docs and direct image URL inputs.Changes
src/lenz_io/_shared.py(_prepare_review_file_multipart):.png(image/png),.jpg/.jpeg(image/jpeg), and.webp(image/webp) filenames in addition to.docxand.pdf.src/lenz_io/cli/review.py(_is_binary_document,_resolve_draft_input,review):.png,.jpg,.jpeg, and.webpfiles inlenz review <file>and upload viareview_file().src/lenz_io/errors.py:/review/filein_REVIEW_FAMILY(matching Node SDKsrc/compat.ts).src/lenz_io/client.py,src/lenz_io/async_client.py,README.md,CHANGELOG.md:tests/test_review.py,tests/test_cli_review.py,tests/test_errors.py:_REVIEW_FAMILYmatching on/review/file.Reviews & Verification
codex review --base origin/main) & Opus review (claude -p --model opus): Reviewed commit6a77782; all findings addressed.ruff check,ruff format --check,mypy src(strict), andpytest(5,619 passed) all passing.Post-deploy actions & prod testing
lenzhq/Lenz#1575) is merged and deployed to production.openapi.jsonfrom the live API and release in parity withlenzhq/lenz-io-node.