Files
chandra/wit/capabilities.wit
T
2026-11-24 23:51:26 +00:00

22 lines
606 B
Plaintext

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>;
}