chore: version packages - #48
Open
github-actions[bot] wants to merge 1 commit into
Open
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@simplepdf/embed@0.7.0
Minor Changes
06a5946: Add
webMCP: register the editor operations as WebMCP tools on the host page.An in-browser agent (ChatGPT's browser, Chrome with WebMCP) discovers tools on the page it is looking at, not inside iframes.
createEmbed({ webMCP: { enabled: true } })and<EmbedPDF mode="inline" webMCP={{ enabled: true }} />register every operation (loadDocumentincluded) on the page's model context and forward each call to the editor over the bridge. Each tool is the record the editor publishes in its manifest and registers on its own page (thesimplepdf_embed_*name, description, snake_case input schema and behavior hints), so a page gets the same tools whether the editor is embedded or opened directly.exclude: ['submit', ...]withholds operations by SDK method name so a person keeps the decision; a malformed value, an unknown key or an unknown name throwsEmbedConfigError. Every operation runs in the browser and nothing the agent reads is computed server-side; document storage follows your account's configuration exactly as it does without WebMCP. Each call resolves with an MCP tool result carrying the editor's wire-shaped Result (isErroron failure; the annotated page render as animageblock); a call aborted before it ran rejects;dispose()unregisters everything. Off by default ({ enabled: false }and omitting the option are the same): the WebMCP module loads lazily, once the editor is ready and only when the page exposes a model context. One WebMCP-enabled embed per page (tool names are page-level).06a5946: Add
getAnnotatedPage({ page })(the editor'sGET_ANNOTATED_PAGE): a PNG render of one page with every field outlined and numbered, plus abadgesmap from each number to itsfield_id, so a vision model can label fields by looking at the printed form. Available asembed.actions.getAnnotatedPage/useEmbed().actions.getAnnotatedPage, as thegetAnnotatedPageagentic tool on every tool subpath, and as a WebMCP tool (a reader:readOnlyHint+untrustedContentHint).The contract pin follows the live manifest:
loadDocumentalso accepts an http(s) URL the editor fetches and its description states that it discards the current document and every edit in it;getFieldspoints agents atget_annotated_page.06a5946:
EDITOR_READYandDOCUMENT_LOADEDnow come from the editor manifest (/embed/jsonevents), likePAGE_FOCUSEDandSUBMISSION_SENT:OUTBOUND_EVENTS/OutboundEventTypeon@simplepdf/embed/protocollist all four (a widening: exhaustive consumers ofOutboundEventTypegain two members), and the root exports theEditorReadyPayload/DocumentLoadedPayloadtypes. TheEditorEventshapes are unchanged.@simplepdf/react-embed-pdf@1.13.0
Minor Changes
06a5946: Add
webMCP: register the editor operations as WebMCP tools on the host page.An in-browser agent (ChatGPT's browser, Chrome with WebMCP) discovers tools on the page it is looking at, not inside iframes.
createEmbed({ webMCP: { enabled: true } })and<EmbedPDF mode="inline" webMCP={{ enabled: true }} />register every operation (loadDocumentincluded) on the page's model context and forward each call to the editor over the bridge. Each tool is the record the editor publishes in its manifest and registers on its own page (thesimplepdf_embed_*name, description, snake_case input schema and behavior hints), so a page gets the same tools whether the editor is embedded or opened directly.exclude: ['submit', ...]withholds operations by SDK method name so a person keeps the decision; a malformed value, an unknown key or an unknown name throwsEmbedConfigError. Every operation runs in the browser and nothing the agent reads is computed server-side; document storage follows your account's configuration exactly as it does without WebMCP. Each call resolves with an MCP tool result carrying the editor's wire-shaped Result (isErroron failure; the annotated page render as animageblock); a call aborted before it ran rejects;dispose()unregisters everything. Off by default ({ enabled: false }and omitting the option are the same): the WebMCP module loads lazily, once the editor is ready and only when the page exposes a model context. One WebMCP-enabled embed per page (tool names are page-level).06a5946: Add
getAnnotatedPage({ page })(the editor'sGET_ANNOTATED_PAGE): a PNG render of one page with every field outlined and numbered, plus abadgesmap from each number to itsfield_id, so a vision model can label fields by looking at the printed form. Available asembed.actions.getAnnotatedPage/useEmbed().actions.getAnnotatedPage, as thegetAnnotatedPageagentic tool on every tool subpath, and as a WebMCP tool (a reader:readOnlyHint+untrustedContentHint).The contract pin follows the live manifest:
loadDocumentalso accepts an http(s) URL the editor fetches and its description states that it discards the current document and every edit in it;getFieldspoints agents atget_annotated_page.Patch Changes