Add the web runtime (DOM patcher, events, host bridge) and a browser e2e

web/ is the js-target MoonBit program: it renders app.view into the DOM with a
keyed patcher, turns pointer/touch/key events into app input, runs effects
against window.Android or demo stand-ins, and exposes window.launcher.* for the
Android shell. tests/e2e.cjs ports the legacy Playwright flows and passes
against the build; scripts/build-web.sh assembles dist/web.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
SpriteandClaude Sonnet 5.5 committed 2026-11-23 01:02:08 +00:00
1 parent 28e0284d9b
commit 637129aa4e
10 files changed
+1554

No files matched your search

+2
View File
@@ -65,6 +65,7 @@ pub(all) enum Edge {
Corner
}
#derive(Eq, @debug.Debug)
pub(all) enum Effect {
Launch(String)
AppInfo(String)
@@ -156,6 +157,7 @@ pub fn Model::packed(Self) -> @grid.Packed
pub fn Model::slot_of_widget(Self, Int32) -> Int32
pub fn Model::widget_matches(Self, Int32) -> Bool
#derive(Eq, @debug.Debug)
pub(all) enum Msg {
Restore(saved~ : String?, legacy~ : String?)
Started(now~ : Int64, last_check~ : Int64, declined~ : Int32, installed~ : Int32)