Files
chandra/scripts/test.sh
T
nandiandClaude Sonnet 5.5 0145981c6a Wasm panel modules, widget host, merged plasmoid host design, and shell/UI work
Panel and wasm host
- The panel is built from wasm plasmoid modules (compositor/wasm: wasmer-backed host).
  Modules get capabilities by importing host interfaces; the host publishes data tables
  and serves a request queue (launch, focus window, set layout, inspector, load/unload
  modules). New WIT: windows, layout-control, inspector, modules, system.
- Merged two competing host designs: generic tables + requests are the base; the
  `system` snapshot and the id-stable `windows.all/focus` (Desktop Pulse) run on top of it.
- Panel widgets: load a .wasm from a path or file chooser, reorder by dragging,
  right-click replace/remove/add, saved to panel.edn.
- Desktop widget, system sampler (sysinfo), app catalog/humanised names, Interface
  Explorer (inspector), real font rendering (compositor/font, assets/fonts).

Compositor
- Drag the divider between tiled windows; lower tiled rows leave room for the title bar.
- Title-bar buttons, 12-hour clock, truncated titles, task-list/layout menus.
- DRM/KMS session, tcc debug builds (vendored tinycc incl. conftest.c), justfile
  recipes (modules, run, test), pixi.toml.

Known gaps
- The sources for the pulse, tasks, layout, inspector, module-manager, moon-* and
  clock-digital12 modules are not in the tree yet, so `just modules` stops at pulse and
  the host tests that load those modules fail until they land.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 23:38:05 -08:00

42 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# Full verification, identical to CI:
# WIT parses -> bindings are fresh -> moon check/test (pure logic) ->
# build all components -> conformance -> host integration tests.
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"; cd "$ROOT"
export PATH="$ROOT/.tools/bin:$HOME/.moon/bin:$PATH"
step() { printf '\n== %s\n' "$*"; }
step "bindings are in sync with wit/"
scripts/gen-bindings.sh --check
step "moon check"
moon check
step "moon test (pure logic, wasm target)"
moon test
step "build components"
scripts/build.sh
step "build wm & decoration components"
scripts/build-wm.sh
step "build wasi-gfx GUI loader component"
scripts/build-gfx.sh
if command -v wasmtime >/dev/null; then
step "wasmtime accepts every component (compile only; hosts supply the imports)"
for f in build/components/*.wasm; do
wasmtime compile "$f" -o "$(mktemp -u).cwasm" >/dev/null && echo " ok $(basename "$f")"
done
fi
step "host integration tests (jco + Node)"
(cd host && npm test)
step "pure-MoonBit native Wayland compositor + wasi-gfx + e2e tests (compositor/)"
XDG_CONFIG_HOME="$(mktemp -d)" MOON_PLASMA_TEST_CONFIG=1 \
moon test --target native --warn-list -a compositor/renderer compositor/gfx compositor/wasm compositor/host
moon build --target native --warn-list -a compositor/bin