Commit Graph
242 Commits
Author SHA1 Message Date
waozi 2da7a627f6 Export the gallery examples as ZX again
Kryon's sources load through `--module-path kryon=DIR`, so the exporter
binds the frame entry and names the bundle entry by their package-scoped
module names. An export that names another file than its same-named module,
as `modal` names modal_frame.zi, is imported by its target's own name, and
other facades import from the deepest module root, because a slash in an
import names another package. All 101 examples export and render again. The
docs no longer say the website publishes these bundles; the Components page
runs every example live.
2026-11-18 03:36:11 -03:00
waozi 9926d5bc8e Play every published Kryon web app from the website
The Apps page lists Werkzeug, Inner Breeze, Jungle Academy, Arcade, Shovey,
Apfelwurm and Choano, each with a Play in browser link to its published web
build and its source where that is public. Terminal, Browser, GitHub,
Explorer and Task Manager stay listed as desktop apps, each with the reason
it has no browser build yet; plans/2026-11-18-web-apps.md records what each
one needs. Wide screens show three cards per row.
2026-11-18 03:28:13 -03:00
waozi b5a61b37df Fix Kryon build regressions and consolidate checks
Select Darwin host code for the native ZX player and keep its Linux socket
service on Linux. Feed RGB to the JPEG encoder and retain Android
notification callbacks when generating native host libraries.

Resolve the Pages gallery verifier against the same source revisions as the
build. Reuse prepared template dependencies and check the JavaScript policy
against files present in the checkout. Combine related text-input checks
and perform shared source policy checks once per CI run.
2026-11-18 01:52:02 -03:00
waozi 3627ea8a90 Remove raylib from Kryon
Kryon carries no raylib code. The ten raylib host modules, the raylib
ZX player, the raylib audio sink and media provider, their tests and
docs, mk/raylib-library.mk, mk/zx-raylib.mk, mk/raylib-shell.html,
cmake/renderer-artifact, the renderer-raylib artifact, the
`backend = "raylib"` profile and [dependencies.raylib] are gone.
Desktop, Android and Canvas hosts keep the shared image, shader and
audio coverage. Browser asset and PCM audio play through
media_audio_web on the Canvas WebAudio engine; native audio uses
Ziran's core audio modules through media_audio_desktop.

macOS CI builds the desktop ZX player and checks the headless bundle
with it. The toolchain moves to Ziran 7fbc8152, which carries the
optimizer fixes the tree-input test needs. All 99 example locks are
regenerated as CI resolves them, without raylib.
2026-11-17 20:59:37 -03:00
waoziandClaude Opus 5.5 e05146b3ba Host Android apps that run their own frame loop
kryon/android_runtime keeps NativeActivity lifecycle and input in the host
while the application's main owns its loop, widgets and pacing:
PollAndroidHost, BeginAndroidFrame and EndAndroidFrame present Pixmap's
device-pixel damage. The host calls the application's C main by symbol, so
generated C never declares main with Ziran's argument types. Pixmap's
RasterSetTransform and RasterPointFromPixels share one camera for painting
and input.

kryon/pixmap_assets_android decodes owned PNG, WebP and AVIF pictures on
first use, and kryon/pixmap_typefaces_android shapes text with Android Paint
and Canvas through the ordinary typeface_source capabilities.

The renderer-desktop artifact also builds Android ARMv7 and AArch64 codec
archives and the shared AVIF bridge, pinned to AVIF 2611e727.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 13:30:41 -03:00
waozi 156cea179d Reconfigure codec archives when resolved package sources change 2026-11-17 01:23:23 -03:00
waozi 216c190c43 Document only current Kryon APIs and website pages
Remove raylib paths, obsolete import and preview guidance, migration prose,
and orphaned documents/pages. Align widget imports, native ZX windows and
host contracts with the current implementation, and enforce current site routes.
2026-11-16 21:43:18 -03:00
waozi 9a55dbbbc8 Port the SDL Cairo desktop host to Windows x86-64
Add Windows platform adapters, a pinned MinGW desktop renderer artifact,
and private Wine pixel/service/audio tests. Share raster and window code
while selecting native process and library-loading modules per OS.
Pin the public WebP native function-table export for dynamic decoding.

Local tests: windows-desktop-host-test, desktop-windows-test,
desktop-audio-test, native-text-test, native-accessibility-test,
image-pixels-test, pay-per-import-test and push-check passed. Strict
dynamic image source/saved IR passed ASan, UBSan and leak detection.

The stock frame-entry C pruning and Windows ZX external-host gaps remain
upstream in step 6. Full make test separately stops at ZX packed media.
This checkpoint does not include consumer ports or macOS builds.

Signed-off-by: Waozi <[email protected]>
2026-11-16 20:32:27 -03:00
waozi 08f70214c3 Provide native codec archives independently of the raylib renderer
Move WebP/AVIF/AOM recipes into mk/codecs.mk and build Opus from the
package-owned audio recipe. Publish all four archives, licenses and the
lazy AVIF library through renderer-desktop. Keep the raylib host recipe
using the same codec targets until its separate deletion.

Local tests: codec-archives, renderer-consumer-test,
desktop-codec-artifact-test (real source/saved-IR AVIF/WebP/Opus), and
renderer-artifact-test including the retained native renderer on Xvfb.

Owner-request: Waozi, 2026-11-16 (remove raylib dependencies)
2026-11-16 19:47:52 -03:00
waozi 9ca2e6731b Preserve canonical hosted record identity across package boundaries
Describe nominal host types with their defining module and generate widget
wire names from the same declaration identity. Match package-qualified
records and slices through the shared hosted-value matcher, retaining
module and package mismatch rejection.

Add a separate package-consumer host regression and negative identity
cases. Pin the canonical type producer from Ziran.

Local tests: widget host, widget codec, component host, and all six hosted
tests pass. Ziran portable records, slices, arrays, capabilities, payloads,
web lifecycle and bootstrap checks pass. Broader checks have unrelated
shared-checkout failures reported separately.

Reported-by: Breeze task codex-breeze-breeze-crash-recovery-ui
2026-11-16 16:42:28 -03:00
waozi 9c80f79110 Build Android runtimes with the host zi2c
build_android_runtime.py ran Ziran's make with the NDK compiler and no
GEN_ZI2C, so the generated-C step would run a zi2c built for the device.
It now passes the pinned toolchain's build/bin/zi2c, which the Android
CMake already requires. The ZX player APK builds for all three ABIs and
runs app.zx natively on the Moto (armeabi-v7a).
2026-11-16 04:10:17 -03:00
waoziandClaude Sonnet 5.5 cbbeb1fd54 Accept local-override dependencies in renderer artifact builds
pkg path validates a local development identity itself; only locked builds
must match the provider edge's exact commit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-16 01:14:29 -03:00
waoziandClaude Opus 5.5 15c3a22e43 Bring pictures, text input and scroll devices only with the widgets that use them
The desktop rasterizer loads, decodes and smooth-copies file pictures once
a program first asks a picture's size, which every widget that draws one
does first, so vector icons and managed pixels draw without decoders,
threads or asset paths. LanczosSnap is geometry's RectangleSnap, so a
texture draw no longer reaches the Lanczos cache.

A button reaches file pictures and atlas icons through the new
image_lookup. kryon/image is now image_files, which re-exports the Image
widget (image) and fills the pictures; kryon/icon fills the atlas. Library
code imports image itself, so importing a picture-capable widget registers
nothing. Navigation, copy and confirm buttons and the widget host fill the
lookup where they draw, as they reached pictures before. Props modules that
only name Image.Props import image_props, now also exported; unused image
imports are gone.

The frame and the accessibility host reach text requests and editor focus
through text_editing, which text_request and text_input_platform fill, and
the frame samples scrolls through scroll_sampling, which scroll_device
fills.

Desktop examples (C files, C bytes, executable), before -> after:
button 96, 1 411 582, 448 264 -> 70, 980 794, 342 016
text 95, 1 445 077, 462 504 -> 71, 1 020 207, 356 472
textfield 107, 1 580 157, 514 496 -> 84, 1 166 840, 409 840
make pay-per-import-test checks button and textfield; tests whose programs
no longer reach pictures lose their picture bindings and stubs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 23:10:23 -03:00
waoziandClaude Opus 5.5 4108c80a6b Find Kryon's locked edges under a local override, and keep test-driver builds from rebuilding artifacts
The renderer artifact build looks up Kryon's locked dependencies through the
root's edge when a local override changes its package ID. Selecting the test
driver no longer changes dependency artifact identities.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 20:36:56 -03:00
waoziandGLM 4daa24b78c Drop the CUI name from Kryon's style
Co-Authored-By: GLM <[email protected]>
2026-11-14 22:40:47 -03:00
waozi 0678895719 Run ZX apps on Ziran's one executable format
Ziran dropped the semantic bundle VM: every bundle is revision-28 executable
ZX on the instruction engine (or its Wasm tier). Players and hosted apps
call InstantiateBundle on every target, including the browser; the --vm
option of the zx player goes, and its tests run without it. The web,
Raylib and Android runtimes build libziran in normal mode so they carry the
engine (BOOTSTRAP=1 builds have none), and their rebuild rules watch the
engine's Ziran sources.
2026-11-14 16:27:22 -03:00
waozi 3ac259c4c2 Generate Android sources for the Android target 2026-11-13 18:07:38 -03:00
waozi b08079641f Keep Android loader entries in generated native graphs
`ziran ir --entry main:main` keeps only what main reaches, so the glue's
JNI_OnLoad, android_fopen's __wrap_fopen/__wrap_fopen64 and a ZX player's
android_main were pruned: libmain.map.txt then failed with "symbol not
defined" for JNI_OnLoad and --wrap=fopen left __wrap_fopen undefined.

The generator now selects the graph through a generated root that forwards
to the stable main(argc, argv) and names the loader entries only on a
negative-argc branch, binding Kryon's entries as host capabilities. The
root never enters the C inputs. The source generation test now uses a
real JNI_OnLoad glue, checks the generated C defines every loader entry,
and links native and ZX graphs through kryon_android_app and
kryon_android_host with the canonical export map.
2026-11-13 17:20:59 -03:00
waoziandClaude Opus 5.5 302939233e Build raylib in the Android renderer artifact project again
The kryon:renderer-raylib Android artifact configures
cmake/renderer-artifact, which still called kryon_android_raylib after the
renderer-free native host helpers in cmake/KryonAndroid.cmake stopped
defining it. Every arm64 and armv7 artifact build, such as Shovey's
android-fdroid, failed with an unknown CMake command.

The artifact project now owns that function in RaylibAndroid.cmake: raylib's
GLES2 Android backend, Kryon's WebP and AVIF codecs, and the audio package's
libopus. Raylib's own APK reader keeps the KryonRaylibFopen name, so it never
collides with the __wrap_fopen in src/backend/android_fopen.zi.
KryonAndroid.cmake stays renderer-free.

make android-renderer-artifact-test configures the project for arm64,
checks the codec targets, builds raylib, and checks its fopen symbols.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 16:13:22 -03:00
waozi ff07bddbec Simplify hello world and package widget APIs 2026-11-13 04:29:23 -03:00
waozi 2d80834675 Fix nested scroll drags and refresh the live website
- Keep scroll pointer, drag and momentum state per Session, so a preview's
  frame sampling cannot release the page's scrollbar thumb or content drag.
- Left-align component navigation, drop the Kryon prefix from core component
  labels, and syntax-highlight the usage, source and guide code areas.
- Replace the Apps text list with card images, public applications and GitHub
  links, and rename Shelf to Explorer.
2026-11-12 18:59:07 -03:00
waozi 9383e95e57 Add the GPU scene renderer, hosted widget aggregates and component packages
Restructure maintained components into per-widget source folders, add the
portable scene GPU renderer with GLSL shaders, hosted widget aggregates,
GTK theming and multi-target clipboard support, rebuild the guide with
theming guidance, and move the toolchain to the Ziran revision without
module root limits so the eighty component roots resolve everywhere.
2026-11-12 00:12:06 -03:00
waozi e8c6aa25c1 Integrate components and the public UI surface 2026-11-10 15:37:48 +00:00
waozi b570cf3d06 Add multi-select grids and native desktop integration 2026-11-07 23:08:18 -03:00
waozi 34d0ce4ed4 Play Ogg Opus on Windows and ship libopus in renderer artifacts
The native provider now decodes Ogg Opus through the audio package on
Windows too (audio f5eed1e). MinGW hosts link -lopus -lssp -lm, since the
package's libopus keeps its stack protector. The renderer-raylib artifact
builds the package's static libopus for Linux, Windows and Android, so
artifact consumers that use media_audio_raylib link without a system copy.

The Windows artifact sets CMAKE_SYSTEM_PROCESSOR, which dav1d's cross build
now requires, and the artifact test pins Kryon's locked toolchain. The Opus
test gains --windows: a MinGW cross build run under a private Wine prefix.
2026-11-06 20:58:14 -03:00
waozi 34e552dcab Play Ogg Opus through the native MediaAudio provider
The Raylib provider now chooses its decoder by content: an Ogg page whose
first packet is OpusHead decodes through the audio package on Linux and
Android, streamed in two 2048-frame blocks refilled by Status and the owner
tick. Other bytes, including Vorbis Ogg, stay on Raylib; macOS and Windows
return Unsupported for Ogg Opus and the browser keeps decoding it itself.

Play starts the stream before filling it, since PlayAudioStream discards
queued blocks. Linux links -lopus -lm, and the Android build compiles the
package's static opus target. The Opus tests now run the production
provider, including on an Android device with null audio.
2026-11-06 20:19:58 -03:00
waozi cc171806f7 Decode native AVIF with dav1d's runtime-dispatched assembly
dav1d is the default engine in every native artifact and CMake consumer, with
libaom kept as the explicit oracle. Large frames use up to four threads.
Strict parity, cross-target, Android, browser-capability and benchmark
suites cover each target.
2026-11-05 19:17:12 -03:00
waozi 56af335572 Integrate Material widgets, image codecs and Kryon Labs website
Add Card elevation and consistent widget states, retained TextArea selection,
and rounded image rendering. Integrate published image-codec, WebP and AVIF
packages across native hosts and renderer artifacts with project-aware builds.

Modernize Kryon Labs around visual GUI apps and modules, with real previews,
honest availability, and rebuilt interactive editor and widget gallery assets.
Bound private browser test lifecycles and verify source, saved IR, native,
portable, browser, Windows and Android paths with the published compiler.
2026-11-05 11:12:10 -03:00
waozi 1787e1b09a Add opt-in SDL3 GPU renderer and pinned SDK tests 2026-11-02 12:41:25 -03:00
waozi 9886717e6b Use lossless WebP for bundled UI and profile icon sheets 2026-11-02 11:07:38 -03:00
waozi 7dc6290238 Add persistent local reminders and edition-scoped push 2026-11-02 04:03:39 -03:00
waozi e31434063c Decode WebP images on every host
Lossy, lossless and transparent WebP files, and the first frame of
animated ones, load through the existing image paths: raylib and Android
link Kryon's kryonwebp archive built from the locked libwebp source, the
Cairo desktop host opens the system libwebpdemux, and web hosts use the
browser's decoder. Files are recognized by content, not extension.

Fixtures cover each kind on the raylib, Cairo and browser paths, the
renderer artifact ships libkryonwebp.a, and android-webp-link-test links
the decoder for every Android ABI.
2026-11-01 23:03:37 -03:00
waozi cb98ea3565 Link dependency-owned support artifacts in native project profiles 2026-10-30 23:20:27 -03:00
waozi 1bc32aea89 Share renderer artifact metadata consumption with build tools 2026-10-30 22:59:31 -03:00
waozi b593f9cf00 Provide dependency-owned renderer artifacts and support resources 2026-10-30 20:31:19 -03:00
waozi cdf4dffb07 Add owned per-frame input snapshots for native and hosted apps 2026-10-30 19:47:02 -03:00
waozi 7217475dfa Keep Google libraries in the Google Play edition
Play Billing moves from the app template's build.gradle into
templates/android-gplay.gradle, which only -Papp.edition=gplay applies from
the Kryon checkout; the scaffold no longer copies src/gplay into apps. The
normal and F-Droid editions' build files and APKs then name no Google
library, and F-Droid's scanner finds no usual suspect.

scripts/check-google-free.py (and the google-free action for app CI)
fails when a normal or F-Droid APK holds Google library code, manifest
entries or library markers, or when a Gradle file declares one outside the
gplay edition; --expect-google proves it still finds Play Billing in a
-gplay package.
2026-10-29 16:02:09 -03:00
waozi 2839954d91 Host overlays and explicit tree scopes 2026-10-29 00:31:46 -03:00
waozi 5427f011d2 Clip images to retained polygons across rendering hosts 2026-10-28 17:02:27 -03:00
waozi 1201ec2f3f Name the Android CMake project without spaces
An application named "Jungle Academy" made CMake look for a language
called Academy.
2026-10-26 02:41:17 -03:00
waozi fade061f2e Bundles draw sliders and progress bars through their host
Inner Breeze's practice manuals and settings move into the Practices
package, and they change speeds and durations with sliders and show a hold
with a progress bar. Slider, DiscreteSlider and Progress are now hosted:
the host drags the slider with its own pointer and answers the value, and
paints the progress bar.
2026-10-24 21:10:50 -03:00
waozi 8e2d0bc46b Bundles draw lines, circles, rings and triangles through their host
A portable bundle could draw boxes and icons but no line at an angle, so a
chart's trend lines and dots needed compiled screens. Kryon's shapes are now
hosted like Box: the bundle sends their props and the host fills them with
its renderer's RasterTriangles, which every Kryon renderer provides. The
widget host test stubs that rasterizer, as it draws nothing.
2026-10-24 20:24:00 -03:00
waozi 235f28cda2 Bundles frame form sections and size toggles through their host
A portable form could not draw a fieldset around its sections or place a
toggle at a row's end, because both needed the host's style and font
metrics. Fieldset is now hosted like Box, and the new toggle_measure module
answers the size a toggle needs, from its host as ToggleSize. The host
encodes the answer with the Vector2 encoder, now part of the widget codec.
2026-10-24 20:00:33 -03:00
waozi 2da3b99f87 Bundles draw segmented controls through their host
A portable bundle could not show a row of choices such as Habits' week and
calendar views, so Inner Breeze drew them in compiled screens. Segmented
controls are now hosted like tab bars: the bundle sends its props and up to
32 options and the host draws them with its own widget and style.
2026-10-24 19:27:27 -03:00
waozi 65381f3c1e Share hosted slice validation and scalar field construction 2026-10-24 03:03:21 -03:00
waozi cb637eabcd Use ZX portable executables throughout players and project tools 2026-10-23 18:55:42 -03:00
waozi 689a953ca1 Generate deferred widget codecs in consuming modules
Reuse imported storage and discover supplied operations before generating missing codecs from schema metadata. Preserve complete-provider output and exercise partial providers across source and saved native targets. Regenerate the library against the current widget property records.
2026-10-23 18:49:12 -03:00
waozi 00fe5e1130 Share hosted record field decoding and validation 2026-10-23 15:09:13 -03:00
waozi 018e94781b Expose session-scoped pointer samples to hosted apps 2026-10-21 21:55:06 -03:00
waozi 10be25fd4d Support the shared Dropdown widget in hosted app packages 2026-10-20 19:41:26 -03:00