Files
launcher/updater/pkg.generated.mbti
SpriteandClaude Sonnet 5.5 28e0284d9b Add the pure MoonBit core: grid, gestures, updater, vdom, app
grid: packing, pinning, resize steps (port of Layout.js and app.py's grid logic).
gesture: pointer state machine (tap, long press, drag, release, swipe).
updater: release/version parsing and the update decision.
vdom: pure virtual DOM with an HTML-text renderer for tests.
app: Elm-style Model/Msg/update/view with effects as data, persistence (JSON
layout, import of the old WebView build's localStorage), drawer/search, menus,
drag and resize. 60 headless tests drive it through pointer input.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 00:55:16 +00:00

46 lines
755 B
Plaintext

// Generated using `moon info`, DON'T EDIT IT
package "experiments/launcher/updater"
import {
"moonbitlang/core/debug",
}
// Values
pub let apk_asset : String
pub let check_every_ms : Int64
pub fn decide(Int32, Int32, Int32, manual~ : Bool) -> Decision
pub fn parse_release(String) -> Release?
pub fn parse_version(String) -> Int32?
pub let release_api : String
pub fn should_check(Int64, Int64, manual~ : Bool) -> Bool
pub fn tag_version(String) -> Int32?
pub let version_asset : String
// Errors
// Types and methods
#derive(Eq, @debug.Debug)
pub(all) enum Decision {
UpToDate(Int32)
Install(Int32)
Declined(Int32)
}
pub(all) struct Release {
tag : String
version_url : String?
apk_url : String?
}
// Type aliases
// Traits