Rename the project to Chandra
CI / test (push) Failing after 16s

moon-plasma / moonplasma / MoonPlasma / Moon Plasma become chandra / Chandra
everywhere: the WIT package (chandra:desktop, chandra:host, chandra:wm), the
MoonBit module (chandra/desktop) and generated bindings, the Rust host,
identifiers (ChandraCompositor), the session script (chandra-session) and
desktop entry (chandra.desktop), config and data paths
($XDG_CONFIG_HOME/chandra, share/chandra/modules), env vars (CHANDRA_*),
UI strings, docs and tests. The test fixture components are rebuilt against
the renamed WIT.

Saved panel.edn and state.edn are still read from the old
$XDG_CONFIG_HOME/moon-plasma until the first save writes the new copy.

The remote repository keeps its experiments/moon-plasma name for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hi3L9oVBoRd373Qr4n
This commit is contained in:
VandClaude Opus 5.5 committed 2026-11-25 17:12:57 +00:00
1 parent 5dfe34027b
commit af774d76fe
323 files changed
+1055 -1013

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Build the compositor itself as a wasm component: build/compositor.wasm.
# It imports only moonplasma:host/sys (wit/host/sys.wit) and exports `run`; the native host in
# It imports only chandra:host/sys (wit/host/sys.wit) and exports `run`; the native host in
# host-wasm/ provides the imports. Needs moon and wasm-tools.
# scripts/build-compositor-wasm.sh
set -euo pipefail
+2 -2
View File
@@ -31,8 +31,8 @@ while read -r name world; do
rm -f "build/components/$name.embed.wasm"
wasm-tools validate --features component-model "$out"
wasm-tools component targets --world "$world" wit "$out" >/dev/null
imports="$(wasm-tools component wit "$out" | sed -n 's/^ import moonplasma:desktop\/\([a-z-]*\)@.*;/\1/p' | grep -v '^types$' | sort | paste -sd, - || true)"
exports="$(wasm-tools component wit "$out" | sed -n 's/^ export moonplasma:desktop\/\([a-z-]*\)@.*;/\1/p' | sort | paste -sd, -)"
imports="$(wasm-tools component wit "$out" | sed -n 's/^ import chandra:desktop\/\([a-z-]*\)@.*;/\1/p' | grep -v '^types$' | sort | paste -sd, - || true)"
exports="$(wasm-tools component wit "$out" | sed -n 's/^ export chandra:desktop\/\([a-z-]*\)@.*;/\1/p' | sort | paste -sd, -)"
printf '{"name":"%s","world":"%s","imports":[%s],"exports":[%s]}\n' "$name" "$world" \
"$(echo "$imports" | sed 's/\([a-z-]\+\)/"\1"/g')" "$(echo "$exports" | sed 's/\([a-z-]\+\)/"\1"/g')" \
> "build/components/$name.meta.json"
+2 -2
View File
@@ -33,8 +33,8 @@ while read -r name world; do
# Conformance: the component must be a valid implementation of its world.
wasm-tools component targets --world "$world" wit "$out" >/dev/null
# Capability manifest: which host interfaces the binary imports.
imports="$(wasm-tools component wit "$out" | sed -n 's/^ import moonplasma:desktop\/\([a-z-]*\)@.*;/\1/p' | grep -v '^types$' | sort | paste -sd, - || true)"
exports="$(wasm-tools component wit "$out" | sed -n 's/^ export moonplasma:desktop\/\([a-z-]*\)@.*;/\1/p' | sort | paste -sd, -)"
imports="$(wasm-tools component wit "$out" | sed -n 's/^ import chandra:desktop\/\([a-z-]*\)@.*;/\1/p' | grep -v '^types$' | sort | paste -sd, - || true)"
exports="$(wasm-tools component wit "$out" | sed -n 's/^ export chandra:desktop\/\([a-z-]*\)@.*;/\1/p' | sort | paste -sd, -)"
printf '{"name":"%s","world":"%s","imports":[%s],"exports":[%s]}\n' "$name" "$world" \
"$(echo "$imports" | sed 's/\([a-z-]\+\)/"\1"/g')" "$(echo "$exports" | sed 's/\([a-z-]\+\)/"\1"/g')" \
> "build/components/$name.meta.json"
+2 -2
View File
@@ -22,12 +22,12 @@ generate() { # <out-dir> <ignore-stub: 0|1>
case "$name" in ''|'#'*) continue;; esac
extra=(); [ "$ignore" = 1 ] && extra+=(--ignore-stub)
wit-bindgen moonbit wit --world "$world" --out-dir "$out" \
--gen-dir "components/$name/gen" --project-name moonplasma/desktop \
--gen-dir "components/$name/gen" --project-name chandra/desktop \
--ignore-module-file "${extra[@]}" >/dev/null 2>"$log" || { cat "$log" >&2; exit 1; }
done < scripts/components.txt
extra=(); [ "$ignore" = 1 ] && extra+=(--ignore-stub)
wit-bindgen moonbit wit/gfx --world gui-loader --out-dir "$out" \
--gen-dir "components/gfx-gui/gen" --project-name moonplasma/desktop \
--gen-dir "components/gfx-gui/gen" --project-name chandra/desktop \
--ignore-module-file "${extra[@]}" >/dev/null 2>"$log" || { cat "$log" >&2; exit 1; }
}
+1 -1
View File
@@ -4,7 +4,7 @@
The generated imports are wasm-only (`extern "wasm"` / wasm import functions), so a package that
imports them can't build for the native target. This emits abort() bodies with the same
signatures, and rewrites moon.pkg to map ffi.mbt to wasm and native_stub.mbt to native.
scripts/gen-native-stubs.py interface/moonplasma/host/sys
scripts/gen-native-stubs.py interface/chandra/host/sys
"""
import re, sys, pathlib
+3 -3
View File
@@ -29,8 +29,8 @@ page.on('console', (m) => { if (m.type() === 'error') errors.push(m.text()); });
const T = 'time=2026-11-24T14:07:37';
const shot = async (name, query, steps) => {
await page.goto(`${url}?${T}&${query}`);
await page.waitForFunction(() => window.moonPlasma?.ready || window.moonPlasmaError, null, { timeout: 30000 });
const err = await page.evaluate(() => window.moonPlasmaError);
await page.waitForFunction(() => window.chandra?.ready || window.chandraError, null, { timeout: 30000 });
const err = await page.evaluate(() => window.chandraError);
if (err) throw new Error(`host failed in browser: ${err}`);
if (steps) await steps();
const f = join(outdir, `${tag}-${name}.png`);
@@ -47,7 +47,7 @@ await shot('2-launcher-open', 'config=desktop.json', async () => {
const [px, py] = await canvasPoint(100, 450); await page.mouse.move(px, py);
});
await shot('3-binary-clock-swapped', 'config=desktop.json', async () => {
await page.evaluate(() => window.moonPlasma.swap('clock', 'clock-binary'));
await page.evaluate(() => window.chandra.swap('clock', 'clock-binary'));
});
await shot('4-day-theme', 'config=desktop.json&theme=moon-day', async () => { await click(60, 700); });
await browser.close(); srv.close();
+1 -1
View File
@@ -36,6 +36,6 @@ 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 \
XDG_CONFIG_HOME="$(mktemp -d)" CHANDRA_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