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

@@ -1,7 +1,7 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportListApps(p0 : Int) = "moonplasma:desktop/app-catalog@0.1.0" "list-apps"
fn wasmImportListApps(p0 : Int) = "chandra:desktop/app-catalog@0.1.0" "list-apps"
///|
extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
@@ -0,0 +1,5 @@
import {
"chandra/desktop/interface/chandra/desktop/types" @types,
}
warnings = "-44"
@@ -1,8 +1,8 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/moonplasma/desktop/app-catalog"
package "chandra/desktop/interface/chandra/desktop/app-catalog"
import {
"moonplasma/desktop/interface/moonplasma/desktop/types",
"chandra/desktop/interface/chandra/desktop/types",
}
// Values
@@ -1,7 +1,7 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportLaunch(p0 : Int, p1 : Int, p2 : Int) = "moonplasma:desktop/app-launch@0.1.0" "launch"
fn wasmImportLaunch(p0 : Int, p1 : Int, p2 : Int) = "chandra:desktop/app-launch@0.1.0" "launch"
///|
#owned(str)
@@ -1,5 +1,5 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/moonplasma/desktop/app-launch"
package "chandra/desktop/interface/chandra/desktop/app-launch"
// Values
pub fn launch(String) -> Result[Unit, String]
@@ -1,7 +1,7 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportNow(p0 : Int) = "moonplasma:desktop/clock@0.1.0" "now"
fn wasmImportNow(p0 : Int) = "chandra:desktop/clock@0.1.0" "now"
///|
extern "wasm" fn mbt_ffi_free(position : Int) =
+5
View File
@@ -0,0 +1,5 @@
import {
"chandra/desktop/interface/chandra/desktop/types" @types,
}
warnings = "-44"
@@ -1,8 +1,8 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/moonplasma/desktop/clock"
package "chandra/desktop/interface/chandra/desktop/clock"
import {
"moonplasma/desktop/interface/moonplasma/desktop/types",
"chandra/desktop/interface/chandra/desktop/types",
}
// Values
@@ -0,0 +1,8 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportIsOn() -> Int = "chandra:desktop/inspector@0.1.0" "is-on"
///|
fn wasmImportSetOn(p0 : Int) = "chandra:desktop/inspector@0.1.0" "set-on"
@@ -1,25 +1,22 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportWallpapers(p0 : Int) = "moonplasma:desktop/wallpaper@0.1.0" "wallpapers"
fn wasmImportLayoutModes(p0 : Int) = "chandra:desktop/layout-control@0.1.0" "layout-modes"
///|
fn wasmImportCurrentWallpaper() -> Int = "moonplasma:desktop/wallpaper@0.1.0" "current-wallpaper"
fn wasmImportCurrentLayout() -> Int = "chandra:desktop/layout-control@0.1.0" "current-layout"
///|
fn wasmImportSetWallpaper(p0 : Int) = "moonplasma:desktop/wallpaper@0.1.0" "set-wallpaper"
fn wasmImportSetLayout(p0 : Int) = "chandra:desktop/layout-control@0.1.0" "set-layout"
///|
extern "wasm" fn mbt_ffi_free(position : Int) =
#|(func (param i32) local.get 0 call $moonbit.decref)
///|
extern "wasm" fn mbt_ffi_load32(offset : Int) -> Int =
#|(func (param i32) (result i32) local.get 0 i32.load)
///|
extern "wasm" fn mbt_ffi_ptr2str(ptr : Int, len : Int) -> String =
#|(func (param i32) (param i32) (result i32)
#| local.get 0
#| local.get 1 call $moonbit.init_array16
#| local.get 0)
///|
extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
#|(func (param i32) (result i32) (local i32)
@@ -28,6 +25,9 @@ extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
#| local.get 1)
///|
extern "wasm" fn mbt_ffi_free(position : Int) =
#|(func (param i32) local.get 0 call $moonbit.decref)
extern "wasm" fn mbt_ffi_ptr2str(ptr : Int, len : Int) -> String =
#|(func (param i32) (param i32) (result i32)
#| local.get 0
#| local.get 1 call $moonbit.init_array16
#| local.get 0)
@@ -1,19 +1,19 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportAvailable(p0 : Int) = "moonplasma:desktop/modules@0.1.0" "available"
fn wasmImportAvailable(p0 : Int) = "chandra:desktop/modules@0.1.0" "available"
///|
fn wasmImportLoaded(p0 : Int) = "moonplasma:desktop/modules@0.1.0" "loaded"
fn wasmImportLoaded(p0 : Int) = "chandra:desktop/modules@0.1.0" "loaded"
///|
fn wasmImportLoadModule(p0 : Int, p1 : Int) = "moonplasma:desktop/modules@0.1.0" "load-module"
fn wasmImportLoadModule(p0 : Int, p1 : Int) = "chandra:desktop/modules@0.1.0" "load-module"
///|
fn wasmImportUnloadInstance(p0 : Int, p1 : Int) = "moonplasma:desktop/modules@0.1.0" "unload-instance"
fn wasmImportUnloadInstance(p0 : Int, p1 : Int) = "chandra:desktop/modules@0.1.0" "unload-instance"
///|
fn wasmImportBrowse() = "moonplasma:desktop/modules@0.1.0" "browse"
fn wasmImportBrowse() = "chandra:desktop/modules@0.1.0" "browse"
///|
extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
@@ -0,0 +1,5 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportLogout() = "chandra:desktop/session@0.1.0" "logout"
@@ -1,7 +1,7 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportGetTokens(p0 : Int) = "moonplasma:desktop/theme@0.1.0" "get-tokens"
fn wasmImportGetTokens(p0 : Int) = "chandra:desktop/theme@0.1.0" "get-tokens"
///|
extern "wasm" fn mbt_ffi_free(position : Int) =
@@ -1,5 +1,5 @@
import {
"moonplasma/desktop/interface/moonplasma/desktop/types" @types,
"chandra/desktop/interface/chandra/desktop/types" @types,
}
warnings = "-44"
@@ -1,8 +1,8 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/moonplasma/desktop/theme"
package "chandra/desktop/interface/chandra/desktop/theme"
import {
"moonplasma/desktop/interface/moonplasma/desktop/types",
"chandra/desktop/interface/chandra/desktop/types",
}
// Values
@@ -1,5 +1,5 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/moonplasma/desktop/types"
package "chandra/desktop/interface/chandra/desktop/types"
// Values
@@ -1,22 +1,25 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportLayoutModes(p0 : Int) = "moonplasma:desktop/layout-control@0.1.0" "layout-modes"
fn wasmImportWallpapers(p0 : Int) = "chandra:desktop/wallpaper@0.1.0" "wallpapers"
///|
fn wasmImportCurrentLayout() -> Int = "moonplasma:desktop/layout-control@0.1.0" "current-layout"
fn wasmImportCurrentWallpaper() -> Int = "chandra:desktop/wallpaper@0.1.0" "current-wallpaper"
///|
fn wasmImportSetLayout(p0 : Int) = "moonplasma:desktop/layout-control@0.1.0" "set-layout"
///|
extern "wasm" fn mbt_ffi_free(position : Int) =
#|(func (param i32) local.get 0 call $moonbit.decref)
fn wasmImportSetWallpaper(p0 : Int) = "chandra:desktop/wallpaper@0.1.0" "set-wallpaper"
///|
extern "wasm" fn mbt_ffi_load32(offset : Int) -> Int =
#|(func (param i32) (result i32) local.get 0 i32.load)
///|
extern "wasm" fn mbt_ffi_ptr2str(ptr : Int, len : Int) -> String =
#|(func (param i32) (param i32) (result i32)
#| local.get 0
#| local.get 1 call $moonbit.init_array16
#| local.get 0)
///|
extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
#|(func (param i32) (result i32) (local i32)
@@ -25,9 +28,6 @@ extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
#| local.get 1)
///|
extern "wasm" fn mbt_ffi_ptr2str(ptr : Int, len : Int) -> String =
#|(func (param i32) (param i32) (result i32)
#| local.get 0
#| local.get 1 call $moonbit.init_array16
#| local.get 0)
extern "wasm" fn mbt_ffi_free(position : Int) =
#|(func (param i32) local.get 0 call $moonbit.decref)
@@ -1,16 +1,16 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportListWindows(p0 : Int) = "moonplasma:desktop/windows@0.1.0" "list-windows"
fn wasmImportListWindows(p0 : Int) = "chandra:desktop/windows@0.1.0" "list-windows"
///|
fn wasmImportFocusWindow(p0 : Int) = "moonplasma:desktop/windows@0.1.0" "focus-window"
fn wasmImportFocusWindow(p0 : Int) = "chandra:desktop/windows@0.1.0" "focus-window"
///|
fn wasmImportAll(p0 : Int) = "moonplasma:desktop/windows@0.1.0" "all"
fn wasmImportAll(p0 : Int) = "chandra:desktop/windows@0.1.0" "all"
///|
fn wasmImportFocus(p0 : Int64) = "moonplasma:desktop/windows@0.1.0" "focus"
fn wasmImportFocus(p0 : Int64) = "chandra:desktop/windows@0.1.0" "focus"
///|
extern "wasm" fn mbt_ffi_load8_u(offset : Int) -> Int =
@@ -1,28 +1,28 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportOpen(p0 : Int) = "moonplasma:host/display@0.1.0" "open"
fn wasmImportOpen(p0 : Int) = "chandra:host/display@0.1.0" "open"
///|
fn wasmImportPoll() -> Int = "moonplasma:host/display@0.1.0" "poll"
fn wasmImportPoll() -> Int = "chandra:host/display@0.1.0" "poll"
///|
fn wasmImportFrameReady() -> Int = "moonplasma:host/display@0.1.0" "frame-ready"
fn wasmImportFrameReady() -> Int = "chandra:host/display@0.1.0" "frame-ready"
///|
fn wasmImportPresent(p0 : Int, p1 : Int, p2 : Int, p3 : Int) = "moonplasma:host/display@0.1.0" "present"
fn wasmImportPresent(p0 : Int, p1 : Int, p2 : Int, p3 : Int) = "chandra:host/display@0.1.0" "present"
///|
fn wasmImportPresentFrame() = "moonplasma:host/display@0.1.0" "present-frame"
fn wasmImportPresentFrame() = "chandra:host/display@0.1.0" "present-frame"
///|
fn wasmImportSetCursorShape(p0 : Int) = "moonplasma:host/display@0.1.0" "set-cursor-shape"
fn wasmImportSetCursorShape(p0 : Int) = "chandra:host/display@0.1.0" "set-cursor-shape"
///|
fn wasmImportTakeInput(p0 : Int) = "moonplasma:host/display@0.1.0" "take-input"
fn wasmImportTakeInput(p0 : Int) = "chandra:host/display@0.1.0" "take-input"
///|
fn wasmImportClose() = "moonplasma:host/display@0.1.0" "close"
fn wasmImportClose() = "chandra:host/display@0.1.0" "close"
///|
extern "wasm" fn mbt_ffi_ptr2bytes(ptr : Int, len : Int) -> FixedArray[Byte] =
@@ -1,5 +1,5 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/moonplasma/host/display"
package "chandra/desktop/interface/chandra/host/display"
// Values
pub fn close() -> Unit
@@ -1,10 +1,10 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportLoad(p0 : Int, p1 : Int, p2 : Int) -> Int = "moonplasma:host/font@0.1.0" "load"
fn wasmImportLoad(p0 : Int, p1 : Int, p2 : Int) -> Int = "chandra:host/font@0.1.0" "load"
///|
fn wasmImportRasterise(p0 : Int, p1 : Int, p2 : Int, p3 : Int) = "moonplasma:host/font@0.1.0" "rasterise"
fn wasmImportRasterise(p0 : Int, p1 : Int, p2 : Int, p3 : Int) = "chandra:host/font@0.1.0" "rasterise"
///|
extern "wasm" fn mbt_ffi_load32(offset : Int) -> Int =
File renamed without changes.
File renamed without changes.
@@ -1,52 +1,52 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportLoad(p0 : Int, p1 : Int, p2 : Int) = "moonplasma:host/plasmoids@0.1.0" "load"
fn wasmImportLoad(p0 : Int, p1 : Int, p2 : Int) = "chandra:host/plasmoids@0.1.0" "load"
///|
fn wasmImportUnload(p0 : Int) = "moonplasma:host/plasmoids@0.1.0" "unload"
fn wasmImportUnload(p0 : Int) = "chandra:host/plasmoids@0.1.0" "unload"
///|
fn wasmImportSetTokens(p0 : Int) = "moonplasma:host/plasmoids@0.1.0" "set-tokens"
fn wasmImportSetTokens(p0 : Int) = "chandra:host/plasmoids@0.1.0" "set-tokens"
///|
fn wasmImportRender(p0 : Int, p1 : Int, p2 : Int, p3 : Int) = "moonplasma:host/plasmoids@0.1.0" "render"
fn wasmImportRender(p0 : Int, p1 : Int, p2 : Int, p3 : Int) = "chandra:host/plasmoids@0.1.0" "render"
///|
fn wasmImportPopup(p0 : Int, p1 : Int) = "moonplasma:host/plasmoids@0.1.0" "popup"
fn wasmImportPopup(p0 : Int, p1 : Int) = "chandra:host/plasmoids@0.1.0" "popup"
///|
fn wasmImportOnEvent(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int) -> Int = "moonplasma:host/plasmoids@0.1.0" "on-event"
fn wasmImportOnEvent(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int) -> Int = "chandra:host/plasmoids@0.1.0" "on-event"
///|
fn wasmImportPublishTable(p0 : Int, p1 : Int, p2 : Int) = "moonplasma:host/plasmoids@0.1.0" "publish-table"
fn wasmImportPublishTable(p0 : Int, p1 : Int, p2 : Int) = "chandra:host/plasmoids@0.1.0" "publish-table"
///|
fn wasmImportPublishState(p0 : Int, p1 : Int) = "moonplasma:host/plasmoids@0.1.0" "publish-state"
fn wasmImportPublishState(p0 : Int, p1 : Int) = "chandra:host/plasmoids@0.1.0" "publish-state"
///|
fn wasmImportPublishWallpaper(p0 : Int) = "moonplasma:host/plasmoids@0.1.0" "publish-wallpaper"
fn wasmImportPublishWallpaper(p0 : Int) = "chandra:host/plasmoids@0.1.0" "publish-wallpaper"
///|
fn wasmImportPublishSystem(p0 : Int, p1 : Int64, p2 : Int64, p3 : Int, p4 : Int, p5 : Int64, p6 : Int64, p7 : Int64, p8 : Int) = "moonplasma:host/plasmoids@0.1.0" "publish-system"
fn wasmImportPublishSystem(p0 : Int, p1 : Int64, p2 : Int64, p3 : Int, p4 : Int, p5 : Int64, p6 : Int64, p7 : Int64, p8 : Int) = "chandra:host/plasmoids@0.1.0" "publish-system"
///|
fn wasmImportPublishWindows(p0 : Int, p1 : Int) = "moonplasma:host/plasmoids@0.1.0" "publish-windows"
fn wasmImportPublishWindows(p0 : Int, p1 : Int) = "chandra:host/plasmoids@0.1.0" "publish-windows"
///|
fn wasmImportNextRequest(p0 : Int) = "moonplasma:host/plasmoids@0.1.0" "next-request"
fn wasmImportNextRequest(p0 : Int) = "chandra:host/plasmoids@0.1.0" "next-request"
///|
fn wasmImportTakeFocusRequest(p0 : Int) = "moonplasma:host/plasmoids@0.1.0" "take-focus-request"
fn wasmImportTakeFocusRequest(p0 : Int) = "chandra:host/plasmoids@0.1.0" "take-focus-request"
///|
fn wasmImportListWasmFiles(p0 : Int, p1 : Int, p2 : Int) = "moonplasma:host/plasmoids@0.1.0" "list-wasm-files"
fn wasmImportListWasmFiles(p0 : Int, p1 : Int, p2 : Int) = "chandra:host/plasmoids@0.1.0" "list-wasm-files"
///|
fn wasmImportPickerStart() -> Int = "moonplasma:host/plasmoids@0.1.0" "picker-start"
fn wasmImportPickerStart() -> Int = "chandra:host/plasmoids@0.1.0" "picker-start"
///|
fn wasmImportPickerPoll(p0 : Int) = "moonplasma:host/plasmoids@0.1.0" "picker-poll"
fn wasmImportPickerPoll(p0 : Int) = "chandra:host/plasmoids@0.1.0" "picker-poll"
///|
extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
@@ -1,6 +1,6 @@
import {
"moonplasma/desktop/interface/moonplasma/desktop/theme" @theme,
"moonplasma/desktop/interface/moonplasma/desktop/types" @types,
"chandra/desktop/interface/chandra/desktop/theme" @theme,
"chandra/desktop/interface/chandra/desktop/types" @types,
}
warnings = "-44"
@@ -1,9 +1,9 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/moonplasma/host/plasmoids"
package "chandra/desktop/interface/chandra/host/plasmoids"
import {
"moonplasma/desktop/interface/moonplasma/desktop/theme",
"moonplasma/desktop/interface/moonplasma/desktop/types",
"chandra/desktop/interface/chandra/desktop/theme",
"chandra/desktop/interface/chandra/desktop/types",
}
// Values
@@ -1,19 +1,19 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportCapture(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int) -> Int = "moonplasma:host/raster@0.1.0" "capture"
fn wasmImportCapture(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int) -> Int = "chandra:host/raster@0.1.0" "capture"
///|
fn wasmImportRelease(p0 : Int) = "moonplasma:host/raster@0.1.0" "release"
fn wasmImportRelease(p0 : Int) = "chandra:host/raster@0.1.0" "release"
///|
fn wasmImportSubmit(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int, p6 : Int, p7 : Int, p8 : Int, p9 : Int, p10 : Int, p11 : Int, p12 : Int) = "moonplasma:host/raster@0.1.0" "submit"
fn wasmImportSubmit(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int, p6 : Int, p7 : Int, p8 : Int, p9 : Int, p10 : Int, p11 : Int, p12 : Int) = "chandra:host/raster@0.1.0" "submit"
///|
fn wasmImportReadFrame(p0 : Int) = "moonplasma:host/raster@0.1.0" "read-frame"
fn wasmImportReadFrame(p0 : Int) = "chandra:host/raster@0.1.0" "read-frame"
///|
fn wasmImportExportMemfd() -> Int = "moonplasma:host/raster@0.1.0" "export-memfd"
fn wasmImportExportMemfd() -> Int = "chandra:host/raster@0.1.0" "export-memfd"
///|
extern "wasm" fn mbt_ffi_store8(offset : Int, value : Int) =
File renamed without changes.
+116
View File
@@ -0,0 +1,116 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportUnixListen(p0 : Int, p1 : Int) -> Int = "chandra:host/sys@0.1.0" "unix-listen"
///|
fn wasmImportUnixAccept(p0 : Int) -> Int = "chandra:host/sys@0.1.0" "unix-accept"
///|
fn wasmImportUnixConnect(p0 : Int, p1 : Int) -> Int = "chandra:host/sys@0.1.0" "unix-connect"
///|
fn wasmImportCloseFd(p0 : Int) = "chandra:host/sys@0.1.0" "close-fd"
///|
fn wasmImportUnlink(p0 : Int, p1 : Int) = "chandra:host/sys@0.1.0" "unlink"
///|
fn wasmImportPollRead(p0 : Int, p1 : Int) -> Int = "chandra:host/sys@0.1.0" "poll-read"
///|
fn wasmImportRecvmsg(p0 : Int, p1 : Int, p2 : Int) = "chandra:host/sys@0.1.0" "recvmsg"
///|
fn wasmImportSendmsg(p0 : Int, p1 : Int, p2 : Int, p3 : Int) -> Int = "chandra:host/sys@0.1.0" "sendmsg"
///|
fn wasmImportMemfdCreate(p0 : Int, p1 : Int, p2 : Int) -> Int = "chandra:host/sys@0.1.0" "memfd-create"
///|
fn wasmImportPwrite(p0 : Int, p1 : Int, p2 : Int, p3 : Int) -> Int = "chandra:host/sys@0.1.0" "pwrite"
///|
fn wasmImportMmapRead(p0 : Int, p1 : Int, p2 : Int) = "chandra:host/sys@0.1.0" "mmap-read"
///|
fn wasmImportMmapReadAt(p0 : Int, p1 : Int, p2 : Int, p3 : Int) = "chandra:host/sys@0.1.0" "mmap-read-at"
///|
fn wasmImportReadFile(p0 : Int, p1 : Int, p2 : Int) = "chandra:host/sys@0.1.0" "read-file"
///|
fn wasmImportWriteFile(p0 : Int, p1 : Int, p2 : Int, p3 : Int) -> Int = "chandra:host/sys@0.1.0" "write-file"
///|
fn wasmImportReadProc(p0 : Int, p1 : Int, p2 : Int) = "chandra:host/sys@0.1.0" "read-proc"
///|
fn wasmImportMkdirP(p0 : Int, p1 : Int) -> Int = "chandra:host/sys@0.1.0" "mkdir-p"
///|
fn wasmImportListDesktopFiles(p0 : Int, p1 : Int, p2 : Int) = "chandra:host/sys@0.1.0" "list-desktop-files"
///|
fn wasmImportSleepMs(p0 : Int) = "chandra:host/sys@0.1.0" "sleep-ms"
///|
fn wasmImportMonotonicMs() -> Int64 = "chandra:host/sys@0.1.0" "monotonic-ms"
///|
fn wasmImportLog(p0 : Int, p1 : Int) = "chandra:host/sys@0.1.0" "log"
///|
fn wasmImportGetpid() -> Int = "chandra:host/sys@0.1.0" "getpid"
///|
fn wasmImportWallTimeField(p0 : Int) -> Int = "chandra:host/sys@0.1.0" "wall-time-field"
///|
fn wasmImportGetenv(p0 : Int, p1 : Int, p2 : Int) = "chandra:host/sys@0.1.0" "getenv"
///|
fn wasmImportHasExe(p0 : Int, p1 : Int) -> Int = "chandra:host/sys@0.1.0" "has-exe"
///|
fn wasmImportSpawn(p0 : Int, p1 : Int, p2 : Int, p3 : Int) -> Int = "chandra:host/sys@0.1.0" "spawn"
///|
#owned(str)
extern "wasm" fn mbt_ffi_str2ptr(str : String) -> Int =
#|(func (param i32) (result i32) local.get 0)
///|
extern "wasm" fn mbt_ffi_load32(offset : Int) -> Int =
#|(func (param i32) (result i32) local.get 0 i32.load)
///|
extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
#|(func (param i32) (result i32) (local i32)
#| local.get 0 i32.const 4 i32.add call $moonbit.gc.malloc
#| local.tee 1 i32.const 0 call $moonbit.init_array8
#| local.get 1)
///|
extern "wasm" fn mbt_ffi_ptr2bytes(ptr : Int, len : Int) -> FixedArray[Byte] =
#|(func (param i32) (param i32) (result i32)
#| local.get 0
#| local.get 1 call $moonbit.init_array8
#| local.get 0)
///|
extern "wasm" fn mbt_ffi_ptr2str(ptr : Int, len : Int) -> String =
#|(func (param i32) (param i32) (result i32)
#| local.get 0
#| local.get 1 call $moonbit.init_array16
#| local.get 0)
///|
extern "wasm" fn mbt_ffi_free(position : Int) =
#|(func (param i32) local.get 0 call $moonbit.decref)
///|
#owned(bytes)
extern "wasm" fn mbt_ffi_bytes2ptr(bytes : FixedArray[Byte]) -> Int =
#|(func (param i32) (result i32) local.get 0)
File renamed without changes.
@@ -1,5 +1,5 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/moonplasma/host/sys"
package "chandra/desktop/interface/chandra/host/sys"
// Values
pub fn close_fd(Int32) -> Unit
File renamed without changes.
@@ -1,25 +1,25 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportSyncWindows(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int) = "moonplasma:wm/policy@0.2.0" "sync-windows"
fn wasmImportSyncWindows(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int) = "chandra:wm/policy@0.2.0" "sync-windows"
///|
fn wasmImportOnWindowOpen(p0 : Int, p1 : Int) = "moonplasma:wm/policy@0.2.0" "on-window-open"
fn wasmImportOnWindowOpen(p0 : Int, p1 : Int) = "chandra:wm/policy@0.2.0" "on-window-open"
///|
fn wasmImportOnWindowClose(p0 : Int64, p1 : Int) = "moonplasma:wm/policy@0.2.0" "on-window-close"
fn wasmImportOnWindowClose(p0 : Int64, p1 : Int) = "chandra:wm/policy@0.2.0" "on-window-close"
///|
fn wasmImportOnWindowRequest(p0 : Int64, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int, p6 : Int, p7 : Int, p8 : Int) = "moonplasma:wm/policy@0.2.0" "on-window-request"
fn wasmImportOnWindowRequest(p0 : Int64, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int, p6 : Int, p7 : Int, p8 : Int) = "chandra:wm/policy@0.2.0" "on-window-request"
///|
fn wasmImportOnPointer(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int) = "moonplasma:wm/policy@0.2.0" "on-pointer"
fn wasmImportOnPointer(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int) = "chandra:wm/policy@0.2.0" "on-pointer"
///|
fn wasmImportSetLayoutMode(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int) = "moonplasma:wm/policy@0.2.0" "set-layout-mode"
fn wasmImportSetLayoutMode(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int) = "chandra:wm/policy@0.2.0" "set-layout-mode"
///|
fn wasmImportStackingOrder(p0 : Int) = "moonplasma:wm/policy@0.2.0" "stacking-order"
fn wasmImportStackingOrder(p0 : Int) = "chandra:wm/policy@0.2.0" "stacking-order"
///|
extern "wasm" fn mbt_ffi_load8_u(offset : Int) -> Int =
+5
View File
@@ -0,0 +1,5 @@
import {
"chandra/desktop/interface/chandra/desktop/types" @types,
}
warnings = "-44"
@@ -1,8 +1,8 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/moonplasma/wm/policy"
package "chandra/desktop/interface/chandra/wm/policy"
import {
"moonplasma/desktop/interface/moonplasma/desktop/types",
"chandra/desktop/interface/chandra/desktop/types",
}
// Values
File renamed without changes.
@@ -1,5 +0,0 @@
import {
"moonplasma/desktop/interface/moonplasma/desktop/types" @types,
}
warnings = "-44"
@@ -1,5 +0,0 @@
import {
"moonplasma/desktop/interface/moonplasma/desktop/types" @types,
}
warnings = "-44"
@@ -1,8 +0,0 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportIsOn() -> Int = "moonplasma:desktop/inspector@0.1.0" "is-on"
///|
fn wasmImportSetOn(p0 : Int) = "moonplasma:desktop/inspector@0.1.0" "set-on"
@@ -1,5 +0,0 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportLogout() = "moonplasma:desktop/session@0.1.0" "logout"
-116
View File
@@ -1,116 +0,0 @@
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportUnixListen(p0 : Int, p1 : Int) -> Int = "moonplasma:host/sys@0.1.0" "unix-listen"
///|
fn wasmImportUnixAccept(p0 : Int) -> Int = "moonplasma:host/sys@0.1.0" "unix-accept"
///|
fn wasmImportUnixConnect(p0 : Int, p1 : Int) -> Int = "moonplasma:host/sys@0.1.0" "unix-connect"
///|
fn wasmImportCloseFd(p0 : Int) = "moonplasma:host/sys@0.1.0" "close-fd"
///|
fn wasmImportUnlink(p0 : Int, p1 : Int) = "moonplasma:host/sys@0.1.0" "unlink"
///|
fn wasmImportPollRead(p0 : Int, p1 : Int) -> Int = "moonplasma:host/sys@0.1.0" "poll-read"
///|
fn wasmImportRecvmsg(p0 : Int, p1 : Int, p2 : Int) = "moonplasma:host/sys@0.1.0" "recvmsg"
///|
fn wasmImportSendmsg(p0 : Int, p1 : Int, p2 : Int, p3 : Int) -> Int = "moonplasma:host/sys@0.1.0" "sendmsg"
///|
fn wasmImportMemfdCreate(p0 : Int, p1 : Int, p2 : Int) -> Int = "moonplasma:host/sys@0.1.0" "memfd-create"
///|
fn wasmImportPwrite(p0 : Int, p1 : Int, p2 : Int, p3 : Int) -> Int = "moonplasma:host/sys@0.1.0" "pwrite"
///|
fn wasmImportMmapRead(p0 : Int, p1 : Int, p2 : Int) = "moonplasma:host/sys@0.1.0" "mmap-read"
///|
fn wasmImportMmapReadAt(p0 : Int, p1 : Int, p2 : Int, p3 : Int) = "moonplasma:host/sys@0.1.0" "mmap-read-at"
///|
fn wasmImportReadFile(p0 : Int, p1 : Int, p2 : Int) = "moonplasma:host/sys@0.1.0" "read-file"
///|
fn wasmImportWriteFile(p0 : Int, p1 : Int, p2 : Int, p3 : Int) -> Int = "moonplasma:host/sys@0.1.0" "write-file"
///|
fn wasmImportReadProc(p0 : Int, p1 : Int, p2 : Int) = "moonplasma:host/sys@0.1.0" "read-proc"
///|
fn wasmImportMkdirP(p0 : Int, p1 : Int) -> Int = "moonplasma:host/sys@0.1.0" "mkdir-p"
///|
fn wasmImportListDesktopFiles(p0 : Int, p1 : Int, p2 : Int) = "moonplasma:host/sys@0.1.0" "list-desktop-files"
///|
fn wasmImportSleepMs(p0 : Int) = "moonplasma:host/sys@0.1.0" "sleep-ms"
///|
fn wasmImportMonotonicMs() -> Int64 = "moonplasma:host/sys@0.1.0" "monotonic-ms"
///|
fn wasmImportLog(p0 : Int, p1 : Int) = "moonplasma:host/sys@0.1.0" "log"
///|
fn wasmImportGetpid() -> Int = "moonplasma:host/sys@0.1.0" "getpid"
///|
fn wasmImportWallTimeField(p0 : Int) -> Int = "moonplasma:host/sys@0.1.0" "wall-time-field"
///|
fn wasmImportGetenv(p0 : Int, p1 : Int, p2 : Int) = "moonplasma:host/sys@0.1.0" "getenv"
///|
fn wasmImportHasExe(p0 : Int, p1 : Int) -> Int = "moonplasma:host/sys@0.1.0" "has-exe"
///|
fn wasmImportSpawn(p0 : Int, p1 : Int, p2 : Int, p3 : Int) -> Int = "moonplasma:host/sys@0.1.0" "spawn"
///|
#owned(str)
extern "wasm" fn mbt_ffi_str2ptr(str : String) -> Int =
#|(func (param i32) (result i32) local.get 0)
///|
extern "wasm" fn mbt_ffi_load32(offset : Int) -> Int =
#|(func (param i32) (result i32) local.get 0 i32.load)
///|
extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
#|(func (param i32) (result i32) (local i32)
#| local.get 0 i32.const 4 i32.add call $moonbit.gc.malloc
#| local.tee 1 i32.const 0 call $moonbit.init_array8
#| local.get 1)
///|
extern "wasm" fn mbt_ffi_ptr2bytes(ptr : Int, len : Int) -> FixedArray[Byte] =
#|(func (param i32) (param i32) (result i32)
#| local.get 0
#| local.get 1 call $moonbit.init_array8
#| local.get 0)
///|
extern "wasm" fn mbt_ffi_ptr2str(ptr : Int, len : Int) -> String =
#|(func (param i32) (param i32) (result i32)
#| local.get 0
#| local.get 1 call $moonbit.init_array16
#| local.get 0)
///|
extern "wasm" fn mbt_ffi_free(position : Int) =
#|(func (param i32) local.get 0 call $moonbit.decref)
///|
#owned(bytes)
extern "wasm" fn mbt_ffi_bytes2ptr(bytes : FixedArray[Byte]) -> Int =
#|(func (param i32) (result i32) local.get 0)
-5
View File
@@ -1,5 +0,0 @@
import {
"moonplasma/desktop/interface/moonplasma/desktop/types" @types,
}
warnings = "-44"
@@ -1,5 +1,5 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/wasi-gfx/frame-buffer/frame-buffer"
package "chandra/desktop/interface/wasi-gfx/frame-buffer/frame-buffer"
// Values
@@ -1,6 +1,6 @@
import {
"moonplasma/desktop/interface/wasi-gfx/frame-buffer/frame-buffer" @frame-buffer,
"moonplasma/desktop/interface/wasi-gfx/surface/surface" @surface,
"chandra/desktop/interface/wasi-gfx/frame-buffer/frame-buffer" @frame-buffer,
"chandra/desktop/interface/wasi-gfx/surface/surface" @surface,
}
warnings = "-44"
@@ -1,9 +1,9 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/wasi-gfx/surface/surface-frame-buffer"
package "chandra/desktop/interface/wasi-gfx/surface/surface-frame-buffer"
import {
"moonplasma/desktop/interface/wasi-gfx/frame-buffer/frame-buffer",
"moonplasma/desktop/interface/wasi-gfx/surface/surface",
"chandra/desktop/interface/wasi-gfx/frame-buffer/frame-buffer",
"chandra/desktop/interface/wasi-gfx/surface/surface",
}
// Values
+1 -1
View File
@@ -1,5 +1,5 @@
import {
"moonplasma/desktop/async-core" @async-core,
"chandra/desktop/async-core" @async-core,
}
warnings = "-44"
@@ -1,8 +1,8 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/wasi-gfx/surface/surface"
package "chandra/desktop/interface/wasi-gfx/surface/surface"
import {
"moonplasma/desktop/async-core",
"chandra/desktop/async-core",
}
// Values