web: render stage-turn markdown in the artifact viewer

The full-screen viewer now opens markdown/text artifacts (text/markdown,
text/plain, .md/.markdown/.txt) through the resolved artifact URL and renders
them with the page's own DOM markdown renderer, with an honest failure message
and an external fallback. ArrowLeft/ArrowRight page the shared media+document
list, and a backdrop click closes the viewer while panel clicks do not.

The run gallery and per-visit artifacts present input.md, memory.md and
output.md as ordinary Document tiles with a drawn glyph and open the viewer.

Adds isMarkdownArtifact/isViewerArtifact with unit coverage, deterministic
viewer fixtures, and ui-smoke assertions/captures for rendered markdown,
keyboard paging, the honest 404 and backdrop dismissal.
This commit is contained in:
2026-10-19 21:23:10 +01:00
parent b2fd614ba4
commit 359912f822
11 changed files with 695 additions and 48 deletions
+3
View File
@@ -0,0 +1,3 @@
# Memory
The previous turn landed the artifact viewer.