feat: build a resizable native developer workspace with console and network inspection
Verify Tessera GUI / verify (push) Failing after 7m12s

This commit is contained in:
2026-10-20 16:42:12 +08:00
parent 5f202e8347
commit d641f62116
12 changed files with 2042 additions and 301 deletions
+49 -5
View File
@@ -169,11 +169,55 @@ source budgets and VM instruction limits are not a complete untrusted-code sandb
## Developer tools
Toggle the sidebar with Command-Option-I or F12 on macOS, Control-Shift-I or F12
on Windows/Linux. It displays Aster AST functions, bindings, calls and expressions.
Selection shows their ranges in the exact submitted source. Tessera does not
maintain a second language AST. Source lines and tree labels are fitted to the
available measured width; truncation preserves Unicode grapheme clusters.
Toggle developer tools with Command-Option-I or F12 on macOS, Control-Shift-I or
F12 on Windows/Linux. The compact Console, Sources, Network and Settings tabs
share a draggable dock edge. Console's editor boundary, the Sources tree/source
boundary and Network's request/details boundary can also be dragged. Each content
area has independent vertical and horizontal scrolling, draggable scrollbar thumbs,
and trackpad support. Shift-wheel scrolls horizontally. Layout uses logical pixels
and the actual display scale; resize clamps pane sizes to keep controls reachable.
Console is the default execution transcript. Type an expression, press Enter to
run, or Shift-Enter for a newline. Switch to Script mode to PUT a **complete source
replacement** that renders a page. Arrow keys, Home/End, grapheme-safe deletion,
selection of all input, macOS copy/cut/paste and IME composition are supported.
Up/Down recall single-line history; Command/Control-Up/Down also recall history in
multiline input. Clicking the editor positions the caret. HTTP requests from other
clients appear in the same transcript with input, result, error and diagnostics.
Clear hides the displayed transcript; history stays in memory for this window.
Transport failures are shown beside the editor and restore an otherwise empty draft.
Expression mode sends `POST /v1/namespaces/app.main/evaluate` as `text/plain`.
It accepts exactly one Aster expression and returns JSON with `value`,
`execution: "isolated-expression"` and `persistent: false`. It uses a disposable VM,
without `ui` or previous bindings, and never changes the page or committed revision.
For example, `"Hello Endor"` and `42` return values. Language operations unsupported
by the pinned Aster compiler (currently including numeric arithmetic bytecode)
produce actual diagnostics. Evaluation shares the eight-entry execution queue.
**Persistent REPL sessions are not connected.** Console history is a transcript,
not VM state; Tessera never replays old input to simulate persistence.
Sources shows the full last successful source snapshot with line numbers, Aster's
AST and selected source ranges. Selecting an AST node scrolls to its location while
keeping the entire file available. Cloud files has a separate file navigator and
source viewer, initially disconnected. The `CloudSourceProvider` boundary in
`src/sources.rs` supplies file identities/paths and full source on open; there is no
cloud backend, fake file listing or source persistence in this release.
Network observes only HTTP requests handled by this Tessera process on
`127.0.0.1:4737`, including pending requests, method, path, status, server duration,
request/response headers and bodies. Filter matches method, path or status. Clear
clears the Network view without changing the document or Console transcript. A bounded
ring retains 80 requests with explicitly marked 32 KiB body previews. Request
headers are allowlisted to Content-Type and Content-Length; credentials and cookies
are not captured. No external browser or operating-system traffic is represented.
Console and Network share the bounded capture ring and have independent clear
markers. Clicking a Console record opens its Network details and restores that view.
Settings applies six accent presets or a custom six-digit hex color immediately.
Very bright custom colors are darkened to keep accents visible on white. Execution
separators, selected tabs and focus indicators use the accent, while text keeps its
readable neutral/error/success colors. Settings and source remain in memory only.
## Validation