Load the real desktop shell (lib/shell, panel, launcher, clock) into the native compositor
CI / test (push) Successful in 34s

Replaces the hardcoded build_shell_ops with compositor/shell, which drives the
same pure lib/* logic the wasm components wrap and adapts it to scene ops.
Adds a wall-clock FFI and native stubs for the wasm-only theme bindings.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-24 18:48:34 -08:00
1 parent 3cb8417699
commit 769ab829c8
8 files changed
+285 -1

No files matched your search

@@ -3,3 +3,12 @@ import {
}
warnings = "-44"
// ffi.mbt is generated wasm-only; native builds (the compositor) get abort stubs
// from native_stub.mbt so the pure `Tokens` types stay usable.
options(
targets: {
"ffi.mbt": ["wasm", "wasm-gc"],
"native_stub.mbt": ["native"],
},
)
@@ -0,0 +1,33 @@
///| Native stand-ins for the wasm component-model FFI in ffi.mbt. The native
/// compositor uses only the `Tokens`/`Palette` types; `get_tokens` is a guest
/// import that has no meaning outside a wasm component, so it aborts.
///|
fn wasmImportGetTokens(_p0 : Int) -> Unit {
abort("theme.get-tokens is a wasm component import; unavailable on native")
}
///|
fn mbt_ffi_free(_position : Int) -> Unit {
abort("wasm-only")
}
///|
fn mbt_ffi_ptr2str(_ptr : Int, _len : Int) -> String {
abort("wasm-only")
}
///|
fn mbt_ffi_load32(_offset : Int) -> Int {
abort("wasm-only")
}
///|
fn mbt_ffi_malloc(_size : Int) -> Int {
abort("wasm-only")
}
///|
fn mbt_ffi_load8_u(_offset : Int) -> Int {
abort("wasm-only")
}