M0: WIT package, MoonBit components, JS host, docs, CI (#1)
CI / test (push) Successful in 19s
CI / test (push) Successful in 19s
This commit was merged in pull request #1.
This commit is contained in:
1 parent
e5548fc067
commit
880ecd4102
141 files changed
+9681
-1
No files matched your search
@@ -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>;
|
||||
}
|
||||
Reference in new issue
Block a user