CI / test (push) Successful in 2m25s
- New desktop module gamerig-library (components/gamerig-library, logic in lib/gamelib): the layout of gamerig's web library (desktop/ui) in draw ops. Top bar with the Gamerig mark, app count and search; sidebar with categories and counts, running apps (switch to, stop) and rig status (GPU, display, audio); card grid with featured games two columns wide, icon tiles, category and status badges, description, install hint, Launch / Big Picture / Switch to / Stop. Typing filters, arrows + Enter launch, the wheel scrolls. Colours: follow desktop, dark, light. - New game-library capability: tables 26-28 (status, games, launch modes), request 45, in the wasmer/wasmtime stub, the MoonBit wasmhost and the Rust host-wasm. - compositor/shell/gamelib.mbt polls GET $GAMERIG_DESKTOP_API/api/state (default http://127.0.0.1:8091) every 2 s with curl on a socket and POSTs launch/stop/focus; a file:// base reads a state file (tests). - --desktop NAME picks what fills the desktop at start. scripts/gamerig-kiosk.sh now runs a hybrid kiosk with the library as the desktop (CHANDRA_KIOSK_MODE=strict for the old one). - Tests: lib/gamelib, compositor/host/gamelib_test.mbt, a host-wasm test; docs/gamerig-library.md with a screenshot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hgvjzw8hHirxRsXSsE
35 lines
1.5 KiB
Plaintext
35 lines
1.5 KiB
Plaintext
import {
|
|
"chandra/desktop/components/gamerig-library/gen/interface/chandra/desktop/desktop-module" @desktop-module,
|
|
"chandra/desktop/components/gamerig-library/gen/interface/chandra/desktop/module-config" @module-config,
|
|
"chandra/desktop/components/gamerig-library/gen/interface/chandra/desktop/plasmoid" @plasmoid,
|
|
}
|
|
|
|
warnings = "-44"
|
|
|
|
pkgtype(kind: "foreign_library")
|
|
|
|
options(
|
|
link: {
|
|
"wasm": {
|
|
"export-memory-name": "memory",
|
|
"heap-start-address": 16,
|
|
"exports": [
|
|
"mbt_ffi_cabi_realloc:cabi_realloc",
|
|
"wasmExportBackdrop:chandra:desktop/desktop-module@0.1.0#backdrop",
|
|
"wasmExportConfigItems:chandra:desktop/module-config@0.1.0#config-items",
|
|
"wasmExportConfigItemsPostReturn:cabi_post_chandra:desktop/module-config@0.1.0#config-items",
|
|
"wasmExportInfo:chandra:desktop/plasmoid@0.1.0#info",
|
|
"wasmExportInfoPostReturn:cabi_post_chandra:desktop/plasmoid@0.1.0#info",
|
|
"wasmExportOnEvent:chandra:desktop/plasmoid@0.1.0#on-event",
|
|
"wasmExportOnScroll:chandra:desktop/desktop-module@0.1.0#on-scroll",
|
|
"wasmExportPopup:chandra:desktop/plasmoid@0.1.0#popup",
|
|
"wasmExportPopupPostReturn:cabi_post_chandra:desktop/plasmoid@0.1.0#popup",
|
|
"wasmExportRender:chandra:desktop/plasmoid@0.1.0#render",
|
|
"wasmExportRenderPostReturn:cabi_post_chandra:desktop/plasmoid@0.1.0#render",
|
|
"wasmExportSetConfig:chandra:desktop/module-config@0.1.0#set-config",
|
|
"wasmExportTick:chandra:desktop/desktop-module@0.1.0#tick"
|
|
],
|
|
},
|
|
},
|
|
)
|