Skip to content

docs: region method — add asImage and percentOverlapX/Y parameters#637

Merged
fscelliott merged 12 commits into
v0from
region
Jul 2, 2026
Merged

docs: region method — add asImage and percentOverlapX/Y parameters#637
fscelliott merged 12 commits into
v0from
region

Conversation

@fscelliott

Copy link
Copy Markdown
Collaborator

Summary

  • Adds asImage (boolean) — when true, Sensible renders the region as a data:image/png;base64,... PNG and returns it as the field value, instead of extracting text. Based on sensible-hq/sensible#3351.
  • Adds percentOverlapX (number, default 0.9) and percentOverlapY (number, default 0.8) — configurable line-containment thresholds with the same semantics as the Intersection method. Based on sensible-hq/sensible#3375.
  • Updates the id row description to reference the new threshold params.
  • Extends the syntax example to include all three new parameters with inline comments.
  • Adds description.md and friction-log.md to the update-docs-from-pr skill directory.

Notes

  • Vale style check was skipped — mcp__vale__check_file was not available and CLI vale errored with a missing Google style. Flagged in friction log.
  • No example added for percentOverlapX/Y (user decision). asImage example deferred pending use-case investigation (see checklist in memory).

Test plan

  • Parameter table renders correctly — new rows appear after isAbsoluteOffset
  • id row description reads correctly with "by default" and reference to Percent Overlap X/Y
  • percentOverlapX/percentOverlapY descriptions match intersection.md wording
  • Syntax example code block includes all three new params with comments
  • No broken links

🤖 Generated with Claude Code

fscelliott and others added 12 commits June 30, 2026 14:53
Adds three new parameters from sensible-hq/sensible#3351 and sensible-hq/sensible#3375:
- asImage: renders the region as a PNG data URI instead of extracting text
- percentOverlapX/percentOverlapY: configurable line-containment thresholds (same semantics as Intersection method)

Also adds update-docs-from-pr skill description.md and a friction log for this run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Relocates friction log and checklist from the skill dir to a per-session
subdir under .claude/sessions/. Splits open questions out as their own file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… Google style

- ran vale sync to install missing Google style package
- added asImage, percentOverlapX, percentOverlapY, includeImages,
  isAbsoluteOffset to Sensible vocab accept list
- fixed Google.Quotes and Google.Spacing errors in region.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- correct 'base64-encoded string' to 'PNG data URI' (matches engine variable name dataUri)
- fix doubled data URI prefix in example value
- remove outdated open-questions.md session artifact

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fscelliott fscelliott merged commit 97c352f into v0 Jul 2, 2026
1 of 3 checks passed
@fscelliott fscelliott deleted the region branch July 2, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant