WIT package, MoonBit components, Node host and tests (WIP)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
SpriteandClaude Sonnet 5.5 committed 2026-11-24 23:36:35 +00:00
1 parent e5548fc067
commit e0bde1d150
125 files changed
+8681

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
package moonplasma: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.
interface clock {
use types.{datetime};
/// Local wall-clock time (the host owns the time zone).
now: func() -> datetime;
}
interface app-catalog {
use types.{app-entry};
/// Installed applications (static list in the PoC; .desktop files later).
list-apps: func() -> list<app-entry>;
}
interface app-launch {
/// Ask the host to start an application by catalog id.
launch: func(id: string) -> result<_, string>;
}