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:
323 files changed
+1055
-1013
No files matched your search
@@ -1,9 +1,9 @@
|
||||
# moon-plasma architecture
|
||||
# chandra architecture
|
||||
|
||||
> Status legend used throughout: **[M0]** implemented in this repository today,
|
||||
> **[designed]** interface sketched here but not in `wit/` yet, **[open]** needs a decision.
|
||||
|
||||
moon-plasma is a KDE-Plasma-like desktop in which **every part is a WebAssembly
|
||||
chandra is a KDE-Plasma-like desktop in which **every part is a WebAssembly
|
||||
component** (Component Model, WIT-defined interfaces, written in MoonBit) running
|
||||
on top of a deliberately tiny trusted **host**. The point is not to clone Plasma
|
||||
pixel for pixel; it is to take Plasma's *decomposition* (shell / window manager /
|
||||
@@ -12,7 +12,7 @@ versioned, permission-checked, hot-swappable interface.
|
||||
|
||||
## 1. Plasma → component-model map
|
||||
|
||||
| Plasma piece | What it does | moon-plasma counterpart | Component or host? |
|
||||
| Plasma piece | What it does | chandra counterpart | Component or host? |
|
||||
|---|---|---|---|
|
||||
| `plasmashell` (containments, panels) | Hosts the desktop & panels, loads plasmoids | `shell` component exporting `desktop-surface` + `panel-layout` **[M0]** | component |
|
||||
| Plasmoids / widgets (QML + C++/JS) | Clock, task manager, kickoff… | `widget` world exporting `plasmoid` **[M0]**: `digital-clock`, `binary-clock`, `launcher` | component, one instance per widget |
|
||||
@@ -187,7 +187,7 @@ WASI-style, deny-by-default:
|
||||
|
||||
## 7. Versioning WIT packages
|
||||
|
||||
* Packages are semver'd (`moonplasma:desktop@0.1.0`). While `0.x`, any minor may
|
||||
* Packages are semver'd (`chandra:desktop@0.1.0`). While `0.x`, any minor may
|
||||
break; components pin the exact package version in their world.
|
||||
* From `1.0`: **additive-only minors** – new interfaces, new functions, new
|
||||
worlds, new variant cases at the *end* only when consumers are required to
|
||||
@@ -195,9 +195,9 @@ WASI-style, deny-by-default:
|
||||
grow (e.g. `plasmoid-info`, `tokens`) should become `record` + `option`/`list`
|
||||
extension points before 1.0, or be replaced by a new interface version
|
||||
(`plasmoid@1.1`) that the host serves alongside the old one.
|
||||
* Split by domain so versions move independently: `moonplasma:desktop` (types,
|
||||
theme, plasmoid, panel), later `moonplasma:wm`, `moonplasma:search`,
|
||||
`moonplasma:notify`, `moonplasma:config`, `moonplasma:session`, `moonplasma:vfs`.
|
||||
* Split by domain so versions move independently: `chandra:desktop` (types,
|
||||
theme, plasmoid, panel), later `chandra:wm`, `chandra:search`,
|
||||
`chandra:notify`, `chandra:config`, `chandra:session`, `chandra:vfs`.
|
||||
* The host advertises the set of interface versions it implements and may
|
||||
serve N and N-1 side by side via adapters; a component declares what it
|
||||
targets and fails to load otherwise (no silent downgrade).
|
||||
@@ -223,7 +223,7 @@ does **not** transfer is `host/src/desktop.mjs`; it is intentionally small
|
||||
|
||||
## 9. Interface catalogue
|
||||
|
||||
Implemented in `wit/` (package `moonplasma:desktop@0.1.0`):
|
||||
Implemented in `wit/` (package `chandra:desktop@0.1.0`):
|
||||
|
||||
| Interface | Purpose |
|
||||
|---|---|
|
||||
|
||||
Reference in new issue
Block a user