New Host-connected plugins use view runtime v2 by default, including the single-page starter: ui: {version: 1, cachePages: 1}, declared pages, initialPage and root page tags. Read SDK VIEW_AUTHORING_POLICY, exposed as context.viewRuntime.authoring in standalone API/MCP, Studio MCP and Vibe. VIEW_RUNTIME_GUIDANCE and optimization policy version 5 derive from that single source. CLI --help, scaffolding and both MCP discovery surfaces follow it. Existing packages remain accepted; native offline/device-source examples may retain native execution when local UI actions are unnecessary.
ui: {version: 1, cachePages: 1}
pages
initialPage
page
VIEW_AUTHORING_POLICY
context.viewRuntime.authoring
VIEW_RUNTIME_GUIDANCE
--help
For a multi-page implementation, copy the bundled view-list reference: separate business model, bounded view model and projection; prepare all locally reachable page data before a tap; use local navigate/set/toggle actions. Optional navigation events observe an already completed transition. Host must not echo them as new redirects or publish ui.*. New {revision,page} intents are reserved for deliberate business/dial navigation.
view-list
ui.*
{revision,page}
Use stable-key collections for repeated rows and resolve selected keys against current business data. Reject removed keys; do not identify recycled rows by position. Keep both the mounted pool and published data bounded. For calendars/timelines, use one time window for all columns, retain overlapping/all-day events and build only visible cells/time markers. Do not preallocate every full-day cell or a marker for each possible current-time position. Collection templates remain read-only; use a collection per independently selectable column or a bounded native grid.
Page eviction releases its view resources. Test scroll/selection restoration and replay page-owned frame pixels on remount/resume even when the underlying quote/image has not changed. A Host-side frame signature is not proof that a recreated viewport has pixels.
Check verification.renderer: new diagnostics identify large shared trees, pages over 256 estimated nodes, legacy multi-page views and resident estimates over 512. These are authoring recommendations, not new package rejection limits or measured LVGL memory. Resolve or explain warnings before delivery. Test navigation without a Host reply, stale data, row reorder/removal and page eviction/revisit. Physical cold/warm Dock latency remains a separate measurement.
verification.renderer
Declare multiple plugin pages in device.projection.json. The Dock recognizes left, right, up and down swipes and renders the transition locally, both with a connected Host and in a native resident installation. Browser previews and the native simulator use the same page graph. Use an updated SDK, Studio and consumer App: old package validators reject the added fields. Firmware must advertise pages.swipe.v1; older firmware is reported as incompatible rather than silently showing every page.
device.projection.json
pages.swipe.v1
pages contains 1–16 entries. Each entry has a unique id (an ASCII letter followed by letters, digits, underscores or hyphens, at most 64 characters) and optional left, right, up, down targets. Targets refer to the direction of the finger, must name a different declared page, and may form cycles. An omitted target leaves the current page unchanged. Pages do not infer neighbors or wrap automatically.
id
left
right
up
down
initialPage defaults to the first page. Put page on a primitive, hit or root widget to display it on that page. Untagged nodes appear on every page and remain stationary during transitions. Children inherit their root widget's page and must not declare their own. IDs, node/animation counts and asset budgets remain package-wide; pages do not multiply the existing quotas. All node coordinates still use the 854×480 canvas, with content below the 72px system header.
This excerpt belongs inside a complete projection with its normal version, hashes, dimensions and header:
{ "pages": [ { "id": "overview", "left": "details", "up": "help" }, { "id": "details", "right": "overview" }, { "id": "help", "down": "overview" } ], "initialPage": "overview", "primitives": [ { "type": "text", "page": "overview", "x": 32, "y": 104, "w": 700, "h": 56, "font": 40, "text": "Overview" }, { "type": "text", "page": "details", "x": 32, "y": 104, "w": 700, "h": 56, "font": 40, "text": "Details" }, { "type": "text", "page": "help", "x": 32, "y": 104, "w": 700, "h": 56, "font": 40, "text": "Help" }, { "type": "text", "x": 32, "y": 400, "w": 700, "h": 40, "font": 24, "text": "Shared footer" } ], "hits": [] }
Navigation and the current page belong to the Dock renderer. A complete state publication refreshes bindings on all pages without selecting a page or waiting for the Host to animate. New device views start at initialPage: Back/reopen, reconnection that creates a new view, process restart and projection replacement may reset navigation. Page selection is not durable storage or a host-controlled state binding.
Pages alone keep deviceExecution(manifest, projection) === 'native'. Packaged static primitives/images, native media animation/fullscreen and declared device data-source bindings can span pages and run independently. Existing restrictions still apply: Host permissions, hits, emitted events, streams, ordinary business-data/page-request bindings, manifest dial handlers and pageChange require Host execution. With ui.version: 1, local widgets can use static values, declared device sources and ui.* bindings independently; they require widgets.native.v1. Local ui.knob mappings require ui.knob.v1. Local navigation does not add device JavaScript or make Host integrations work offline. Device-source pages have no host controls or pageChange notification.
deviceExecution(manifest, projection) === 'native'
pageChange
ui.version: 1
widgets.native.v1
ui.knob
ui.knob.v1
Set pageChange to a declared read-only event name to observe committed transitions. The context is {from,to,direction}. The event must have write: false and no permissions. Package checks validate its context schema against every declared edge. This makes the plugin Host-dependent, even when it declares no permissions. A handler observes a completed local transition; its result cannot approve, undo or delay navigation.
{from,to,direction}
write: false
For example, events.schema.json can contain:
events.schema.json
{ "changed": { "context": { "type": "object", "properties": { "from": { "type": "string" }, "to": { "type": "string" }, "direction": { "type": "string", "enum": ["left", "right", "up", "down"] } }, "required": ["from", "to", "direction"], "additionalProperties": false }, "write": false } }
Add "pageChange": "changed" to the projection, then register:
"pageChange": "changed"
ctx.on("changed", async ({ context }) => { ctx.log.info("Page changed", context); return { ok: true }; });
Notifications use the existing bounded, view-scoped event lane. No notification is sent for initial entry, a short/cancelled drag or an absent neighbor. They may be lost when a view closes, disconnects or its event queue is full; there is no replay or initial-page query API. Keep them observational. Ordinary controls retain their original context shapes.
Only the plugin content area participates. Sliders and scrolling controls own their pointer gestures; popup dialogs and fullscreen media suspend page navigation. A swipe selects a dominant axis with a 1.25 ratio, follows the finger, commits after at least 48 device pixels and settles over 180ms. A shorter drag returns to the source page. A recognized swipe suppresses the button tap that would otherwise follow release. Input is locked during settling.
Use the bundled page-deck example in Studio, or copy dist/examples/page-deck from the standalone tools to your own source directory. Run normal check/package commands, then drag in browser/native preview to inspect every page. plugin_read.context.pageNavigation (standalone MCP/API) and plugin_context (Desktop MCP) expose the current capability and limits. plugin_event can exercise the declared notification handler; it does not change the preview's local page. Screenshot tools capture the initial page of their fresh renderer.
page-deck
dist/examples/page-deck
plugin_read.context.pageNavigation
plugin_context
plugin_event
Test all declared directions, boundaries, cycles, short-drag cancellation, button/slider/scroll priority, hidden-page controls, state refresh and new-view reset. Verify both native offline installation and a connected Host on physical hardware before claiming device latency or smoothness. Browser and SDL checks do not certify real touch hardware.
On residentCatalog.hostWaitDialog firmware, Host-dependent plugins show a connection dialog until Host activation, so their saved pages and controls are not displayed offline. Native projections retain offline swipes. Older hostLayouts firmware may allow navigation in placeholder layouts. This does not change deviceExecution.
residentCatalog.hostWaitDialog
hostLayouts
deviceExecution
Lists now support scrollTo, ensureVisible, relative scrollBy and followEnd, executed on the renderer. Widget.scrollTo accepts a literal initial request or a binding to an explicit increasing {revision,...operation} intent. ui.knob declares local rotary actions. Stable keys and viewport state stay separate from business selection; stale publications do not reset scrolling. Static collection.value, local ui.* state and declared device-source bindings can run independently with widgets.native.v1; Host bindings/events/permissions/streams still require Host. Requires the new list/knob firmware capabilities. See list control and the bundled native-list reference.
scrollTo
ensureVisible
scrollBy
followEnd
Widget.scrollTo
{revision,...operation}
collection.value
native-list
Text primitives and text/button/select/list/radio/tabs/switch/checkbox/stepper/pagination widgets accept textAlign (left/center/right) and textVerticalAlign (top/center/bottom). widget.style overrides matching fields locally. select.optionTextStyle independently aligns popup captions, inheriting omitted fields. Existing defaults and primitive align remain compatible; explicit new fields require text.align.v1. Multiline text is measured inside existing caption bounds; overflow clips and oversized blocks start at the top. No added permissions or per-label container nodes. Use the documented fields instead of spaces, blank lines, line-height tricks or text bitmaps. See native text alignment.
textAlign
textVerticalAlign
widget.style
select.optionTextStyle
align
text.align.v1
For a continuous multi-column timeline, place full-height collection columns inside one vertical container. Reuse a fixed-height row template and stable keys instead of emitting a separate control tree for every time slot. Native and browser renderers pool against the ancestor's visible area, retain declared geometry and refresh on ancestor scrolling. Read-only collections without their own scroll overflow pass pointer input through to event columns; row template pressedFill follows the row's press state. Existing fields and capability identifiers are unchanged. Declaration/node/animation validation remains conservative and counts the declared row-pool expansion, including inactive pages. Verify preserved geometry, empty cells, overlaps, current-time overlays, recycled presses and restored reading positions.
collection
container
pressedFill