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

+2 -2
View File
@@ -1,11 +1,11 @@
{
"name": "moon-plasma-host",
"name": "chandra-host",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "moon-plasma-host",
"name": "chandra-host",
"version": "0.1.0",
"devDependencies": {
"@bytecodealliance/jco": "1.42.0",
+2 -2
View File
@@ -1,9 +1,9 @@
{
"name": "moon-plasma-host",
"name": "chandra-host",
"private": true,
"version": "0.1.0",
"type": "module",
"description": "Host runtime for moon-plasma (M0: Node/browser host over jco-transpiled components)",
"description": "Host runtime for chandra (M0: Node/browser host over jco-transpiled components)",
"scripts": {
"test": "node --test test/*.test.mjs"
},
+1 -1
View File
@@ -26,5 +26,5 @@ export function serve(port = 0) {
if (process.argv[1] === fileURLToPath(import.meta.url)) {
const srv = await serve(Number(process.argv[2] ?? process.env.PORT ?? 8080));
console.log(`moon-plasma host: http://127.0.0.1:${srv.address().port}/`);
console.log(`chandra host: http://127.0.0.1:${srv.address().port}/`);
}
+2 -2
View File
@@ -1,4 +1,4 @@
// moon-plasma host core (platform-agnostic: runs in Node and the browser).
// chandra host core (platform-agnostic: runs in Node and the browser).
//
// Responsibilities (the *only* things that are not components):
// * instantiate components and broker capabilities (deny-by-default grants)
@@ -10,7 +10,7 @@
import { CAPABILITIES } from './platform.mjs';
import { place, translate } from './scene.mjs';
const PKG = 'moonplasma:desktop';
const PKG = 'chandra:desktop';
const PLASMOID = `${PKG}/plasmoid`;
const PANEL = `${PKG}/panel-layout`;
const DESKTOP = `${PKG}/desktop-surface`;
+4 -4
View File
@@ -15,7 +15,7 @@ const texts = (ops) => ops.filter((o) => o.tag === 'text').map((o) => o.val.text
const configWith = async (mutate) => {
const cfg = JSON.parse(await readFile(join(ROOT, 'config', 'desktop.json'), 'utf8'));
mutate(cfg);
const dir = await mkdtemp(join(tmpdir(), 'moonplasma-'));
const dir = await mkdtemp(join(tmpdir(), 'chandra-'));
const p = join(dir, 'desktop.json');
await writeFile(p, JSON.stringify(cfg));
return p;
@@ -29,7 +29,7 @@ test('boots shell + widgets and composes a frame', async () => {
const t = texts(f.ops);
assert.ok(t.includes('14:07'), `clock text missing: ${t}`);
assert.ok(t.includes('Tue 24 Nov'));
assert.ok(t.includes('moon-plasma'));
assert.ok(t.includes('chandra'));
assert.ok(t.includes('Applications'));
assert.equal(desktop.faults.length, 0);
});
@@ -60,7 +60,7 @@ test('launcher: click opens popup, row click launches via host capability, popup
// second row (52px header + 46px rows)
desktop.pointer('move', pr.x + 20, pr.y + 52 + 46 + 5);
desktop.pointer('down', pr.x + 20, pr.y + 52 + 46 + 5);
assert.deepEqual(platform.launches, ['org.moonplasma.files']);
assert.deepEqual(platform.launches, ['org.chandra.files']);
desktop.frame();
assert.equal(desktop.hit.popup, null, 'popup closed after launch');
});
@@ -76,7 +76,7 @@ test('launcher: keyboard search narrows the list and Enter launches the first ma
const t = texts(f.ops);
assert.ok(t.includes('Calculator') && !t.includes('Terminal'));
desktop.key('Enter');
assert.deepEqual(platform.launches, ['org.moonplasma.calc']);
assert.deepEqual(platform.launches, ['org.chandra.calc']);
});
test('clicking outside the popup dismisses it (focus-lost)', async () => {
+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>moon-plasma</title>
<title>chandra</title>
<style>
html, body { margin: 0; background: #05070d; color: #aab; font: 12px/1.4 system-ui, sans-serif; }
#screen { display: block; margin: 0 auto; max-width: 100vw; }
+2 -2
View File
@@ -70,7 +70,7 @@ try {
if (!fixed) setInterval(redraw, 1000);
status.textContent = `${desktop.widgets.map((w) => `${w.id}=${w.componentName}`).join(' ')} | theme: ${platform.tokens.name} | wasi-gfx`;
// Handle for automation / the browser console.
window.moonPlasma = {
window.chandra = {
desktop,
platform,
gfxSurface,
@@ -82,6 +82,6 @@ try {
} catch (e) {
status.textContent = `ERROR: ${e.message}`;
status.style.color = '#f66';
window.moonPlasmaError = String(e.stack ?? e);
window.chandraError = String(e.stack ?? e);
throw e;
}