feat: execute Tessera UI source with embedded Aster
Verify Tessera GUI / verify (push) Successful in 7m38s

This commit is contained in:
2026-10-20 03:35:46 +08:00
parent 3e1cce78f8
commit 8cb2bf8607
14 changed files with 1482 additions and 778 deletions
+12
View File
@@ -0,0 +1,12 @@
# Endor UI examples
[hello.endor](hello.endor) returns a native UI tree using an ordinary helper
function and `main`. It covers text, a rounded rectangle, row/column layout and
spacing. Submit it as the UTF-8 body of a namespace PUT request; no namespace,
scene, render block or imports belong in the source.
The live `/agent` guide embeds this exact example. Remote CI executes it through
Aster and checks the resulting coordinates and source ranges after VM cleanup.
The file is client-side sample material; Tessera's API stores source by namespace.
Return to the [project guide](../README.md).
+10
View File
@@ -0,0 +1,10 @@
function heading(value: Text): View {
return ui.text(value, 2, "#242422")
}
function main(): View {
let title = heading("Hello Endor")
let rectangle = ui.rect(240, 80, 12, "#DCE8FF")
let detail = ui.row(0, 12, ui.text("Aster VM"), ui.spacer(8), ui.text("Tessera UI"))
return ui.column(24, 12, title, rectangle, detail)
}