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,4 +1,4 @@
|
||||
package moonplasma:desktop@0.1.0;
|
||||
package chandra:desktop@0.1.0;
|
||||
|
||||
/// Host-brokered capabilities. A component can only call what its world
|
||||
/// imports AND what the host grants it in the desktop manifest.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package moonplasma:compositor@0.2.0;
|
||||
package chandra:compositor@0.2.0;
|
||||
|
||||
interface surface {
|
||||
use moonplasma:desktop/types@0.1.0.{size, rect, draw-op};
|
||||
use chandra:desktop/types@0.1.0.{size, rect, draw-op};
|
||||
|
||||
/// Unforgeable host handle to a committed client buffer (SHM or DMA-BUF).
|
||||
/// Components cannot read pixels; they can only inspect metadata and
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package moonplasma:gfx@0.2.0;
|
||||
package chandra:gfx@0.2.0;
|
||||
|
||||
/// Host-agnostic GUI loader world backed by wasi-gfx surfaces & frame-buffers.
|
||||
world gui-loader {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package moonplasma:host@0.1.0;
|
||||
package chandra:host@0.1.0;
|
||||
|
||||
/// The login-session backend: the host takes the display (DRM/KMS) and input devices (libinput)
|
||||
/// through the seat (libseat) and the component only sees frames going out and events coming in.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package moonplasma:host@0.1.0;
|
||||
package chandra:host@0.1.0;
|
||||
|
||||
/// Panel modules (plasmoids) for a compositor that is itself a component. A component can't embed
|
||||
/// a second wasm runtime, so the host runs the modules (wasmtime) and the compositor drives them
|
||||
/// through this interface. It mirrors compositor/wasm: load, draw, events, plus the host data a
|
||||
/// module may read and the requests it may make.
|
||||
interface plasmoids {
|
||||
use moonplasma:desktop/types@0.1.0.{draw-op, input-event, size};
|
||||
use moonplasma:desktop/theme@0.1.0.{tokens};
|
||||
use chandra:desktop/types@0.1.0.{draw-op, input-event, size};
|
||||
use chandra:desktop/theme@0.1.0.{tokens};
|
||||
|
||||
/// A loaded module. `imports` is its capability grant: the host interfaces its binary imports
|
||||
/// (besides theme), e.g. ["clock"] or ["windows", "system"].
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package moonplasma:host@0.1.0;
|
||||
package chandra:host@0.1.0;
|
||||
|
||||
/// Drawing done by the host. The compositor component decides what the screen shows (windows,
|
||||
/// panel, wallpaper, decorations) and sends it as a list of draw operations; the host keeps the
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package moonplasma:host@0.1.0;
|
||||
package chandra:host@0.1.0;
|
||||
|
||||
/// The operating-system surface the compositor component needs, nothing more. The native host
|
||||
/// implements it with real syscalls; the component holds only integer handles (fds) and bytes.
|
||||
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
package moonplasma:desktop@0.1.0;
|
||||
package chandra:desktop@0.1.0;
|
||||
|
||||
/// The widget (plasmoid) contract.
|
||||
interface plasmoid {
|
||||
use types.{size, draw-op, input-event};
|
||||
|
||||
record plasmoid-info {
|
||||
/// Stable machine id, e.g. "org.moonplasma.clock.digital".
|
||||
/// Stable machine id, e.g. "org.chandra.clock.digital".
|
||||
id: string,
|
||||
name: string,
|
||||
preferred: size,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package moonplasma:desktop@0.1.0;
|
||||
package chandra:desktop@0.1.0;
|
||||
|
||||
/// Panel layout/chrome contract (the plasmashell "containment" analogue).
|
||||
interface panel-layout {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package moonplasma:desktop@0.1.0;
|
||||
package chandra:desktop@0.1.0;
|
||||
|
||||
/// Look-and-feel design tokens (Plasma "Look and Feel"/colour scheme analogue).
|
||||
interface theme {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package moonplasma:desktop@0.1.0;
|
||||
package chandra:desktop@0.1.0;
|
||||
|
||||
/// Shared value types. Everything here is plain data (no resources) so that
|
||||
/// it can cross any component boundary and any host implementation.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package moonplasma:wm@0.2.0;
|
||||
package chandra:wm@0.2.0;
|
||||
|
||||
interface decoration {
|
||||
use moonplasma:desktop/types@0.1.0.{rect, size, draw-op};
|
||||
use chandra:desktop/types@0.1.0.{rect, size, draw-op};
|
||||
use policy.{window-state};
|
||||
|
||||
enum hit-role {
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package moonplasma:wm@0.2.0;
|
||||
package chandra:wm@0.2.0;
|
||||
|
||||
interface policy {
|
||||
use moonplasma:desktop/types@0.1.0.{rect, size, point};
|
||||
use chandra:desktop/types@0.1.0.{rect, size, point};
|
||||
|
||||
type window-id = u64;
|
||||
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
package moonplasma:wm@0.2.0;
|
||||
package chandra:wm@0.2.0;
|
||||
|
||||
world window-manager {
|
||||
import moonplasma:desktop/theme@0.1.0;
|
||||
import chandra:desktop/theme@0.1.0;
|
||||
export policy;
|
||||
}
|
||||
|
||||
world decoration-provider {
|
||||
import moonplasma:desktop/theme@0.1.0;
|
||||
import chandra:desktop/theme@0.1.0;
|
||||
export decoration;
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package moonplasma:desktop@0.1.0;
|
||||
package chandra:desktop@0.1.0;
|
||||
|
||||
/// Minimum every widget gets: theme tokens. Everything else is opt-in.
|
||||
world widget {
|
||||
|
||||
Reference in new issue
Block a user