Use the gallery project resolver for Kryon as well as optional packages so browser type checking, mounted declarations and native previews use the same selected sources. Refresh the ordinary gallery lock and browser compiler output for the published providers.
Local validation: clean normal dependency resolution; fresh site and browser compiler builds; portable formatting; full browser routes, all 103 maintained TSX sources/previews, source editing and authored diagnostics, mobile layout, disabled controls, reduced motion and contrast. The original ignored gallery local configuration was restored byte for byte.
The current starter profile/runtime and pre-push gates are running separately. The full breaking migration remains Unreleased and incomplete.
Select the published Ziran, Kryon and optional-package revisions through normal manifests and generated locks. Keep project creation, upgrade defaults and documented pins consistent.
Local validation: all 102 standalone examples resolve one published Kryon without overrides and pass TSX source checking; the rebuilt CLI and pin test pass; all four freshly generated starters check and report zero native TypeScript editor diagnostics. Current full profile/runtime validation and the required pre-push gate remain pending.
Read the real platform palette before composition and pass the guest's resolved
background to each host. Preserve explicit palettes and canvas tokens across
live system theme changes without pulling stylesheet modules into lean apps.
Local tests: Alpha native C, ZX VM and zx2native pixels, startup and live GTK
palette changes, explicit light/dark/custom palettes, canvas tokens, retained
frames, existing system-theme and parent-theme fixtures; selective-import IR
and Linux/Windows/Android/Web frontend checks.
Shared current-tree Kryon push-check passed locally before this commit.
Expose the native widget surface through ordinary typed TSX components and enforce application composition at generic export and entry boundaries. Migrate maintained screens, scaffolds, gallery publication and editor transport through the common checked IR path. Preserve native logic, retained component state, input and platform hosts; remove the pixmap application route.
Local validation: complete make push-check passed with published Ziran dc3ecf0a, including docs, public source/saved surface, private-display desktop input, native host links and Canvas input parity. Fresh CLI/player/desktop library installed and byte-verified. The full migration matrix records remaining owning suites, published consumer pins, platform runs and Alpha benchmarks; this is a source milestone, not completion of the full campaign.
Point every browser canvas harness at the WebGL2 presenter: premultiplied bottom-up GL readbacks, SwiftShader browser flags, and boot-gated polling so a pre-boot pixel read cannot poison the drawing buffer. Migrate the stale fixtures to main-only entry apps and the kryon__ generated C names, and extend the behavior fixtures for GPU scissor reset. Document the WebGL2-only host in canvas.md, BACKENDS.md, FEATURE_MATRIX.md, APP_HOSTS.md and the changelog, and ship the component slot modules the web builds import.
Style: finalize structural sibling facts (:last-child family) at parent closure so late siblings match in the same frame, parse and match +/~ combinators from submitted siblings, and document the exact tree-context support. Flex: measured page/row/column placement with basis, grow, gaps and padding now sizes the gallery shell (header, scene row, controls bands) instead of manual rectangles. Paint: radial gradients reach every render path (desktop, pixmap, terminal, web, zx). Gallery: the catalog registry imports kryon/app (kryon/app_types is package-internal), fixing the widget-catalog project build broken by the entry-point removal; the desktop shell test follows the shared example build path and locates interactive controls by tree label.
A zeroed TextField.State now edits immediately: Bind points state.bytes\nat its own 256-byte storage when the application wires none, so declaring\na field no longer needs a companion buffer and a frame.first wiring step\nand can no longer silently ignore keys. Apps wanting another capacity or\nshared bytes still wire state.bytes themselves. The app template and the\ncheat sheet drop their draft buffers and wiring lines accordingly.\n\nAlso move KryonZiranRef to 44134562, where the templates already point\nsince dc4ac53c, so the four-template agreement holds again.
The zx player gains a WebView host module (WebKitGTK 4.1 on Linux): a
staged page runs in an owned python island child, maps its window into
the player, and answers bounds, seek, play, pause, stop and tick
commands over a versioned bridge; closing the player reaps the child.
Repin the toolchain and starter templates to the Ziran commit that
lets the direct backend lower expression-less UNUSED statements, and
stage the island script and assets beside the player.
- Frame.first marks the first frame per session slot, so apps wire field
bytes, theme and seeds once without a started flag.
- TextField.Value views a field's bytes (empty until wired) and
TextField.Clear empties the field in the same frame.
- The app starter and cheat sheet close every container with a defer End
right after it opens, so a missing End cannot fail a frame.
- AddTask refuses empty titles; task drafts own their bytes.
- Repoint the dead css package pin to css master 2be03f38 and refresh the
starter's shot digests.
Separate parent width queries, paint operations, bitmap metadata, style facts and color values from their optional implementations. Load portable editor policy with editing widgets instead of every frame loop. Preserve public widget APIs and renderer-free layout.
Align starter and fixture toolchains with readable dependency identities, recognize dependency alias module names in portable hosts, and rebuild the CLI when any project helper changes.
Local validation: 52 focused behavior tests; bitmap lifecycle on native, portable and browser paths; pay-per-import examples; headless ZX rendering and editor exchange; push-check; C/Go library build; all starter templates and toolchain pins; portable module-name test. Built and installed current CLI, player and desktop host.