feat(mcp): add preset shape guide lookup (#9) - #22
Merged
Conversation
Co-authored-by: shbernal <shbernal.01@gmail.com>
5 tasks
Code Review by Qodo
View medium (1)🟠 **Medium** 1. Implicit zip/unzip dependency
|
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.
What
Adds
ooxml_preset_shapeso agents can look up DrawingML preset-shape adjust guides.This replaces #10 on top of the current
mainbranch. Ben is credited as a co-author.Why
The PDF corpus does not include the Annex D geometry addendum. For example,
round2SameRectrequiresadj1andadj2, which cannot be found through PDF search.The generator downloads the pinned fourth-edition archive, verifies its checksum, extracts
presetShapeDefinitions.xml, and builds the lookup from each shape's<avLst>. The generated TypeScript file is bundled with the Worker and is not edited by hand.The source download and nested-ZIP extraction are reusable for future XML or XSD sources. Parsing remains specific to Annex D because other files use different schemas.
Closes #9
Tested
round2SameRectreturnsadj1andadj2through the authenticated MCP request path