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

+7 -7
View File
@@ -47,7 +47,7 @@ Component sizes are 24–33 KB each (release build, no wasm-opt).
* Generated helper functions are emitted in nondeterministic order, so
`scripts/gen-bindings.sh --check` compares sorted lines, not bytes.
* `moon.mod.json` is no longer accepted by this moon (0.1.20261119): use `moon.mod`.
* jco strips the `@version` from import keys (`moonplasma:desktop/clock`), and
* jco strips the `@version` from import keys (`chandra:desktop/clock`), and
maps WIT `variant` → `{tag, val}`, `enum` → string, `option` → value/`undefined`,
`result` import returns → `{tag:'ok'|'err', val}` (or throw).
* `moon test` runs on the wasm target through `moonrun`; packages that import the
@@ -60,7 +60,7 @@ Component sizes are 24–33 KB each (release build, no wasm-opt).
| Package | Relevance | Backends / caveat |
|---|---|---|
| `mizchi/wit` 0.4.x | WIT parser/resolver in MoonBit | could power an in-MoonBit `moon-plasma` CLI that inspects worlds; not needed at M0 |
| `mizchi/wit` 0.4.x | WIT parser/resolver in MoonBit | could power an in-MoonBit `chandra` CLI that inspects worlds; not needed at M0 |
| `moonrockz/wit` | WIT scanner/CST/formatter | same |
| `mizchi/wite` 0.11 | component-aware analyzer/optimizer (`wite` can verify a component against WIT, compose WAC) | candidate replacement for `wasm-tools` size/verify steps |
| `moonbitlang/async` | async runtime (native/…); not a component-model async | the component-model async ABI (WASIp3) is in wit-bindgen's backend but out of scope until hosts support it |
@@ -96,16 +96,16 @@ wit-bindgen 0.63.0, wasmtime 51.0.0, jco 1.42.0, Node 20/24.
```bash
wit-bindgen moonbit wit --world clock-widget --out-dir . \
--gen-dir components/clock-digital/gen --project-name moonplasma/desktop --ignore-module-file
--gen-dir components/clock-digital/gen --project-name chandra/desktop --ignore-module-file
moon build --target wasm --release
wasm-tools component embed wit _build/wasm/release/build/components/clock-digital/gen/gen.wasm \
--world clock-widget --encoding utf16 -o e.wasm
wasm-tools component new e.wasm -o build/components/clock-digital.wasm
wasm-tools component wit build/components/clock-digital.wasm
# world root { import moonplasma:desktop/types@0.1.0;
# import moonplasma:desktop/clock@0.1.0;
# import moonplasma:desktop/theme@0.1.0;
# export moonplasma:desktop/plasmoid@0.1.0; }
# world root { import chandra:desktop/types@0.1.0;
# import chandra:desktop/clock@0.1.0;
# import chandra:desktop/theme@0.1.0;
# export chandra:desktop/plasmoid@0.1.0; }
jco transpile build/components/clock-digital.wasm -o build/jco/clock-digital --instantiation async
node host/src/cli.mjs --time 2026-11-24T14:07:00 # instantiates all components, prints the desktop
```