@volter/sdk
v0.5.219
Published
Extension, contribution and session APIs for Volter Editor.
Readme
SDK
Contribution and editor-session APIs for Volter editor plugins. This package depends on the project contracts, not the editor implementation or a play runtime.
The viewport presentation contract accepts a root identity and native mounted adapter surface. It does not require a runtime's input system, loop or execution API. Richer product-owned roots can satisfy that interface directly.
Project-tool declarations and tab observations are data contracts, not provider integrations. Editor appearance data has one owner in the project contract and is exposed through contribution-facing entry points.
Capture scope is explicit. captureEditorChrome({region: 'page'}) reconstructs
the editor page, including its panels, from its DOM and canvas surfaces.
region: 'document' limits that reconstruction to the active document, including
its visible overlays. region: 'play' captures the active document's visible
Play frame, and refuses when no such frame is mounted. A project's own page in a
cross-origin frame (a player's page) is drawn by the page's own capture:
its frame with its HUD over it.
These reconstruct the editor's rendered surfaces, rather than using CDP,
browser chrome or a desktop image.
A play view's stage is the play frame;
captureEditorChrome({region: 'play'}) captures the viewed player's page in it,
without the editor's chrome. region: 'document' includes the
surrounding document as well. captureActiveDocument() captures the viewport drawing without its
navigation/readouts or DOM HUD. It can still contain in-scene references and
notes; it is not a final render. Use the integration's own render path when
verifying what its rendered output shows.
A raw canvas recording excludes DOM UI.
Use region: 'document' captures to inspect authoring and region: 'play' captures to judge the running project;
measure capture cost separately from play observed without capture.
Run npm run typecheck -w @volter/sdk from the repository root. Source and
contracts ship under Apache-2.0; LICENSE and NOTICE identify their origins.
