Repository navigation
feat(sheet): add verified native image batch writes - #181
Merged
Merged
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
lishuai-0
force-pushed
the
feat/sheet-native-image-batch
branch
2 times, most recently
from
September 22, 2026 03:34
8b06a09 to
1dd6b03
Compare
- add 'sheet image write-batch' command with manifest input (file, stdin '-', inline JSON) - upgrade 'sheet image write-image' command to support HTTPS URLs and -o json output - decouple core business and orchestration logic into internal/client/sheets_image_batch.go - enforce native values_image writes with mandatory V3 read-rich image_token verification - integrate DoVoidWithRetry with rate-limit detection and full jitter backoff - eliminate SSRF TOCTOU via net.Dialer.Control socket-level IP/Port filtering - support corporate proxy environments with IP:Port exemption for HTTP/HTTPS/SOCKS5 - add eventual consistency polling retry for replication lag and support merged cell regions - forbid =IMAGE(...) formula and markdown image syntax in sheet skills - add comprehensive unit tests, update README quick reference, and add CHANGELOG entry
lishuai-0
force-pushed
the
feat/sheet-native-image-batch
branch
from
September 22, 2026 08:21
1dd6b03 to
68ad8a2
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.
Background
Writing remote images into Feishu Sheets currently requires callers to orchestrate several low-level commands. A common failure mode is writing
=IMAGE(url)through the V2 values API: it can be stored as text/link, and even a V3 formula may evaluate to#ERRORwhen Feishu cannot fetch the remote URL. Callers can therefore report success while no image is actually rendered.Changes
Add
feishu-cli sheet image write-batchwith a manifest interface:[ {"cell":"B2","url":"https://example.com/1.jpg"}, {"cell":"B3","path":"/tmp/2.png","name":"product-2.png"} ]The command:
IMAGE()formulas;type=imagewith animage_token;The
feishu-cli-dataSheet workflow now recommends this command for all batch image writes.Verification
gofmt -l cmd internal— cleango test ./...— passgo vet ./...— passmake check-skills— passsheet image write-batchwritten=1,failed=0,verified=truesheet read-richreturnedtype=imagewith a non-emptyimage_token