Repository navigation
feat(ui): migrate GUI from AffineScript to Ephapax/Gossamer (#177 sca… - #179
Merged
Merged
Conversation
…ffold)
Replaces the single-file AffineScript GUI at src/ui/tea/ with a
Gossamer-shaped Ephapax module set under src/ui/gossamer/. Behaviour
of the TEA loop is preserved; the change is in the language (dyadic
Ephapax instead of affine-only AffineScript), the host framework
target (Gossamer instead of bare WASM + JS), and the dashboard
surface (PanLL panel instead of standalone HTML).
## What this lands
* src/ui/gossamer/hypatia_gui.eph (92 LOC) — TEA core. Direct port
of hypatia_gui.affine: Model, Msg, hypatia_init/update/view/subs.
Department enum → `data Department`; Msg enum → `data Msg`;
struct Model → `type Model = { ... }`; `@linear` param attrs
moved to the caller's `let!` binding per Ephapax ADR-002.
* src/ui/gossamer/bridge.eph (100 LOC) — Gossamer host integration
skeleton. Declares the window + IPC handle types we expect from
Gossamer, plus a `@tail_recursive` TEA driver loop that consumes
and re-produces (window, channel, model) on each iteration —
linearity enforced by `let!` on every handle rebind. Burble
session hooks + wire-format decoder are explicit TODO stubs
pending the real APIs.
* src/ui/gossamer/panel.manifest.toml — PanLL manifest skeleton.
Field names are placeholders pending the real PanLL schema; see
the file header for the caveat.
* src/ui/gossamer/loader.js — JS-side wasm loader. Replaces
src/ui/tea/hypatia_tea.js. Export surface (hypatia_init / update
/ view / subs) is unchanged because it's ABI-level; the
wasi_snapshot_preview1 stub is flagged as "replace with Gossamer
host imports" before the first real load.
* src/ui/gossamer/README.adoc — migration status, what's not done,
local build instructions for when the toolchain lands.
* src/ui/public/index.html:88 — updated to import from
../gossamer/loader.js instead of ../tea/hypatia_tea.js.
* .github/workflows/build-gossamer-gui.yml — scaffold workflow.
Validates source presence; prints a dry-run notice because the
`eph` compiler isn't available as a GitHub Action yet. The real
`eph build` invocation is in a TODO comment block ready to be
enabled when setup-eph exists.
## What this REMOVES
* src/ui/tea/hypatia_gui.affine — superseded by hypatia_gui.eph.
Content preserved in git history (git show main:src/ui/tea/
hypatia_gui.affine).
* src/ui/tea/hypatia_tea.js — superseded by gossamer/loader.js.
The src/ui/tea/ directory is now empty and removed from the tree.
## What's EXPLICITLY NOT DONE (tracked in #177)
* Ephapax toolchain not yet installable in CI. Until setup-eph or
equivalent exists, the .wasm artifact has to be built locally
per src/ui/gossamer/README.adoc.
* Burble session integration is a stub — real burble module
imports need to land in bridge.eph once burble's session API is
visible to this repo.
* Wire format for Msg decode is unchosen (JSON / Cap'n Proto /
FlatBuffers). `decode_msg` in bridge.eph is a placeholder that
always returns PopState — picking a wire format is a prerequisite
to shipping.
* PanLL manifest field names are unverified against the real
schema (we don't have the panll repo in scope).
* Nothing has been compiled. Every .eph file in this commit is
UNTESTED syntactically because no Ephapax toolchain was
available to the drafter. A developer with `eph` installed
locally must `eph build src/ui/gossamer/bridge.eph` and fix any
errors before merging or in a follow-up PR.
## Rollback
If the port turns out to be wrong, `git revert` this commit restores
the AffineScript tree exactly. The content of the old .affine and
.js files is preserved in history.
Related: #177
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
2 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ffold)
Replaces the single-file AffineScript GUI at src/ui/tea/ with a Gossamer-shaped Ephapax module set under src/ui/gossamer/. Behaviour of the TEA loop is preserved; the change is in the language (dyadic Ephapax instead of affine-only AffineScript), the host framework target (Gossamer instead of bare WASM + JS), and the dashboard surface (PanLL panel instead of standalone HTML).
What this lands
src/ui/gossamer/hypatia_gui.eph (92 LOC) — TEA core. Direct port of hypatia_gui.affine: Model, Msg, hypatia_init/update/view/subs. Department enum →
data Department; Msg enum →data Msg; struct Model →type Model = { ... };@linearparam attrs moved to the caller'slet!binding per Ephapax ADR-002.src/ui/gossamer/bridge.eph (100 LOC) — Gossamer host integration skeleton. Declares the window + IPC handle types we expect from Gossamer, plus a
@tail_recursiveTEA driver loop that consumes and re-produces (window, channel, model) on each iteration — linearity enforced bylet!on every handle rebind. Burble session hooks + wire-format decoder are explicit TODO stubs pending the real APIs.src/ui/gossamer/panel.manifest.toml — PanLL manifest skeleton. Field names are placeholders pending the real PanLL schema; see the file header for the caveat.
src/ui/gossamer/loader.js — JS-side wasm loader. Replaces src/ui/tea/hypatia_tea.js. Export surface (hypatia_init / update / view / subs) is unchanged because it's ABI-level; the wasi_snapshot_preview1 stub is flagged as "replace with Gossamer host imports" before the first real load.
src/ui/gossamer/README.adoc — migration status, what's not done, local build instructions for when the toolchain lands.
src/ui/public/index.html:88 — updated to import from ../gossamer/loader.js instead of ../tea/hypatia_tea.js.
.github/workflows/build-gossamer-gui.yml — scaffold workflow. Validates source presence; prints a dry-run notice because the
ephcompiler isn't available as a GitHub Action yet. The realeph buildinvocation is in a TODO comment block ready to be enabled when setup-eph exists.What this REMOVES
The src/ui/tea/ directory is now empty and removed from the tree.
What's EXPLICITLY NOT DONE (tracked in #177)
Ephapax toolchain not yet installable in CI. Until setup-eph or equivalent exists, the .wasm artifact has to be built locally per src/ui/gossamer/README.adoc.
Burble session integration is a stub — real burble module imports need to land in bridge.eph once burble's session API is visible to this repo.
Wire format for Msg decode is unchosen (JSON / Cap'n Proto / FlatBuffers).
decode_msgin bridge.eph is a placeholder that always returns PopState — picking a wire format is a prerequisite to shipping.PanLL manifest field names are unverified against the real schema (we don't have the panll repo in scope).
Nothing has been compiled. Every .eph file in this commit is UNTESTED syntactically because no Ephapax toolchain was available to the drafter. A developer with
ephinstalled locally musteph build src/ui/gossamer/bridge.ephand fix any errors before merging or in a follow-up PR.Rollback
If the port turns out to be wrong,
git revertthis commit restores the AffineScript tree exactly. The content of the old .affine and .js files is preserved in history.Related: #177